Fix for titulaire antérieur
[auf_rh_dae.git] / project / dae / templates / dae / embauches_finalisees.html
1 {% extends "base.html" %}
2 {% load dae %}
3
4 {% block title %}RH - DAE - Embauches{% endblock %}
5 {% block titre %}Ressources humaines{% endblock %}
6 {% block sous_titre %}Demande d'autorisation d'engagement{% endblock %}
7 {% block extrahead %}
8 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/dae.css" />
9 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/tablesorter.css" />
10 <script type="text/javascript" src="{{ STATIC_URL }}js/jquery-1.5.1.min.js"></script>
11 <script type="text/javascript">
12 $(document).ready(function() {
13 $('table.tablesorter thead th').click(function() {
14 window.location.href = $(this).find('a').attr('href');
15 });
16 });
17 </script>
18 {% endblock %}
19
20 {% block main %}
21 <h1>Liste des demandes d'autorisation d'engagement finalisées</h1>
22
23 <form>
24 <table>
25 {{ search_form }}
26 <tr><td></td><td><input type="submit" value="Recherche"></td></tr>
27 </form>
28
29 <form method="post">
30 <table class="listing tablesorter">
31 <thead>
32 <tr>
33 <th></th>
34 {% sort_header "zone_administrative" "Zone administrative" %}
35 {% sort_header "implantation" "Implantation" %}
36 {% sort_header "poste" "Poste" %}
37 {% sort_header "personne" "Personne" %}
38 {% sort_header "debut_contrat" "Début du contrat" %}
39 {% sort_header "fin_contrat" "Fin du contrat" %}
40 {% if request.user.is_superuser %}
41 <th></th>
42 {% endif %}
43 </tr>
44 </thead>
45 <tbody>
46 {% for dossier in embauches.object_list %}
47 <tr>
48 <td><input type="checkbox" name="ids" value="{{ dossier.id }}"></td>
49 <td>{{ dossier.poste.implantation.zone_administrative }}</td>
50 <td>{{ dossier.poste.implantation }}</td>
51 <td><a href="{% url poste_consulter dossier.poste.key %}">{{ dossier.poste.nom }}</a></td>
52 <td><a href="{% url embauche_consulter dossier.id %}">{{ dossier.employe }}</a></td>
53 <td>{{ dossier.contrat_date_debut|date:"d-m-Y" }}</td>
54 <td>{{ dossier.contrat_date_fin|date:"d-m-Y" }}</td>
55 {% if request.user.is_superuser %}
56 <td>
57 {% if not dossier.dossier_rh %}
58 <a href="{% url embauche_importer dossier.id %}">Importer</a></td>
59 {% endif %}
60 </td>
61 {% endif %}
62 </tr>
63 {% endfor %}
64 </tbody>
65 </table>
66 {% pagination embauches %}
67 <input type="submit" name="supprimer", value="Supprimer">
68 </form>
69 {% endblock %}