From 862edbf4d5fdb9a88f84bfa1d51ab8cc83896094 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 13 Aug 2026 01:11:29 +0200 Subject: 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. --- app/views/page_translations/edit.html.erb | 59 +++++++++++++++++-------------- 1 file changed, 33 insertions(+), 26 deletions(-) (limited to 'app/views/page_translations/edit.html.erb') diff --git a/app/views/page_translations/edit.html.erb b/app/views/page_translations/edit.html.erb index 20ec1c9a..3a4c8659 100644 --- a/app/views/page_translations/edit.html.erb +++ b/app/views/page_translations/edit.html.erb @@ -2,7 +2,7 @@ <%= t(".editing_prefix") %> <%= @locale.to_s.upcase %> <%= t(".translation_of") %> <%= title_for_node(@node) %>. -

<%= link_to t("page_translations.revision_history_link"), node_revisions_path(@node, :translation_locale => @locale) %>

+

<%= link_to t("page_translations.revision_history_link"), node_revisions_path(@node, :translation_locale => @locale) %>

<%= t(".metadata_hint_prefix") %> <%= link_to t(".metadata_hint_link"), edit_node_path(@node) %>. @@ -27,38 +27,45 @@ <% end %> + <%= form_with url: node_translation_path(@node, @locale), method: :patch, local: true, id: "translation_edit_form", data: { autosave_url: autosave_node_translation_path(@node, @locale), show_url: node_path(@node) } do |f| %> -

-
-
<%= Page.human_attribute_name(:title) %>
-
- <%= text_field_tag "page[title]", @translation&.title %> -
+
+
<%= Page.human_attribute_name(:title) %>
+
+ <%= text_field_tag "page[title]", @translation&.title %> +
+
-
<%= Page.human_attribute_name(:abstract) %>
-
- <%= text_area_tag "page[abstract]", @translation&.abstract %> -
+
+
<%= Page.human_attribute_name(:abstract) %>
+
+ <%= text_area_tag "page[abstract]", @translation&.abstract %> +
+
+
+
<%= Page.human_attribute_name(:body) %>
-
- - -
+
+
+ + +
-
-
-
- <%= text_area_tag "page[body]", @translation&.body, :class => 'with_editor' %> +
+
+
+ <%= text_area_tag "page[body]", @translation&.body, :class => 'with_editor' %> +
+
+ -
-
-- cgit v1.3