<tr><td></td><td><input type="submit" value="Recherche"></td></tr>
</form>
-<table class="listing tablesorter">
- <thead>
- <tr>
- {% sort_header "region" "Région" %}
- {% sort_header "implantation" "Implantation" %}
- {% sort_header "poste" "Poste" %}
- {% sort_header "personne" "Personne" %}
- {% sort_header "debut_contrat" "Début du contrat" %}
- {% sort_header "fin_contrat" "Fin du contrat" %}
- <th></th>
- </tr>
- </thead>
- <tbody>
- {% for dossier in embauches.object_list %}
- <tr>
- <td>{{ dossier.poste.implantation|region_ou_service }}</td>
- <td>{{ dossier.poste.implantation }}</td>
- <td><a href="{% url embauche_consulter dossier.id %}">{{ dossier.poste.nom }}</a></td>
- <td><a href="{% url embauche_consulter dossier.id %}">{{ dossier.employe }}</a></td>
- <td>{{ dossier.contrat_date_debut|date:"d-m-Y" }}</td>
- <td>{{ dossier.contrat_date_fin|date:"d-m-Y" }}</td>
- <td>
- {% if not dossier.dossier_rh %}
- <a href="{% url embauche_importer dossier.id %}">Importer</a></td>
- {% endif %}
- </td>
- </tr>
- {% endfor %}
- </tbody>
-</table>
-{% pagination embauches %}
+<form method="post">
+ <table class="listing tablesorter">
+ <thead>
+ <tr>
+ <th></th>
+ {% sort_header "region" "Région" %}
+ {% sort_header "implantation" "Implantation" %}
+ {% sort_header "poste" "Poste" %}
+ {% sort_header "personne" "Personne" %}
+ {% sort_header "debut_contrat" "Début du contrat" %}
+ {% sort_header "fin_contrat" "Fin du contrat" %}
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for dossier in embauches.object_list %}
+ <tr>
+ <td><input type="checkbox" name="ids" value="{{ dossier.id }}"></td>
+ <td>{{ dossier.poste.implantation|region_ou_service }}</td>
+ <td>{{ dossier.poste.implantation }}</td>
+ <td><a href="{% url embauche_consulter dossier.id %}">{{ dossier.poste.nom }}</a></td>
+ <td><a href="{% url embauche_consulter dossier.id %}">{{ dossier.employe }}</a></td>
+ <td>{{ dossier.contrat_date_debut|date:"d-m-Y" }}</td>
+ <td>{{ dossier.contrat_date_fin|date:"d-m-Y" }}</td>
+ <td>
+ {% if not dossier.dossier_rh %}
+ <a href="{% url embauche_importer dossier.id %}">Importer</a></td>
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ {% pagination embauches %}
+ <input type="submit" name="supprimer", value="Supprimer">
+</form>
{% endblock %}