feat(Champ.repetition): hide destroy button of first repetition row when the repetition is mandatory
This commit is contained in:
parent
4d90b1f662
commit
4773d9ebad
4 changed files with 18 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
|||
.notice{ notice_params }= render SimpleFormatComponent.new(@champ.description, allow_a: true)
|
||||
|
||||
|
||||
.repetition{ id: dom_id(@champ, :rows) }
|
||||
.repetition{ id: dom_id(@champ, :rows), class: class_names('utils-repetition-required' => @champ.mandatory?) }
|
||||
- @champ.row_ids.each.with_index(1) do |row_id, row_number|
|
||||
= render EditableChamp::RepetitionRowComponent.new(form: @form, dossier: @champ.dossier, type_de_champ: @champ.type_de_champ, row_id:, row_number:, seen_at: @seen_at)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue