2023-04-13 15:09:24 +02:00
|
|
|
%fieldset
|
2023-11-15 17:58:26 +01:00
|
|
|
%legend.fr-h5{ legend_params }= @champ.libelle
|
2023-04-13 15:09:24 +02:00
|
|
|
- if @champ.description.present?
|
|
|
|
.notice{ notice_params }= render SimpleFormatComponent.new(@champ.description, allow_a: true)
|
2022-08-12 10:45:04 +02:00
|
|
|
|
2023-04-13 15:09:24 +02:00
|
|
|
|
|
|
|
.repetition{ id: dom_id(@champ, :rows) }
|
2023-11-28 17:27:09 +01:00
|
|
|
- @champ.row_ids.each do |row_id|
|
|
|
|
= render EditableChamp::RepetitionRowComponent.new(form: @form, champ: @champ, row_id:, seen_at: @seen_at)
|
2023-04-13 15:09:24 +02:00
|
|
|
|
2023-06-08 11:16:55 +02:00
|
|
|
.actions
|
2023-04-13 15:09:24 +02:00
|
|
|
= render NestedForms::OwnedButtonComponent.new(formaction: champs_repetition_path(@champ.id), http_method: :create, opt: { class: "fr-btn fr-btn--secondary fr-btn--icon-left fr-icon-add-circle-line fr-mb-3w", title: t(".add_title", libelle: @champ.libelle), id: dom_id(@champ, :create_repetition)}) do
|
|
|
|
= t(".add", libelle: @champ.libelle)
|