Project

General

Profile

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

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

1
{% extends "personnes/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|dictsort:"worker" %}
18
      <li><a href="{{ holiday.url }}">{{ holiday.worker }} {{ holiday.holiday }}</a></li>
19
    {% endfor %}
20
  </ul>
21
{% endif %}
22

    
23
{% if future_holidays %}
24
  <h4>À venir (jusqu'au {{ end_date|date:"d/m/Y" }})</h4>
25

    
26
  <table id="conges-a-venir">
27
    {% for months in future_holidays %}
28
      <thead>
29
        <tr>
30
          {% for future in months %}
31
            <th>{{ future.month|capfirst }}</th>
32
          {% endfor %}
33
        </tr>
34
      </thead>
35
      <tbody>
36
        <tr>
37
          {% for future in months %}
38
            <td>
39
              <ul>
40
                {% for holiday in future.holidays|dictsort:"worker" %}
41
                  <li>
42
                    <a href="{{ holiday.url }}">
43
                      {{ holiday.worker }} {{ holiday.holiday }}
44
                    </a>
45
                  </li>
46
                {% endfor %}
47
              </ul>
48
            </td>
49
          {% endfor %}
50
        </tr>
51
      </tbody>
52
   {% endfor %}
53
  </table>
54
{% endif %}
55

    
56
<h3>Congés de groupe</h3>
57
<p>
58
  <a href="groupe/">Gestion des congés de groupe</a>
59
</p>
60
{% if group_holidays %}
61
<ul>
62
  {% for holiday in group_holidays %}
63
    <li>{{ holiday|capfirst }}</li>
64
  {% endfor %}
65
</ul>
66
{% endif %}
67

    
68
<h3>Affichage interactif</h3>
69

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