EditionPN/app/templates/semestre.html

51 lines
2.3 KiB
HTML
Raw Normal View History

2021-06-01 19:31:24 +02:00
{% 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) }}
2021-06-09 10:21:19 +02:00
<!-- Affichage des objets de formations contenu dans l'UE avec modification du coef -->
<h1 class="title is-5">Objets de formation</h1>
<ul style="list-style-type: none">
{% for coefForm in form.ueform.__getitem__(loop.index0).coef %}
<li>
<div class="field is-horizontal">
<div class="field-body">
<div class="field">
<p class="control">
{{ coefForm.objetformation }}
<a class="button" href="{{ url_for(coefForm.objetformation.data.__repr__()[1:-1].split()[0], code=coefForm.objetformation.data.getCode()) }}">{{ coefForm.objetformation.data.getLabel() }}<i class="far fa-edit fa-sm"></i></a>
</p>
</div>
<div class="field">
{{ coefForm.coef(class="input is-pulled-right",style="width: 2em") }}
</div>
</div>
</div>
</li>
{% endfor %}
2021-06-01 19:31:24 +02:00
</ul>
{{ render_dropdown(form.ueform.__getitem__(loop.index0).saes) }}
{{ 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 %}