0001-toulouse-add-a-family-info-json-cell-38156.patch
static/toulouse/config.json | ||
---|---|---|
34 | 34 |
"picto:encombrants-petit-electromenager": { "label": "Encombrants : Petit électroménager" }, |
35 | 35 |
"picto:encombrants-refrigerateur": { "label": "Encombrants : Réfrigérateur" }, |
36 | 36 |
"picto:encombrants-refrigerateur-americain": { "label": "Encombrants : Réfrigérateur américain" } |
37 |
}, |
|
38 |
"JSON_CELL_TYPES": { |
|
39 |
"toulouse-axel-family-info": { |
|
40 |
"form": [ |
|
41 |
{ |
|
42 |
"label": "Identifiant du connecteur", |
|
43 |
"varname": "slug", |
|
44 |
"required": true |
|
45 |
} |
|
46 |
], |
|
47 |
"name": "Toulouse Axel Family Info", |
|
48 |
"url": "{{ passerelle_url }}toulouse-axel/{{ slug }}/family_info?NameID={{ user_nameid }}", |
|
49 |
"cache_duration": 1 |
|
50 |
} |
|
37 | 51 |
} |
38 | 52 |
} |
39 | 53 |
} |
templates/variants/toulouse/combo/json/toulouse-axel-family-info.html | ||
---|---|---|
1 |
<h2>Information liées à la famille</h2> |
|
2 | ||
3 |
<div> |
|
4 |
{% if not json.err %} |
|
5 |
{% with famille=json.data %} |
|
6 |
Votre compte famille porte le numéro : <strong>{{ famille.IDDUI }}</strong> |
|
7 |
<ul> |
|
8 |
<li>Adresse : {{ famille.ADRESSE.NUMVOIE }} {{ famille.ADRESSE.VOIE }} {% if famille.ADRESSE.COMPLEMENTVOIE %}{{ famille.ADRESSE.COMPLEMENTVOIE }}{% endif %}{% if famille.ADRESSE.COMPLEMENT1 %}{{ famille.ADRESSE.COMPLEMENT1 }}{% endif %} {% if famille.ADRESSE.COMPLEMENT2 %}{{ famille.ADRESSE.COMPLEMENT2 }}{% endif %}, {{ famille.ADRESSE.CODEPOSTAL }} {{ famille.ADRESSE.VILLE }}</li> |
|
9 |
<li>Situation familiale : {{ famille.SITUATIONFAMILIALE }}</li> |
|
10 |
<li>Responsable 1 : {{ famille.RL1.NOM }} {{ famille.RL1.PRENOM }}, né(e) le {{ famille.RL1.DATENAISSANCE }}</li> |
|
11 |
{% if famille.RL2 %}<li>Responsable 2 : {% if famille.RL2 %}{{ famille.RL2.NOM }} {{ famille.RL2.PRENOM }}, né(e) le {{ famille.RL2.DATENAISSANCE }}{% endif %}</li>{% endif %} |
|
12 |
{% for enfant in famille.ENFANT|dictsort:'DATENAISSANCE' %} |
|
13 |
<li>Enfant {{ forloop.counter }} : {{ enfant.NOM }} {{ enfant.PRENOM }}, né(e) le {{ enfant.DATENAISSANCE }}</li> |
|
14 |
{% endfor%} |
|
15 |
{% if famille.REVENUS %}<li>Revenu mensuel pris en compte* : {{ famille.REVENUS.MONTANTTOTAL }} €</li>{% endif %} |
|
16 |
</ul> |
|
17 |
{% if famille.REVENUS %}<p><small>* Revenu net fiscal avant abattement et hors prestations familiales</small></p>{% endif %} |
|
18 |
{% endwith %} |
|
19 |
<a class ="pk-button" href="">Modifier le compte famille</a> |
|
20 |
{% else %} |
|
21 |
<p>{{ json.err_desc|default:"erreur inconnue" }}</p> |
|
22 |
{% endif %} |
|
23 |
</div> |
|
0 |
- |