From 19e923d21f09ff54653c2aadb8d05f899338110c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 19 Apr 2021 16:44:30 +0200 Subject: [PATCH] toodego: adjust style of rsj card cell (#52840) --- static/toodego/_specialpages.scss | 14 ++++++++++++ .../toodego/combo/json/rsj-fiche.html | 22 +++++++++---------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/static/toodego/_specialpages.scss b/static/toodego/_specialpages.scss index 0592f838..e8c6df1d 100644 --- a/static/toodego/_specialpages.scss +++ b/static/toodego/_specialpages.scss @@ -1267,3 +1267,17 @@ table.allowed-vehicles { height: 100%; } } + +// RSJ +.rsj-fiche { + table, p { + text-align: center; + width: 100%; + max-width: 60em; + margin-left: auto; + margin-right: auto; + } + table tr:first-child h3 { + margin-top: 0; + } +} diff --git a/templates/variants/toodego/combo/json/rsj-fiche.html b/templates/variants/toodego/combo/json/rsj-fiche.html index 0084cfb7..62c24b24 100644 --- a/templates/variants/toodego/combo/json/rsj-fiche.html +++ b/templates/variants/toodego/combo/json/rsj-fiche.html @@ -1,18 +1,18 @@ -

Fiche de {{json.fields.prenom_jeune}} {{json.fields.nom_jeune}} - N° INSERTIS : {{json.fields.identifiant_insertis}}

+

Fiche de {{json.fields.prenom_jeune}} {{json.fields.nom_jeune}} - N° INSERTIS : {{json.fields.identifiant_insertis}}

- - - - - + + + + + - - - - - + + + + +

Informations sur le jeune

Prénom : {{json.fields.prenom_jeune}}
Nom : {{json.fields.nom_jeune}}
Date de naissance : {{json.fields.date_naissance|date:"d/m/Y"}}
Identifiant INSERTIS : {{json.fields.identifiant_insertis}}
Nombre de mois versés : {{json.fields.nombre_mois_payes}}
Prénom : {{json.fields.prenom_jeune}}
Nom : {{json.fields.nom_jeune}}
Date de naissance : {{json.fields.date_naissance|date:"d/m/Y"}}
Identifiant INSERTIS : {{json.fields.identifiant_insertis}}
Nombre de mois versés : {{json.fields.nombre_mois_payes}}

Informations sur le conseiller ayant rencontré le jeune

Prénom : {{json.fields.prenom_conseiller}}
Nom : {{json.fields.nom_conseiller}}
Téléphone : {{json.fields.telephone_conseiller}}
Structure : {{json.fields.structure}}
Courriel : {{json.fields.courriel_conseiller}}
Prénom : {{json.fields.prenom_conseiller}}
Nom : {{json.fields.nom_conseiller}}
Téléphone : {{json.fields.telephone_conseiller}}
Structure : {{json.fields.structure}}
Courriel : {{json.fields.courriel_conseiller}}
{% if request.user|has_role:json.workflow.fields.role_derniere_demarche %}

Pour consulter la demande de RSJ liée à ce jeune, cliquez sur le bouton ci-dessous :