ScoDoc-Lille/app/templates/bul_head.j2

89 lines
3.6 KiB
Plaintext
Raw Normal View History

{# -*- mode: jinja-html -*- #}
{# L'en-tête des bulletins HTML #}
{# was _formsemestre_bulletinetud_header_html #}
2022-03-07 23:43:48 +01:00
<div class="bull_head">
<div class="bull_head_text">
2022-03-07 21:49:11 +01:00
{% if not is_apc %}
<h2><a class="discretelink" href="{{
url_for(
"scolar.fiche_etud", scodoc_dept=g.scodoc_dept, etudid=etud.id,
)}}">{{etud.nomprenom}}</a></h2>
2022-03-07 21:49:11 +01:00
{% endif %}
<form name="f" method="GET" action="{{request.base_url}}">
2024-04-07 19:52:22 +02:00
<input type="hidden" name="formsemestre_id" value="{{formsemestre.id}}">
<input type="hidden" name="etudid" value="{{etud.id}}">
<input type="hidden" name="fmt" value="{{fmt}}">
<div class="bull_titre_semestre">
Bulletin
<span class="bull_liensemestre">
{{formsemestre.html_link_status() | safe}}
2023-11-20 17:57:10 +01:00
{% if etud.id in formsemestre.etuds_inscriptions %}
{% if formsemestre.etuds_inscriptions[etud.id].parcour %}
<span class="parcours">Parcours {{formsemestre.etuds_inscriptions[etud.id].parcour.code}}</span>
{% endif %}
{% else %}
<span class="parcours">{{scu.EMO_WARNING|safe}} non inscrit !?</span>
{% endif %}
</span>
</div>
2022-03-07 23:43:48 +01:00
<div>
<em>établi le {{time.strftime("%d/%m/%Y à %Hh%M")}} (notes sur 20)</em>
<span class="rightjust">
<select name="version" onchange="self.location.href='{{
url_for('notes.formsemestre_bulletinetud',
scodoc_dept=g.scodoc_dept,
formsemestre_id=formsemestre.id,
etudid=etud.id,
)
2024-04-07 19:52:22 +02:00
}}&version='+this.value;" class="noprint">
{% if formsemestre.formation.is_apc() %}
{% set menu_items = scu.BULLETINS_VERSIONS_BUT.items() %}
{% else %}
{% set menu_items = scu.BULLETINS_VERSIONS.items() %}
{% endif %}
{% for (v, e) in menu_items %}
<option value="{{v}}" {% if (v == version) %}selected{% endif %}>{{e}}</option>
2022-03-07 23:43:48 +01:00
{% endfor %}
</select>
</span>
<span class="bulletin_menubar">
<span class="bulletin_menubar_but">{{menu_autres_operations|safe}}</span>
<a href="{{url_for(
'notes.formsemestre_bulletinetud',
scodoc_dept=g.scodoc_dept,
formsemestre_id=formsemestre.id,
etudid=etud.id,
fmt='pdf',
version=version,
)}}">{{scu.ICON_PDF|safe}}</a>
2022-03-07 23:43:48 +01:00
</span>
</div>
{% if formsemestre.formation.is_apc() %}
<div>
{% if version != "butcourt" %}
<a style="margin-left: 32px;" class="stdlink"
href="{{url_for(
'notes.bulletin_but_html',
scodoc_dept=g.scodoc_dept,
formsemestre_id=formsemestre.id,
etudid=etud.id
)}}">version courte spéciale BUT</a>
{% endif %}
<a style="margin-left: 32px;" class="stdlink"
2023-11-20 17:57:10 +01:00
href="{{url_for('notes.validation_rcues',
scodoc_dept=g.scodoc_dept, etudid=etud.id,
formsemestre_id=formsemestre.id
)}}">visualiser les compétences BUT</a>
</div>
{% endif %}
</form>
2022-03-07 23:43:48 +01:00
</div>
2022-03-07 21:49:11 +01:00
{% if not is_apc %}
2022-03-07 23:43:48 +01:00
<div class="bull_photo"><a href="{{
url_for('scolar.fiche_etud', scodoc_dept=g.scodoc_dept, etudid=etud.id)
2022-03-07 23:43:48 +01:00
}}">{{etud.photo_html(title="fiche de " + etud["nom"])|safe}}</a>
</div>
2022-03-07 21:49:11 +01:00
{% endif %}
2022-03-07 23:43:48 +01:00
</div>