-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(podcast-planner): adjust layout and verbiage changes
- Loading branch information
1 parent
3c6fe95
commit ed6af4d
Showing
3 changed files
with
55 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,51 @@ | ||
<div class="card my-4 mx-2 g-0"> | ||
<div class="card-header-info"> | ||
<h5 class="card-title"><%= t(".header.preview") %></h5> | ||
<%= form_with( | ||
url: podcast_planner_path(@podcast), | ||
method: :post | ||
) do |form| %> | ||
<div class="mb-4"> | ||
<h3 class="mb-3"><%= t(".header.publish_time") %></h3> | ||
<div class="col-lg-12"> | ||
<div class="form-floating"> | ||
<%= form.select :publish_time, time_options %> | ||
<%= form.label :publish_time %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<%= form_with( | ||
url: podcast_planner_path(@podcast), | ||
method: :post | ||
) do |form| %> | ||
<div class="card-body"> | ||
<div class="row mb-4"> | ||
<div class="col-lg-6"> | ||
<h3 class="fw-bold"><%= t(".header.publish_time") %></h3> | ||
<div class="form-floating"> | ||
<%= form.select :publish_time, time_options %> | ||
<%= form.label :publish_time %> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-6"> | ||
<h3 class="fw-bold"><%= t(".header.audio_segments") %></h3> | ||
<div class="form-floating"> | ||
<%= form.number_field :segment_count, {min: 1, max: 10, step: 1, value: 2} %> | ||
<%= form.label :segment_count %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg"> | ||
<div data-controller="pager" data-pager-range-value="6"> | ||
<div class="mb-2"> | ||
<%= button_tag type: "button", class: "btn btn-primary btn-sm", data: {action: "click->pager#pageBackward", pager_target: "prev"}, disabled: true do %> | ||
<span class="material-icons">arrow_left</span> | ||
Month | ||
<% end %> | ||
<%= button_tag type: "button", class: "btn btn-primary btn-sm", data: {action: "click->pager#pageForward", pager_target: "next"} do %> | ||
Month | ||
<span class="material-icons">arrow_right</span> | ||
<% end %> | ||
</div> | ||
<div class="mb-4"> | ||
<h3 class="mb-3"><%= t(".header.audio_segments") %></h3> | ||
<div class="col-lg-12"> | ||
<div class="form-floating"> | ||
<%= form.number_field :segment_count, {min: 1, max: 10, step: 1, value: 2} %> | ||
<%= form.label :segment_count %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<%= turbo_frame_tag "preview", target: "_top" do %> | ||
<div class="row"> | ||
<% 24.times do |i| %> | ||
<%= render "calendar", form: form, start_date: Date.today.beginning_of_month + i.months, planner: @planner, index: i, range: 6 %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<div class="card p-4 mt-4mb-4"> | ||
<div data-controller="pager" data-pager-range-value="6"> | ||
<div class="d-flex justify-content-between"> | ||
<h3 class="mb-3"><%= t(".header.number_of_drafts") %></h3> | ||
<div class="mb-2"> | ||
<%= button_tag type: "button", class: "btn btn-primary btn-sm", data: {action: "click->pager#pageBackward", pager_target: "prev"}, disabled: true do %> | ||
<span class="material-icons">arrow_left</span> | ||
Month | ||
<% end %> | ||
<%= button_tag type: "button", class: "btn btn-primary btn-sm", data: {action: "click->pager#pageForward", pager_target: "next"} do %> | ||
Month | ||
<span class="material-icons">arrow_right</span> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="card-footer"> | ||
<%= form.submit t(".label.submit"), class: "btn btn-primary" %> | ||
<%= turbo_frame_tag "preview", target: "_top" do %> | ||
<div class="row"> | ||
<% 24.times do |i| %> | ||
<%= render "calendar", form: form, start_date: Date.today.beginning_of_month + i.months, planner: @planner, index: i, range: 6 %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
<%= form.submit t(".label.submit"), class: "btn btn-primary mb-4" %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
<%= render "podcasts/tabs" %> | ||
|
||
<div class="col col-md-12 my-4 px-2"> | ||
<div class="my-4 px-2"> | ||
<%= render "form_main" %> | ||
</div> | ||
|
||
<div class="col col-md-12"> | ||
<%= render "form_side" %> | ||
<%= render "form_side" %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters