summaryrefslogtreecommitdiff
path: root/app/views/nodes/edit.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-07 06:15:14 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-07 06:15:14 +0200
commitf4ddfff03ca9f25d50f39a1971877362d85eb9cb (patch)
tree31e6774fd4cf2b579a9622277be150417a2fa48e /app/views/nodes/edit.html.erb
parent02a4ea750428aa1a9c9e7f2680553c0ce4ef1fec (diff)
Move the pending address from the node onto the draft
Diffstat (limited to 'app/views/nodes/edit.html.erb')
-rw-r--r--app/views/nodes/edit.html.erb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb
index c153c241..ae206578 100644
--- a/app/views/nodes/edit.html.erb
+++ b/app/views/nodes/edit.html.erb
@@ -96,20 +96,20 @@
96 <div id="metadata"> 96 <div id="metadata">
97 <div class="layout_row_label"><%= t(".slug") %></div> 97 <div class="layout_row_label"><%= t(".slug") %></div>
98 <div class="layout_row_content"> 98 <div class="layout_row_content">
99 <%= f.text_field( 99 <%= d.text_field(
100 :staged_slug, :value => @node.staged_slug || @node.slug 100 :slug, :value => @page.slug || @node.slug
101 ) 101 )
102 %> 102 %>
103 </div> 103 </div>
104 104
105 <div class="layout_row_label"><%= t(".parent") %></div> 105 <div class="layout_row_label"><%= t(".parent") %></div>
106 <div class="layout_row_content"> 106 <div class="layout_row_content">
107 <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %> 107 <%= text_field_tag :move_to_search_term, (Node.find_by(:id => @page.parent_node_id) || @node.parent)&.title %>
108 <p class="field_hint"><%= t(".parent_hint") %></p> 108 <p class="field_hint"><%= t(".parent_hint") %></p>
109 <div id="move_to_search_results" class="search_results"></div> 109 <div id="move_to_search_results" class="search_results"></div>
110 <%= f.hidden_field( 110 <%= d.hidden_field(
111 :staged_parent_id, 111 :parent_node_id,
112 :value => @node.staged_parent_id || @node.parent_id 112 :value => @page.parent_node_id || @node.parent_id
113 ) 113 )
114 %> 114 %>
115 </div> 115 </div>