aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/_edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/resources/_edit.html.erb')
-rw-r--r--app/views/resources/_edit.html.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/resources/_edit.html.erb b/app/views/resources/_edit.html.erb
new file mode 100644
index 0000000..fdb2921
--- /dev/null
+++ b/app/views/resources/_edit.html.erb
@@ -0,0 +1,6 @@
+<h3>Edit <%= resource.presence&.name || 'new resource' %></h3>
+<h2>Context: <%= current_agent %></h2>
+
+<%= form_with model: [current_agent,@resource] do |f| %>
+ <%= render partial: 'form', locals: { resource: resource, f: f } %>
+<% end %>