aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/_edit.html.erb
blob: f22aee319bdee345c82ce7129e23adec66ef6b7d (plain)
1
2
3
4
5
6
<h3>Edit <%= @resource.presence.name || 'new resource' %></h3>
<h2>Context: <%= current_agent %></h2>

<%= form_with model: @resource, url: @resource.presence.new_record? ? agent_resources_path(current_agent) : resource_path(@resource.resource) do |f| %>
    <%= render partial: 'form', locals: { resource: resource, f: f } %>
<% end %>