diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-13 01:11:29 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-13 01:11:29 +0200 |
| commit | 862edbf4d5fdb9a88f84bfa1d51ab8cc83896094 (patch) | |
| tree | 2b8d8082b3549f664ef6f4babff3be864af4aac8 /app/views/events/edit.html.erb | |
| parent | a06f35bc0085aa744aef5fe2f4c4c036338b469b (diff) | |
Give every admin page one horizontal gutter
by many views inside. The inner ones are gone
nodes#edit's becomes #body_field, which is what #edit_grid places in its
full-width row.
Rows now reach into the label band themselves rather than depending on a
page wrapper to do it. The label column plus its gap equals the escape, so
a row's content starts at the gutter on every page; #edit_grid's rows are
exempt because the grid already steps back.
share one left edge. #new_node's -118px was compensating for that 10px and
left the page 7px out once it went. standalone_action_bar was overridden
everywhere it appeared.
page_translations#edit no longer uses #edit_grid: it has no metadata column,
so the two-column template pushed its abstract into the empty half.
nodes#edit's lower action bar was inside #edit_grid, so it was a grid item
inheriting the escape and sat 125px left of the form above it.
Diffstat (limited to 'app/views/events/edit.html.erb')
| -rw-r--r-- | app/views/events/edit.html.erb | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/app/views/events/edit.html.erb b/app/views/events/edit.html.erb index f3bf5339..7c855760 100644 --- a/app/views/events/edit.html.erb +++ b/app/views/events/edit.html.erb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | <h1><%= t(".title") %></h1> | 1 | <h1><%= t(".title") %></h1> |
| 2 | 2 | ||
| 3 | <div class="node_action_bar standalone_action_bar"> | 3 | <div class="node_action_bar"> |
| 4 | <%= link_to t("admin.common.back"), safe_return_to(params[:return_to] || events_path) %> | 4 | <%= link_to t("admin.common.back"), safe_return_to(params[:return_to] || events_path) %> |
| 5 | <%= button_to event_path(@event), method: :delete, | 5 | <%= button_to event_path(@event), method: :delete, |
| 6 | form: { data: { confirm: t("events.confirm_delete") }, class: 'button_to destructive' } do %> | 6 | form: { data: { confirm: t("events.confirm_delete") }, class: 'button_to destructive' } do %> |
| @@ -13,7 +13,7 @@ | |||
| 13 | <%= form_error_messages(f) %> | 13 | <%= form_error_messages(f) %> |
| 14 | 14 | ||
| 15 | <div id="admin_layout"> | 15 | <div id="admin_layout"> |
| 16 | <div id="content"> | 16 | <div class="layout_row"> |
| 17 | <div class="layout_row_label"><%= Event.human_attribute_name(:node) %> </div> | 17 | <div class="layout_row_label"><%= Event.human_attribute_name(:node) %> </div> |
| 18 | <div class="layout_row_content"> | 18 | <div class="layout_row_content"> |
| 19 | <% if @event.node %> | 19 | <% if @event.node %> |
| @@ -31,39 +31,59 @@ | |||
| 31 | <% end %> | 31 | <% end %> |
| 32 | <%= f.hidden_field :node_id %> | 32 | <%= f.hidden_field :node_id %> |
| 33 | </div> | 33 | </div> |
| 34 | </div> | ||
| 34 | 35 | ||
| 36 | <div class="layout_row"> | ||
| 35 | <div class="layout_row_label"><%= Event.human_attribute_name(:start_time) %></div> | 37 | <div class="layout_row_label"><%= Event.human_attribute_name(:start_time) %></div> |
| 36 | <div class="layout_row_content"><%= f.datetime_select :start_time %></div> | 38 | <div class="layout_row_content"><%= f.datetime_select :start_time %></div> |
| 39 | </div> | ||
| 37 | 40 | ||
| 41 | <div class="layout_row"> | ||
| 38 | <div class="layout_row_label"><%= Event.human_attribute_name(:end_time) %></div> | 42 | <div class="layout_row_label"><%= Event.human_attribute_name(:end_time) %></div> |
| 39 | <div class="layout_row_content"><%= f.datetime_select :end_time %></div> | 43 | <div class="layout_row_content"><%= f.datetime_select :end_time %></div> |
| 44 | </div> | ||
| 40 | 45 | ||
| 46 | <div class="layout_row"> | ||
| 41 | <div class="layout_row_label"><%= t("events.form.recurrence") %></div> | 47 | <div class="layout_row_label"><%= t("events.form.recurrence") %></div> |
| 42 | <div class="layout_row_content"> | 48 | <div class="layout_row_content"> |
| 43 | <%= render "rrule_builder", f: f %> | 49 | <%= render "rrule_builder", f: f %> |
| 44 | </div> | 50 | </div> |
| 51 | </div> | ||
| 45 | 52 | ||
| 53 | <div class="layout_row"> | ||
| 46 | <div class="layout_row_label"><%= Event.human_attribute_name(:title) %></div> | 54 | <div class="layout_row_label"><%= Event.human_attribute_name(:title) %></div> |
| 47 | <div class="layout_row_content"> | 55 | <div class="layout_row_content"> |
| 48 | <%= f.text_field :title %> | 56 | <%= f.text_field :title %> |
| 49 | <span id="event_title_hint" class="field_hint"><%= t("events.form.title_hint") %></span> | 57 | <span id="event_title_hint" class="field_hint"><%= t("events.form.title_hint") %></span> |
| 50 | </div> | 58 | </div> |
| 59 | </div> | ||
| 51 | 60 | ||
| 61 | <div class="layout_row"> | ||
| 52 | <div class="layout_row_label"><%= Event.human_attribute_name(:tags) %></div> | 62 | <div class="layout_row_label"><%= Event.human_attribute_name(:tags) %></div> |
| 53 | <div class="layout_row_content"><%= f.text_field :tag_list %></div> | 63 | <div class="layout_row_content"><%= f.text_field :tag_list %></div> |
| 64 | </div> | ||
| 54 | 65 | ||
| 66 | <div class="layout_row"> | ||
| 55 | <div class="layout_row_label"><%= Event.human_attribute_name(:allday) %></div> | 67 | <div class="layout_row_label"><%= Event.human_attribute_name(:allday) %></div> |
| 56 | <div class="layout_row_content"><%= f.check_box :allday %></div> | 68 | <div class="layout_row_content"><%= f.check_box :allday %></div> |
| 69 | </div> | ||
| 57 | 70 | ||
| 71 | <div class="layout_row"> | ||
| 58 | <div class="layout_row_label"><%= Event.human_attribute_name(:url) %></div> | 72 | <div class="layout_row_label"><%= Event.human_attribute_name(:url) %></div> |
| 59 | <div class="layout_row_content"><%= f.text_field :url %></div> | 73 | <div class="layout_row_content"><%= f.text_field :url %></div> |
| 74 | </div> | ||
| 60 | 75 | ||
| 76 | <div class="layout_row"> | ||
| 61 | <div class="layout_row_label"><%= Event.human_attribute_name(:latitude) %></div> | 77 | <div class="layout_row_label"><%= Event.human_attribute_name(:latitude) %></div> |
| 62 | <div class="layout_row_content"><%= f.text_field :latitude %></div> | 78 | <div class="layout_row_content"><%= f.text_field :latitude %></div> |
| 79 | </div> | ||
| 63 | 80 | ||
| 81 | <div class="layout_row"> | ||
| 64 | <div class="layout_row_label"><%= Event.human_attribute_name(:longitude) %></div> | 82 | <div class="layout_row_label"><%= Event.human_attribute_name(:longitude) %></div> |
| 65 | <div class="layout_row_content"><%= f.text_field :longitude %></div> | 83 | <div class="layout_row_content"><%= f.text_field :longitude %></div> |
| 84 | </div> | ||
| 66 | 85 | ||
| 86 | <div class="layout_row"> | ||
| 67 | <div class="layout_row_label"></div> | 87 | <div class="layout_row_label"></div> |
| 68 | <div class="layout_row_content"><%= f.submit t("admin.common.update") %></div> | 88 | <div class="layout_row_content"><%= f.submit t("admin.common.update") %></div> |
| 69 | </div> | 89 | </div> |
