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 {
|
.champ-label {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dt.champ-label::after {
|
||||||
|
content: ' :';
|
||||||
|
speak: none;
|
||||||
|
}
|
||||||
|
|
||||||
.champ-content {
|
.champ-content {
|
||||||
padding: 0 0 0.5rem;
|
padding: 0 0 0.5rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
@ -20,11 +26,6 @@
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
margin-block-start: 0;
|
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|
|
.champ-row
|
||||||
- c.with_value do
|
%dt.champ-label= t('views.users.dossiers.identite.first_name')
|
||||||
%p= dossier.individual.gender
|
%dd.champ-content= dossier.individual.prenom
|
||||||
|
|
||||||
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.first_name')) do |c|
|
.champ-row
|
||||||
- c.with_value do
|
%dt.champ-label= t('views.users.dossiers.identite.last_name')
|
||||||
%p= dossier.individual.prenom
|
%dd.champ-content= dossier.individual.nom
|
||||||
|
|
||||||
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.last_name')) do |c|
|
- if dossier.individual.birthdate.present?
|
||||||
- c.with_value do
|
.champ-row
|
||||||
%p= dossier.individual.nom
|
%dt.champ-label= t('views.users.dossiers.identite.birthdate')
|
||||||
|
%dd.champ-content= try_format_date(dossier.individual.birthdate)
|
||||||
- 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)
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue