EditionPN/app/templates/index.html
2021-06-09 12:19:14 +02:00

37 lines
1.5 KiB
HTML

{% extends "base.html" %}
{% block title %}Accueil{% endblock %}
{% block content %}
<div class="content">
{% for semestre in semestres %}
<h1 class="title"><a style="color: inherit;" href="{{ url_for('Semestre', num=semestre.num) }}">Semestre {{ semestre.num }} <i class="far fa-edit fa-sm"></i></a></h1>
<ul>
{% for competence in semestre.ues %}
<li><h2 class="title is-4"><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></li>
<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>
{% endfor %}
</ul>
{% endfor %}
</div>
<form action="" method="post" novalidate>
{{ form.hidden_tag() }}
<div class="buttons">
{% if not semestres %}
{{ form.ajouter(class="button") }}
{{ form.reset(class="button is-static") }}
{% else %}
{{ form.ajouter(class="button is-static") }}
{{ form.reset(class="button") }}
{% endif %}
{{ form.exporterJSON(class="button") }}
{{ form.exporterYAML(class="button") }}
{{ form.importerJSON(class="button is-static") }}
{{ form.importerYAML(class="button is-static") }}
</div>
</form>
{% endblock %}