EditionPN/app/templates/semestre.html
2021-06-01 19:31:24 +02:00

41 lines
1.9 KiB
HTML

{% extends "base.html" %}
{% block title %}Semestre 1{% endblock %}
{% block content %}
<form action="" method="post" novalidate>
{{ form.hidden_tag() }}
<div class="content">
{% for competence in semestre.ues %}
<h2 class="title"><a style="color: inherit;" href="{{ url_for('Competence', code=competence.code[-1]) }}">UE{{ semestre.num }}.{{ competence.code[-1] }} - {{ competence.nom }} <i class="far fa-edit fa-sm"></i></a></h2>
<ul>
{% for ac in competence.acs %}
<li><a style="color: inherit;" href="{{ url_for('AC', code=ac.code[2:]) }}"><span class="tag is-info">{{ ac.code }}</span> - {{ ac.titre }} <i class="far fa-edit fa-sm"></i></a></li>
{% endfor %}
</ul>
{{ form.ueform.__getitem__(loop.index0).ue }}
{{ render_dropdown(form.ueform.__getitem__(loop.index0).acs) }}
<p>Objets de formation</p>
<ul>
{% for sae in competence.saes %}
<li><a style="color: inherit;" href="{{ url_for('SAE', code=sae.code[3:]) }}"><span class="tag is-info">{{ sae.code }}</span> - {{ sae.titre }} <i class="far fa-edit fa-sm"></i></a></li>
{% endfor %}
</ul>
{{ render_dropdown(form.ueform.__getitem__(loop.index0).saes) }}
<ul>
{% for ressource in competence.ressources %}
<li><a style="color: inherit;" href="{{ url_for('Ressource', code=ressource.code[1:]) }}"><span class="tag is-info">{{ ressource.code }}</span> - {{ ressource.nom }} <i class="far fa-edit fa-sm"></i></a></li>
{% endfor %}
</ul>
{{ render_dropdown(form.ueform.__getitem__(loop.index0).ressources) }}
{% endfor %}
</div>
<div class="field is-grouped">
{{ render_dropdown(form.ues) }}
<div class="control">
{{ form.update(class="button") }}
</div>
</div>
</form>
{% endblock %}