summaryrefslogtreecommitdiffhomepage
path: root/app/views/nodes/edit.html.erb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2020-12-02 23:55:40 -0500
committerrealtradam <[email protected]>2020-12-02 23:55:40 -0500
commite6d86fe2b907b6be57bab88396ab8b27fa95d580 (patch)
tree4206ca2919060dc9badb448641f3fe1a59ce6963 /app/views/nodes/edit.html.erb
parentd13b636bd654244f894943c2968a7386e8379605 (diff)
downloadrails-tree-style-activerecord-e6d86fe2b907b6be57bab88396ab8b27fa95d580.tar.gz
rails-tree-style-activerecord-e6d86fe2b907b6be57bab88396ab8b27fa95d580.zip
known bugs fixed
Diffstat (limited to 'app/views/nodes/edit.html.erb')
-rw-r--r--app/views/nodes/edit.html.erb21
1 files changed, 21 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..0b64046
--- /dev/null
+++ b/app/views/nodes/edit.html.erb
@@ -0,0 +1,21 @@
+<h1>edit wiki page</h1>
+<%= form_with(model: @node, local: true) do |form| %>
+ <p>
+ <%= form.label :title %><br>
+ <%= form.text_field :title %>
+ </p>
+
+ <p>
+ <%= form.label :content %><br>
+ <%= form.text_area :content %>
+ </p>
+
+ <%= form.collection_select :parent, @nodes, :id, :title, include_blank: true, :selected => @node&.parent&.id %>
+
+
+ <p>
+ <%= form.submit %>
+ </p>
+<% end %>
+
+<% link_to 'Back', nodes_path %>