diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 22 |
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| %> |
