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 %>