epcstages/templates/admin/index.html

110 lines
3.9 KiB
HTML
Raw Normal View History

2012-11-07 14:06:15 +01:00
{% extends "admin/base_site.html" %}
2018-08-20 16:09:13 +02:00
{% load i18n static %}
2012-11-07 14:06:15 +01:00
2013-04-08 14:19:23 +02:00
{% block extrastyle %}{{ block.super }}
2018-02-19 09:37:13 +01:00
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/dashboard.css' %}">
2013-04-08 14:19:23 +02:00
{% endblock %}
2012-11-07 14:06:15 +01:00
{% block extrahead %}
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(event) {
var formLink = document.getElementById("updateFormLink");
if (formLink) {
formLink.addEventListener("click", function(event) {
var href = this.href;
var date = prompt("Date de retour des formulaires : ", "?.9.2018");
this.href = href + "?date=" + date;
});
}
});
</script>
{% endblock %}
2012-11-07 14:06:15 +01:00
{% block coltype %}colMS{% endblock %}
{% block bodyclass %}dashboard{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block content %}
<div id="content-main">
2013-04-08 14:19:23 +02:00
<ul id="main">
<li><b><a href="{% url 'corporations' %}">Liste des institutions</a></b></li>
<li><b><a href="{% url 'classes' %}">Liste des classes</a></b></li>
2013-04-08 14:19:23 +02:00
</ul>
2012-11-07 14:06:15 +01:00
{% if app_list %}
{% for app in app_list %}
<div class="module">
<table>
<caption>
<a href="{{ app.app_url }}" class="section" title="{% blocktrans with name=app.name %}Models in the {{ name }} application{% endblocktrans %}">
{% blocktrans with name=app.name %}{{ name }}{% endblocktrans %}
</a>
</caption>
{% for model in app.models %}
<tr>
{% if model.admin_url %}
<th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
{% else %}
<th scope="row">{{ model.name }}</th>
{% endif %}
{% if model.add_url %}
<td><a href="{{ model.add_url }}" class="addlink">{% trans 'Add' %}</a></td>
{% else %}
<td>&nbsp;</td>
{% endif %}
{% if model.admin_url %}
<td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
{% else %}
<td>&nbsp;</td>
{% endif %}
</tr>
{% endfor %}
</table>
</div>
{% endfor %}
{% endif %}
</div>
{% endblock %}
{% block sidebar %}
<div id="content-related">
{% if perms.stages.change_training %}
2012-11-13 15:17:57 +01:00
<div class="module" id="custom-actions-module">
<h2>Pratique professionnelle</h2>
2012-11-13 15:17:57 +01:00
<ul>
<li><a href="{% url 'attribution' %}">Organisation de la pratique professionnelle</a></li>
2012-11-13 15:17:57 +01:00
</ul>
<ul>
<li style="margin-top: 1em;"><a href="{% url 'stages_export' %}">Exporter les données de pratique professionnelle</a> (récentes)</li>
<li><a href="{% url 'stages_export' 'all' %}">Exporter les données de pratique professionnelle</a> (toutes)</li>
</ul>
2012-11-13 15:17:57 +01:00
</div>
{% endif %}
{% if perms.stages.change_student %}
2012-11-13 15:17:57 +01:00
<div class="module" id="custom-actions-module">
<h2>Importation/exportation</h2>
<ul>
2018-07-16 10:32:07 +02:00
<li><a href="{% url 'import-students' %}">Importer un fichier d'étudiants EPC</a></li>
<li><a href="{% url 'import-students-ester' %}">Importer un fichier d'étudiants ESTER</a></li>
2017-08-29 16:59:13 +02:00
<li><a href="{% url 'import-hp' %}">Importer le fichier HP</a></li>
2020-09-14 14:33:10 +02:00
<!--li><a href="{ url 'import-hp-contacts' }">Importer les formateurs (fichier HP)</a></li-->
<li style="margin-top: 0.7em;"><a href="{% url 'imputations_export' %}">Exporter les données comptables</a></li>
<!--li><a id="updateFormLink" href="{ url 'print_update_form' }">Imprimer les formulaires de MAJ</a></li-->
<!--li><a href="{ url 'print-klass-list' }">Imprimer les rôles de classes</a></li-->
2017-08-29 17:08:17 +02:00
<li><a href="{% url 'general-export' %}">Exportation générale des élèves</a></li>
2023-11-09 12:06:08 +01:00
<li><a href="{% url 'export-qualif' %}">Exportation qualif. ES</a></li>
2020-09-14 14:33:10 +02:00
<!--li><a href="{ url 'ortra-export' }">Exportation pour ORTRA</a></li-->
2012-11-13 15:17:57 +01:00
</ul>
2012-11-07 14:06:15 +01:00
</div>
{% endif %}
2012-11-07 14:06:15 +01:00
</div>
{% endblock %}
2017-09-05 14:57:55 +02:00