form: improve the appearance of the repetitions header

This commit is contained in:
Pierre de La Morinerie 2020-02-10 17:42:49 +00:00
parent 005ff4bed5
commit 2b47013798
2 changed files with 8 additions and 2 deletions

View file

@ -319,6 +319,12 @@
border-bottom: 3px solid $blue;
}
.header-subsection {
font-size: 22px;
color: $blue;
margin-bottom: $default-padding;
}
.explication-libelle {
font-weight: bold;
font-size: 20px;

View file

@ -1,9 +1,9 @@
.editable-champ{ class: "editable-champ-#{champ.type_champ}" }
- if champ.repetition?
= render partial: 'shared/dossiers/editable_champs/header_section', locals: { champ: champ }
%h3.header-subsection= champ.libelle
- if champ.description.present?
%p.notice= string_to_html(champ.description, false)
- elsif has_label?(champ)
= render partial: 'shared/dossiers/editable_champs/champ_label', locals: { form: form, champ: champ, seen_at: defined?(seen_at) ? seen_at : nil }