diff options
| author | hukl <hukl@eight.local> | 2009-02-15 19:58:35 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-15 19:58:35 +0100 |
| commit | 0720a9fdc4d9dc5d7d9974c0e806f03f8fc9de2a (patch) | |
| tree | d39c3447c531db37134549b3430a877a5d78ccc3 /app/views | |
| parent | f364c401ac79cf497a5bcba60e6dcbeb94a12bdc (diff) | |
added implementation details for nodes
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index a5668e2..433c5eb 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -2,29 +2,31 @@ | |||
| 2 | 2 | ||
| 3 | <h1>Editing page</h1> | 3 | <h1>Editing page</h1> |
| 4 | 4 | ||
| 5 | <% form_for(@page) do |f| %> | 5 | <% form_for(@node) do |f| %> |
| 6 | <%= f.error_messages %> | 6 | <%= f.error_messages %> |
| 7 | 7 | ||
| 8 | <% if draft = @node.find_or_create_draft( User.first ) %> | ||
| 9 | |||
| 10 | <% fields_for @node.draft do |d| %> | ||
| 8 | <p> | 11 | <p> |
| 9 | <%= f.label :node_id %><br /> | 12 | <%= d.label :title %><br /> |
| 10 | <%= f.text_field :node_id %> | 13 | <%= d.text_field :title %> |
| 11 | </p> | 14 | </p> |
| 12 | <p> | 15 | <p> |
| 13 | <%= f.label :title %><br /> | 16 | <%= d.label :abstract %><br /> |
| 14 | <%= f.text_field :title %> | 17 | <%= d.text_area :abstract %> |
| 15 | </p> | 18 | </p> |
| 16 | <p> | 19 | <p> |
| 17 | <%= f.label :abstract %><br /> | 20 | <%= d.label :body %><br /> |
| 18 | <%= f.text_area :abstract %> | 21 | <%= d.text_area :body %> |
| 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> | 22 | </p> |
| 23 | <% end %> | ||
| 24 | |||
| 25 | <% else %> | ||
| 26 | |||
| 27 | <p>Page is locked</p> | ||
| 28 | |||
| 29 | <% end %> | ||
| 28 | <p> | 30 | <p> |
| 29 | <%= f.submit "Update" %> | 31 | <%= f.submit "Update" %> |
| 30 | </p> | 32 | </p> |
