layout
This commit is contained in:
parent
53372edd02
commit
94389bb66d
1 changed files with 7 additions and 0 deletions
|
@ -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.
|
|||
<button class="mt-1">Ajouter des tags</button>
|
||||
<% 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 %>
|
||||
</dd>
|
||||
<% end %>
|
||||
<dd class="attribute-data">
|
||||
|
|
Loading…
Reference in a new issue