diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-07 06:15:14 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-07 06:15:14 +0200 |
| commit | f4ddfff03ca9f25d50f39a1971877362d85eb9cb (patch) | |
| tree | 31e6774fd4cf2b579a9622277be150417a2fa48e /app/views/nodes | |
| parent | 02a4ea750428aa1a9c9e7f2680553c0ce4ef1fec (diff) | |
Move the pending address from the node onto the draft
Diffstat (limited to 'app/views/nodes')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 12 | ||||
| -rw-r--r-- | app/views/nodes/show.html.erb | 2 |
2 files changed, 7 insertions, 7 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> |
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index 105e37ea..3b2d28d9 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb | |||
| @@ -105,7 +105,7 @@ | |||
| 105 | <% end %> | 105 | <% end %> |
| 106 | <div class="info_item"> | 106 | <div class="info_item"> |
| 107 | <span class="info_label"><%= t(".restore_to") %></span> | 107 | <span class="info_label"><%= t(".restore_to") %></span> |
| 108 | <% suggestion = @node.suggested_restore_parent %> | 108 | <% suggestion = @node.draft&.parent_node || @node.suggested_restore_parent %> |
| 109 | <%= form_tag restore_from_trash_node_path(@node), :method => :put, :class => "aligned_action_row" do %> | 109 | <%= form_tag restore_from_trash_node_path(@node), :method => :put, :class => "aligned_action_row" do %> |
| 110 | <div class="restore_picker"> | 110 | <div class="restore_picker"> |
| 111 | <%= text_field_tag :restore_search_term, | 111 | <%= text_field_tag :restore_search_term, |
