Permet au Support de marquer une démarche comme modèle et de filtrer dans toutes les démarches

This commit is contained in:
Kara Diaby 2024-01-30 10:16:24 +00:00
parent 94389bb66d
commit 46748091a6
14 changed files with 52 additions and 18 deletions

View file

@ -104,10 +104,10 @@ as well as a link to its edit page.
<button class="mt-1">Ajouter des tags</button>
<% end %>
<% end %>
<% if attribute.name == 'is_template' %>
<% if attribute.name == '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();' %>
<%= f.label :template, 'Marquer comme modèle', for: 'template_checkbox' %>
<%= f.check_box :template, id: 'template_checkbox', onchange: 'this.form.submit();' %>
<% end %>
<% end %>
</dd>