summaryrefslogtreecommitdiff
path: root/app/views/nodes
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-09-09 15:19:33 +0200
committerhukl <contact@smyck.org>2009-09-09 15:19:33 +0200
commitf7ce8c245fde3f6202103ae614b181c0ba44ed93 (patch)
tree4625c54b0dfb31bdc3e71480fb8936fa5a6c0ca5 /app/views/nodes
parentf3a8cd8d1e8dfafb987163d95208e0ff2ccbfbc2 (diff)
added editing of slugs and moving of nodes. to edit a slug or move a node you edit that node, make your changes and save. the slug and parent node changes get staged and are applied once that revision is published
Diffstat (limited to 'app/views/nodes')
-rw-r--r--app/views/nodes/edit.html.erb22
1 files changed, 21 insertions, 1 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb
index e41321d..c23381f 100644
--- a/app/views/nodes/edit.html.erb
+++ b/app/views/nodes/edit.html.erb
@@ -18,7 +18,27 @@
18 </tr> 18 </tr>
19 <tr> 19 <tr>
20 <td class="description">Slug</td> 20 <td class="description">Slug</td>
21 <td><%= f.text_field :slug %></td> 21 <td>
22 <%=
23 f.text_field(
24 :staged_slug, :value => @node.staged_slug || @node.slug
25 )
26 %>
27 </td>
28 </tr>
29 <tr>
30 <td class="description">parent</td>
31 <td>
32 <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %>
33 <div id="search_results">
34
35 </div>
36 <%= f.hidden_field(
37 :staged_parent_id,
38 :value => @node.staged_parent_id || @node.parent_id
39 )
40 %>
41 </td>
22 </tr> 42 </tr>
23 43
24 <% fields_for @draft do |d| %> 44 <% fields_for @draft do |d| %>