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