From 028b0ce90e16d488dba291007b9092a6a700ca3a Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 22 Jul 2026 15:28:37 +0200 Subject: Split nodes#edit into a four-quadrant layout on desktop --- app/views/nodes/edit.html.erb | 135 ++++++++++++++++++++++-------------------- 1 file changed, 72 insertions(+), 63 deletions(-) (limited to 'app/views/nodes') diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index 12dc0003..fc1d18fa 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb @@ -33,48 +33,17 @@ <% end %> -
- Metadata (slug, parent, tags, template, author, images) -
-
Slug
-
- <%= f.text_field( - :staged_slug, :value => @node.staged_slug || @node.slug - ) - %> -
- -
parent
-
- <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %> -
- <%= f.hidden_field( - :staged_parent_id, - :value => @node.staged_parent_id || @node.parent_id - ) - %> -
- - <%= fields_for @page do |d| %> -
Tags - comma seperated
-
<%= text_field_tag :tag_list, @page.tag_list.join(', ') %>
- -
Publish at
-
<%= d.datetime_select :published_at, :value => @page.published_at %>
+ <%= fields_for @page do |d| %> +
-
Template
-
- <%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %> - Set automatically based on how this node was created - change it if needed. -
+
+
Title
+
<%= d.text_field :title %>
-
Author
-
- <%= d.select :user_id, user_list, - :selected => @page.user_id || @node.draft&.user_id || @node.head&.user_id %> -
+
Abstract
+
<%= d.text_area :abstract %>
-
Images
+
Attachments
-
- -
-
Title
-
<%= d.text_field :title %>
- -
Abstract
-
<%= d.text_area :abstract %>
- -
Body
-
- -
-
-
-
<%= d.text_area :body, :class => 'with_editor' %>
+
+ Metadata (slug, parent, tags, template, author, images) +
+
Slug
+
+ <%= f.text_field( + :staged_slug, :value => @node.staged_slug || @node.slug + ) + %> +
+ +
parent
+
+ <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %> +

Start typing to find a new parent for this node.

+
+ <%= f.hidden_field( + :staged_parent_id, + :value => @node.staged_parent_id || @node.parent_id + ) + %> +
+ +
Tags
+
+ <%= text_field_tag :tag_list, @page.tag_list.join(', ') %> + Comma separated. +
+ +
Publish at
+
<%= d.datetime_select :published_at, :value => @page.published_at %>
+ +
Template
+
+ <%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %> + Set automatically based on how this node was created - change it if needed. +
+ +
Author
+
+ <%= d.select :user_id, user_list, + :selected => @page.user_id || @node.draft&.user_id || @node.head&.user_id %> +
+ +
+
+ +
+
Body
+
+ +
-
-- cgit v1.3