forked from eric.li/EditionPN
60 lines
2.3 KiB
HTML
60 lines
2.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Accueil{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if form.fichier.errors|length != 0 %}
|
|
<article class="message is-danger">
|
|
<div class="message-body">
|
|
{% for error in form.fichier.errors %}
|
|
<p>{{error}}</p>
|
|
{% endfor %}
|
|
</div>
|
|
</article>
|
|
{% endif %}
|
|
<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="" enctype=multipart/form-data 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") }}
|
|
<div class="control">
|
|
<div class="file has-name">
|
|
<label class="file-label">
|
|
{{ form.fichier(class="file-input") }}
|
|
<span class="file-cta">
|
|
<span class="file-icon">
|
|
<i class="fas fa-file-import"></i>
|
|
</span>
|
|
<span class="file-label">
|
|
{{ form.fichier.label }}
|
|
</span>
|
|
</span>
|
|
{{ form.importer(class="button file-name") }}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
{% endblock %} |