Project

General

Profile

Download (2.17 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / personnes / templates / personnes / holidays.html @ f69ae8a2

1
{% extends "calebasse/base.html" %}
2

    
3
{% load url from future %}
4

    
5
{% block appbar %}
6
    <h2>Gestion des personnes — Congés</h2>
7
    <a href="..">Retourner à la gestion des personnes</a>
8
{% endblock %}
9

    
10
{% block content %}
11
<h3>Congés du personnel</h3>
12

    
13
{% if current_holidays %}
14
  <h4>En cours</h4>
15

    
16
  <ul>
17
    {% for holiday in current_holidays %}
18
    <li><a href="{% url 'worker_update' service=service pk=holiday.worker.pk %}">
19
        {{ holiday.worker.last_name }} {{holiday.worker.first_name }}
20
        </a>, {{ holiday }}</li>
21
    {% endfor %}
22
  </ul>
23
{% endif %}
24

    
25
{% if future_holidays %}
26
  <h4>À venir</h4>
27

    
28
  <table id="conges-a-venir">
29
    <thead>
30
      <tr>
31
        {% for month in future_holidays %}
32
          <th>{{ month.date|date:"F"|capfirst }}</th>
33
        {% endfor %}
34
      </tr>
35
    </thead>
36
    <tbody>
37
      <tr>
38
        {% for month in future_holidays %}
39
          <td>
40
            <ul>
41
              {% for holiday in month.holidays %}
42
              <li><a href="{% url 'worker_update' service=service pk=holiday.worker.pk %}">
43
                  {{ holiday.worker.last_name }} {{holiday.worker.first_name }}
44
                  </a>, {{ holiday }}</li>
45
              {% endfor %}
46
            </ul>
47
          </td>
48
        {% endfor %}
49
      </tr>
50
    </tbody>
51
  </table>
52
{% endif %}
53

    
54
{% if annual_holidays %}
55
<h3>Congés annuels</h3>
56
<ul>
57
  {% for holiday in annual_holidays %}
58
    <li>{{ holiday|capfirst }}</li>
59
  {% endfor %}
60
</ul>
61
{% endif %}
62
<!-- <button>Gestion des congés annuels</button> -->
63
<p>
64
  <a href="annuel/">Gestion des congés annuels</a>
65
</p>
66

    
67
<h3>Affichage interactif</h3>
68

    
69
  <form>
70
    {{ search_form.non_field_errors }}
71
    {{ search_form.start_date.errors }}
72
    <p>Afficher la liste des congés pris entre
73
      <span id="start-date-datepicker" data-number-of-months="3" data-before-selector="#end-date-datepicker" class="datepicker">{{ search_form.start_date }}</span>
74
      et
75
      <span id="end-date-datepicker" class="datepicker" data-number-of-months="3" data-after-selector="#start-date-datepicker">{{ search_form.end_date }}</span>
76
      <button class="enable-on-change">Valider</button>
77
      <button class="reset">Effacer</button>
78
    </p>
79
  </form>
80
{% endblock %}
(3-3/9)