diff options
Diffstat (limited to 'app/views/nodes/edit.html.erb')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb new file mode 100644 index 0000000..a5668e2 --- /dev/null +++ b/app/views/nodes/edit.html.erb | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | <h1>Nodes#edit</h1> | ||
| 2 | |||
| 3 | <h1>Editing page</h1> | ||
| 4 | |||
| 5 | <% form_for(@page) do |f| %> | ||
| 6 | <%= f.error_messages %> | ||
| 7 | |||
| 8 | <p> | ||
| 9 | <%= f.label :node_id %><br /> | ||
| 10 | <%= f.text_field :node_id %> | ||
| 11 | </p> | ||
| 12 | <p> | ||
| 13 | <%= f.label :title %><br /> | ||
| 14 | <%= f.text_field :title %> | ||
| 15 | </p> | ||
| 16 | <p> | ||
| 17 | <%= f.label :abstract %><br /> | ||
| 18 | <%= f.text_area :abstract %> | ||
| 19 | </p> | ||
| 20 | <p> | ||
| 21 | <%= f.label :body %><br /> | ||
| 22 | <%= f.text_area :body %> | ||
| 23 | </p> | ||
| 24 | <p> | ||
| 25 | <%= f.label :revision %><br /> | ||
| 26 | <%= f.text_field :revision %> | ||
| 27 | </p> | ||
| 28 | <p> | ||
| 29 | <%= f.submit "Update" %> | ||
| 30 | </p> | ||
| 31 | <% end %> | ||
| 32 | |||
| 33 | <%= link_to 'Show', @page %> | | ||
| 34 | <%= link_to 'Back', pages_path %> | ||
