diff --git a/app/views/manager/procedures/show.html.erb b/app/views/manager/procedures/show.html.erb index 47a4c2b4b..51630eaef 100644 --- a/app/views/manager/procedures/show.html.erb +++ b/app/views/manager/procedures/show.html.erb @@ -89,6 +89,7 @@ as well as a link to its edit page. <% end %> <% end %> <% if attribute.name == 'tags' %> + <%= form_for procedure, url: add_tags_manager_procedure_path(procedure), html: { class: 'form procedure-form__column--form fr-background-alt--blue-france mt-1' } do %> <%= hidden_field_tag 'procedure[tags]', nil %> <%= react_component("ComboMultiple", @@ -103,6 +104,12 @@ as well as a link to its edit page. <% end %> <% end %> + <% if attribute.name == 'is_template' %> + <%= form_for procedure, url: update_template_status_manager_procedure_path(procedure), html: { method: :patch, class: 'procedure-form__column--form fr-background-alt--blue-france mt-1', id: 'template-form' } do |f| %> + <%= f.label :is_template, 'Marquer comme modèle', for: 'is_template_checkbox' %> + <%= f.check_box :is_template, id: 'is_template_checkbox', onchange: 'this.form.submit();' %> + <% end %> + <% end %> <% end %>