<form>
  {% csrf_token %}
  {% if form %}
  <div class='print-only'>{{ form.services }}</div>
  <table>
    <tr><td colspan=2>{{ form.non_field_errors }}</td></tr>
    <tr>
      <th>Date début</th><th>Date fin</th>
    </tr>
    <tr>
      <td id="start" data-before-selector="#end" class="datepicker" data-number-of-months="2">
        {{ form.start_date }} {{ form.start_date.errors }}
      </td>
      <td id="end" data-after-selector="#start" class="datepicker" data-number-of-months="2">
        {{ form.end_date }} {{ form.end_date.errors }}
      </td>
    </tr>
    <tr>
      <th>Heure début</th><th>Heure fin</th>
    </tr>
    <tr>
      <td>{{ form.start_time }} {{ form.start_time.errors }}</td>
      <td>{{ form.end_time }} {{ form.end_time.errors }}</td>
    </tr>
    <tr>
      <th>Type</<th><th>Commentaire</th>
    </tr>
    <tr>
      <td>{{ form.holiday_type }} {{ form.holiday_type.errors }}</td>
      <td>{{ form.comment }} {{ form.comment.errors }}</td>
    </tr>
  </table>
  {% else %}
  Etez-vous sur de vouloir supprimer cette absence?
  {% endif %}
</form>
