diff options
| author | hukl <hukl@eight.local> | 2009-02-08 14:06:03 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-08 14:06:03 +0100 |
| commit | 56e1df622f8cb6fb558b83fc4d2836ad0aece7d7 (patch) | |
| tree | 7cef4583f4b025847f4e0ce506fff8fc082ef30c /app/views/nodes/edit.html.erb | |
| parent | 1a6516c7c8103fb63e7e11134e0fd8ff9f26d6fe (diff) | |
added nodes controller and made it a resource.
since the node is the proxy for the pages behind
it, it makes sense to operate on nodes rather than
on the pages themselves.
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 %> | ||
