From 0741f8a230f2d88ba8fd80b90a69c1875af676e3 Mon Sep 17 00:00:00 2001 From: Bilal Date: Mon, 13 Jul 2020 20:05:07 +0200 Subject: [PATCH] fix new and edit form models --- app/views/contract_templates/_form.html.erb | 2 +- app/views/contract_templates/edit.html.erb | 2 +- app/views/contract_templates/new.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/contract_templates/_form.html.erb b/app/views/contract_templates/_form.html.erb index ddad160..09a0203 100644 --- a/app/views/contract_templates/_form.html.erb +++ b/app/views/contract_templates/_form.html.erb @@ -1,4 +1,4 @@ -<%= bootstrap_form_with model: contract_template, local: true do |form| %> +<%= bootstrap_form_with model: model, local: true do |form| %> <%= field_set_tag content_tag(:span, t(".release_info.heading"), class: "h6 text-muted text-uppercase") do %>
<%= form.text_field :name, wrapper_class: "col-sm-6" %> diff --git a/app/views/contract_templates/edit.html.erb b/app/views/contract_templates/edit.html.erb index 39eb9ce..8eab921 100644 --- a/app/views/contract_templates/edit.html.erb +++ b/app/views/contract_templates/edit.html.erb @@ -1,6 +1,6 @@
<%= card_header text: t(".heading"), close_action_path: [@project, :contract_templates] %>
- <%= render "form", project: @project, contract_template: @contract_template %> + <%= render "form", model: @contract_template, project: @project, contract_template: @contract_template %>
diff --git a/app/views/contract_templates/new.html.erb b/app/views/contract_templates/new.html.erb index 39eb9ce..944b916 100644 --- a/app/views/contract_templates/new.html.erb +++ b/app/views/contract_templates/new.html.erb @@ -1,6 +1,6 @@
<%= card_header text: t(".heading"), close_action_path: [@project, :contract_templates] %>
- <%= render "form", project: @project, contract_template: @contract_template %> + <%= render "form", model: [@project, @contract_template], project: @project, contract_template: @contract_template %>