Change age color if student under 17 y.o.

This commit is contained in:
Claude Paroz 2016-01-20 18:00:05 +01:00
parent 976a559cca
commit ee28d8edc5
3 changed files with 4 additions and 1 deletions

View file

@ -17,6 +17,7 @@
div#student_detail { float:left; width: 40%; margin: 1em; padding: 0.5em; border: 3px solid red; min-height: 4em; border-radius: 8px; }
div#previous_stages { background-color: #EEE; border-radius: 4px; }
ul#previous_stages_list { display: none; padding-left: 1.5em;}
span.under_17 { color: red; }
div#corp_detail { float:right; width: 40%; margin: 1em; padding: 0.5em; border: 3px solid red; min-height: 4em; border-radius: 8px; }
div#corp_total, div#student_total { font-style: italic; color: gray; }

View file

@ -12,5 +12,6 @@
<div id="summary">
{{ object.first_name }} {{ object.last_name }}<br>
{{ object.pcode }} {{ object.city }}<br>
Date de naissance: {{ object.birth_date }} {% if age_for_stage %}(<span title="Âge au début du stage">{{ age_for_stage }}){% endif %}</span>
Date de naissance: {{ object.birth_date }}
{% if age_for_stage %}(<span title="Âge au début du stage" class="{{ age_style }}">{{ age_for_stage }}</span>){% endif %}
</div>