From 6424e10be5a89f175a74c71c55660412a169b8b8 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 23 Jun 2026 18:04:37 +0200 Subject: Update deployed state to what's currently running --- app/views/nodes/edit.html.erb | 156 ++++++++++++++++++------------------------ 1 file changed, 66 insertions(+), 90 deletions(-) (limited to 'app/views/nodes') diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index ee110474..612a3d3c 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb @@ -11,100 +11,76 @@ <%= f.error_messages %>
- - - - - - - - - - - - - +
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 @draft do |d| %> - - - - - - - - - - - - - - - - - - - - -
Event<%= event_information %>
Slug - <%= - f.text_field( - :staged_slug, :value => @node.staged_slug || @node.slug - ) - %> -
parent - <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %> -
+
Event
+
<%= event_information %>
-
- <%= f.hidden_field( - :staged_parent_id, - :value => @node.staged_parent_id || @node.parent_id - ) - %> -
Tags - comma seperated<%= text_field_tag :tag_list, @draft.tag_list %>
Publish at<%= d.datetime_select :published_at, :value => @draft.published_at %>
Template<%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %>
Author<%= d.select :user_id, user_list %>
Images -
    - <% @draft.assets.images.each do |image| %> -
  • - <%= image_tag(image.upload.url(:thumb)) %> -
  • - <% end %> -
- -
-
    - <% Asset.images.each do |image| %> -
  • <%= image_tag(image.upload.url(:thumb)) %>
  • - <% end %> -
-
-
+ <% fields_for @draft do |d| %> +
Tags - comma seperated
+
<%= text_field_tag :tag_list, @draft.tag_list %>
+ +
Publish at
+
<%= d.datetime_select :published_at, :value => @draft.published_at %>
+ +
Template
+
<%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %>
+ +
Author
+
<%= d.select :user_id, user_list %>
+ +
Images
+
+
    + <% @draft.assets.images.each do |image| %> +
  • + <%= image_tag(image.upload.url(:thumb)) %> +
  • + <% end %> +
+ +
+
    + <% Asset.images.each do |image| %> +
  • <%= image_tag(image.upload.url(:thumb)) %>
  • + <% end %> +
+
+
- - - - - - - - - - - - - - - - - - - - - -
Title<%= d.text_field :title, :pattern => "(?:[^<>&]|&amp;|&lt;|&gt;)*", :title => "Warning: Unescaped HTML entities detected! Use &lt;, &gt;, &amp; instead of <, >, &." %>
Abstract<%= d.text_area :abstract %>
Body<%= d.text_area :body, :class => 'with_editor' %>
<%= d.submit 'save' %>
+
+
Title
+
<%= d.text_field :title, :pattern => "(?:[^<>&]|&amp;|&lt;|&gt;)*", :title => "Warning: Unescaped HTML entities detected! Use &lt;, &gt;, &amp; instead of <, >, &." %>
+ +
Abstract
+
<%= d.text_area :abstract %>
+ +
Body
+
<%= d.text_area :body, :class => 'with_editor' %>
+ +
<%= d.submit 'save' %>
<% end %> <% end %>
-- cgit v1.3