summaryrefslogtreecommitdiff
path: root/app/views/nodes/edit.html.erb
blob: 64d475629b6545b8ea1e70c710da47e45e1201c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div id='subnavigation'>
  <%= link_to 'Show', @node %>
  <%= link_to 'Back', nodes_path %>
  <%= link_to 'Publish', publish_node_path, :method => :put %>
</div>

<h1>Editing page</h1>

<strong>Sprache:</strong> <%= I18n.locale %> <strong>Pfad:</strong> <%= @node.unique_name %>

<div class="page_editor">
  <% form_for(@node) do |f| %>
    <%= f.error_messages %>
    
    <% fields_for @draft do |d| %>
    <p></p>
    <p>
      <%= d.label :title %><br />
      <%= d.text_field :title %>
    </p>
    <p>
       <%= d.label 'Tags, comma sperated' %><br />
       <%= text_field_tag :tag_list, @draft.tag_list.join(", ") %>
    </p>
    <p>
      <%= d.label :abstract %><br />
      <%= d.text_area :abstract %>
    </p>
    <p>
      <%= d.label :body %><br />
      <%= d.text_area :body, :class => 'with_editor' %>
    </p>
    <% end %>
      
    <p>
      <%= f.submit "Update" %>
    </p>
  <% end %>
</div>