{% extends 'base.html' %}
+{% block extrahead %}
+ <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/tablesorter.css" media="screen"/>
+ <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.5.1.min.js"></script>
+ <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.tablesorter.min.js"></script>
+ <script>
+ $(document).ready(function() {
+ $(".tablesorter").tablesorter({
+ dateFormat: 'uk',
+ headers: {
+ 4: {sorter: "shortDate"},
+ }
+ }
+ );
+ });
+ </script>
+{% endblock %}
+
{% block title %}RH - DAE - Embauches{% endblock %}
{% block titre %}Ressources humaines{% endblock %}
{% block sous_titre %}Demande d'autorisation d'engagement{% endblock %}
<h2>Mes demandes à traiter</h2>
{% if embauches_a_traiter %}
-<table>
- <tr>
- <th>Embauche</th>
- <th>Service</th>
- <th>Région</th>
- <th>État</th>
- </tr>
+<table class="tablesorter">
+ <thead>
+ {% include "dae/embauche-header.html" %}
+ </thead>
+<tbody>
{% for dossier in embauches_a_traiter %}
- <tr>
- <td><a href="{% url embauche_consulter dossier.id %}">{{ dossier }}</a></td>
- <td>{{ dossier.poste.service }}</td>
- <td>{{ dossier.poste.implantation.region }}</td>
- <td>{{ dossier.get_etat_display }}</td>
- </tr>
+ {% include "dae/embauche-row.html" %}
{% endfor %}
+</tbody>
</table>
{% else %}
<p>Vous n'avez aucune demande à traiter.</p>
<h2>Les demandes en cours</h2>
{% if embauches_en_cours %}
-<table>
- <tr>
- <th>Embauche</th>
- <th>Service</th>
- <th>Région</th>
- <th>État</th>
- </tr>
+<table class="tablesorter">
+ <thead>
+ {% include "dae/embauche-header.html" %}
+ </thead>
+<tbody>
{% for dossier in embauches_en_cours %}
- <tr>
- <td><a href="{% url embauche_consulter dossier.id %}">{{ dossier }}</a></td>
- <td>{{ dossier.poste.service }}</td>
- <td>{{ dossier.poste.implantation.region }}</td>
- <td>{{ dossier.get_etat_display }}</td>
- </tr>
+ {% include "dae/embauche-row.html" %}
{% endfor %}
+</tbody>
</table>
{% else %}
<p>Il n'y a aucune demande en cours.</p>
<h2>Les demandes non retenues</h2>
{% if embauches_non_retenues %}
-<table>
- <tr>
- <th>Embauche</th>
- <th>Service</th>
- <th>Région</th>
- <th>État</th>
- </tr>
+<table class="tablesorter">
+ <thead>
+ {% include "dae/embauche-header.html" %}
+ </thead>
+<tbody>
{% for dossier in embauches_non_retenues %}
- <tr>
- <td><a href="{% url embauche_consulter dossier.id %}">{{ dossier }}</a></td>
- <td>{{ dossier.poste.service }}</td>
- <td>{{ dossier.poste.implantation.region }}</td>
- <td>{{ dossier.get_etat_display }}</td>
- </tr>
+ {% include "dae/embauche-row.html" %}
{% endfor %}
+</tbody>
</table>
{% else %}
<p>Il n'y a aucune demande non retenue.</p>