diff options
Diffstat (limited to 'app/views/agents/_edit.html.erb')
-rw-r--r-- | app/views/agents/_edit.html.erb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/agents/_edit.html.erb b/app/views/agents/_edit.html.erb new file mode 100644 index 0000000..72ce56d --- /dev/null +++ b/app/views/agents/_edit.html.erb @@ -0,0 +1,6 @@ +<h3>Edit <%= @agent.presence&.name || 'new agent' %></h3> +<h2>Context: <%= current_agent %></h2> + +<%= form_with model: @agent, url: controller.action_name == 'new' ? agents_path : agent_path(@agent) do |f| %> + <%= render partial: 'form', locals: { agent: @agent, f: f } %> +<% end %> |