refactor(identite_individual): Replace <div> & <p> sequence with <dl>
This commit is contained in:
parent
1641f1e82f
commit
e804af6539
2 changed files with 20 additions and 19 deletions
|
@ -8,10 +8,16 @@
|
|||
|
||||
.champ-label {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
dt.champ-label::after {
|
||||
content: ' :';
|
||||
speak: none;
|
||||
}
|
||||
|
||||
.champ-content {
|
||||
padding: 0 0 0.5rem;
|
||||
font-weight: 600;
|
||||
|
@ -20,11 +26,6 @@
|
|||
font-weight: normal;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-block-start: 0;
|
||||
}
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
%dl.fr-pl-0
|
||||
.champ-row
|
||||
%dt.champ-label= t('views.users.dossiers.identite.civility')
|
||||
%dd.champ-content= dossier.individual.gender
|
||||
|
||||
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.civility')) do |c|
|
||||
- c.with_value do
|
||||
%p= dossier.individual.gender
|
||||
.champ-row
|
||||
%dt.champ-label= t('views.users.dossiers.identite.first_name')
|
||||
%dd.champ-content= dossier.individual.prenom
|
||||
|
||||
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.first_name')) do |c|
|
||||
- c.with_value do
|
||||
%p= dossier.individual.prenom
|
||||
.champ-row
|
||||
%dt.champ-label= t('views.users.dossiers.identite.last_name')
|
||||
%dd.champ-content= dossier.individual.nom
|
||||
|
||||
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.last_name')) do |c|
|
||||
- c.with_value do
|
||||
%p= dossier.individual.nom
|
||||
|
||||
- if dossier.individual.birthdate.present?
|
||||
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.birthdate')) do |c|
|
||||
- c.with_value do
|
||||
%p= try_format_date(dossier.individual.birthdate)
|
||||
- if dossier.individual.birthdate.present?
|
||||
.champ-row
|
||||
%dt.champ-label= t('views.users.dossiers.identite.birthdate')
|
||||
%dd.champ-content= try_format_date(dossier.individual.birthdate)
|
||||
|
|
Loading…
Add table
Reference in a new issue