summaryrefslogtreecommitdiff
path: root/app/views/page_translations/edit.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-02 19:31:48 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-02 19:31:48 +0200
commit706a695ab0a90cec5fc70841570e79fe96e174e6 (patch)
tree5e53739d89cd20c852ac1312b9573430d5dc3801 /app/views/page_translations/edit.html.erb
parent66a7acfd216439f4ace5e0598a5f8b2115461bf9 (diff)
Add #edit_grid class to translation editor so that CSS rules will match
Diffstat (limited to 'app/views/page_translations/edit.html.erb')
-rw-r--r--app/views/page_translations/edit.html.erb52
1 files changed, 27 insertions, 25 deletions
diff --git a/app/views/page_translations/edit.html.erb b/app/views/page_translations/edit.html.erb
index fb879568..20ec1c9a 100644
--- a/app/views/page_translations/edit.html.erb
+++ b/app/views/page_translations/edit.html.erb
@@ -29,35 +29,37 @@
29 </ul> 29 </ul>
30 <%= form_with url: node_translation_path(@node, @locale), method: :patch, local: true, id: "translation_edit_form", 30 <%= form_with url: node_translation_path(@node, @locale), method: :patch, local: true, id: "translation_edit_form",
31 data: { autosave_url: autosave_node_translation_path(@node, @locale), show_url: node_path(@node) } do |f| %> 31 data: { autosave_url: autosave_node_translation_path(@node, @locale), show_url: node_path(@node) } do |f| %>
32 <div id="content"> 32 <div id="edit_grid">
33 <div class="layout_row_label"><%= Page.human_attribute_name(:title) %></div> 33 <div id="content">
34 <div class="layout_row_content"> 34 <div class="layout_row_label"><%= Page.human_attribute_name(:title) %></div>
35 <%= text_field_tag "page[title]", @translation&.title %> 35 <div class="layout_row_content">
36 </div> 36 <%= text_field_tag "page[title]", @translation&.title %>
37 </div>
37 38
38 <div class="layout_row_label"><%= Page.human_attribute_name(:abstract) %></div> 39 <div class="layout_row_label"><%= Page.human_attribute_name(:abstract) %></div>
39 <div class="layout_row_content"> 40 <div class="layout_row_content">
40 <%= text_area_tag "page[abstract]", @translation&.abstract %> 41 <%= text_area_tag "page[abstract]", @translation&.abstract %>
41 </div> 42 </div>
42 43
43 <div class="layout_row_label"><%= Page.human_attribute_name(:body) %></div> 44 <div class="layout_row_label"><%= Page.human_attribute_name(:body) %></div>
44 <div class="body_toolbar_row"> 45 <div class="body_toolbar_row">
45 <button type="button" id="preview_toggle" class="view_toggle" aria-pressed="false" aria-label="<%= t("admin.common.toggle_preview") %>" title="<%= t("admin.common.toggle_preview") %>"> 46 <button type="button" id="preview_toggle" class="view_toggle" aria-pressed="false" aria-label="<%= t("admin.common.toggle_preview") %>" title="<%= t("admin.common.toggle_preview") %>">
46 <%= icon("layout-sidebar-right", library: "tabler", "aria-hidden": true) %> <span><%= t("nodes.edit.live_preview") %></span> 47 <%= icon("layout-sidebar-right", library: "tabler", "aria-hidden": true) %> <span><%= t("nodes.edit.live_preview") %></span>
47 </button> 48 </button>
48 <button type="button" id="preview_force_render" class="view_toggle" style="display:none" aria-label="<%= t("admin.common.force_render") %>" title="<%= t("admin.common.force_render") %>"> 49 <button type="button" id="preview_force_render" class="view_toggle" style="display:none" aria-label="<%= t("admin.common.force_render") %>" title="<%= t("admin.common.force_render") %>">
49 <%= icon("refresh", library: "tabler", "aria-hidden": true) %> <span><%= t("nodes.edit.force_refresh") %></span> 50 <%= icon("refresh", library: "tabler", "aria-hidden": true) %> <span><%= t("nodes.edit.force_refresh") %></span>
50 </button> 51 </button>
51 </div> 52 </div>
52 53
53 <div id="editor_and_preview"> 54 <div id="editor_and_preview">
54 <div class="preview_content"> 55 <div class="preview_content">
55 <div class="layout_row_content"> 56 <div class="layout_row_content">
56 <%= text_area_tag "page[body]", @translation&.body, :class => 'with_editor' %> 57 <%= text_area_tag "page[body]", @translation&.body, :class => 'with_editor' %>
58 </div>
59 </div>
60 <div id="preview_panel" style="display:none">
61 <iframe id="live_preview_iframe" title="<%= t("nodes.edit.live_preview") %>" data-src="<%= preview_page_path(@page, :locale => @locale) %>"></iframe>
57 </div> 62 </div>
58 </div>
59 <div id="preview_panel" style="display:none">
60 <iframe id="live_preview_iframe" title="<%= t("nodes.edit.live_preview") %>" data-src="<%= preview_page_path(@page, :locale => @locale) %>"></iframe>
61 </div> 63 </div>
62 </div> 64 </div>
63 </div> 65 </div>