diff options
| author | hukl <contact@smyck.org> | 2009-02-22 12:52:58 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-22 12:52:58 +0100 |
| commit | c39eb1e9839664deb68b50b2a9db16770d42852c (patch) | |
| tree | e1c6b0ceb1309074e6018ac1a61adb218552154b /app/views/nodes | |
| parent | e0d5557a9e7f88050da2ccb42e02397952cded0d (diff) | |
another round of view updates
Diffstat (limited to 'app/views/nodes')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 11 | ||||
| -rw-r--r-- | app/views/nodes/index.html.erb | 3 | ||||
| -rw-r--r-- | app/views/nodes/new.html.erb | 5 |
3 files changed, 13 insertions, 6 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index f6513a7..7ec3be0 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | <div id='subnavigation'> | ||
| 2 | <%= link_to 'Show', @node %> | ||
| 3 | <%= link_to 'Back', nodes_path %> | ||
| 4 | <%= link_to 'Publish', publish_node_path, :method => :put %> | ||
| 5 | </div> | ||
| 6 | |||
| 1 | <h1>Editing page</h1> | 7 | <h1>Editing page</h1> |
| 2 | 8 | ||
| 3 | <strong>Sprache:</strong> <%= I18n.locale %> <strong>Pfad:</strong> <%= @node.unique_name %> | 9 | <strong>Sprache:</strong> <%= I18n.locale %> <strong>Pfad:</strong> <%= @node.unique_name %> |
| @@ -27,9 +33,4 @@ | |||
| 27 | <%= f.submit "Update" %> | 33 | <%= f.submit "Update" %> |
| 28 | </p> | 34 | </p> |
| 29 | <% end %> | 35 | <% end %> |
| 30 | |||
| 31 | |||
| 32 | <%= link_to 'Show', @node %> | | ||
| 33 | <%= link_to 'Back', nodes_path %> | | ||
| 34 | <%= link_to 'Publish', publish_node_path, :method => :put %> | ||
| 35 | </div> | 36 | </div> |
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index 533204d..da69125 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | <div id="subnavigation"> | ||
| 2 | <%= link_to 'Create', new_node_path %> | ||
| 3 | </div> | ||
| 1 | <h1>Nodes</h1> | 4 | <h1>Nodes</h1> |
| 2 | 5 | ||
| 3 | <%= will_paginate @nodes %> | 6 | <%= will_paginate @nodes %> |
diff --git a/app/views/nodes/new.html.erb b/app/views/nodes/new.html.erb index 1207413..d657eb3 100644 --- a/app/views/nodes/new.html.erb +++ b/app/views/nodes/new.html.erb | |||
| @@ -1,12 +1,15 @@ | |||
| 1 | <h1>Create new node</h1> | 1 | <h1>Create new node</h1> |
| 2 | 2 | ||
| 3 | <%= error_messages_for :node %> | ||
| 4 | |||
| 3 | <% form_for @node do |f| %> | 5 | <% form_for @node do |f| %> |
| 4 | <p> | 6 | <p> |
| 5 | <%= f.label 'Parent node' %><br /> | 7 | <%= f.label 'Parent node - Leave empty for top level' %><br /> |
| 6 | <%= text_field_tag :parent_unique_name %> | 8 | <%= text_field_tag :parent_unique_name %> |
| 7 | </p> | 9 | </p> |
| 8 | <p> | 10 | <p> |
| 9 | <%= f.label :slug %><br /> | 11 | <%= f.label :slug %><br /> |
| 10 | <%= f.text_field :slug %> | 12 | <%= f.text_field :slug %> |
| 11 | </p> | 13 | </p> |
| 14 | <p><%= f.submit 'Create node' %></p> | ||
| 12 | <% end %> \ No newline at end of file | 15 | <% end %> \ No newline at end of file |
