Project

General

Profile

« Previous | Next » 

Revision 67de2724

Added by Mikaël Ates almost 12 years ago

agenda: add print button at the bottom of the all-agenda page.

View differences:

calebasse/agenda/templates/agenda/agendas-therapeutes.html
46 46
                </td>
47 47
                <td> {% if appointment.title %}{{ appointment.title }}{% endif %}</td>
48 48
                <td/>
49
                    <td> {% if appointment.act_absence %}<strong>{{ appointment.act_absence }}</strong>{% endif %}</td>
50
                    <td> {% if appointment.act_type %}{{ appointment.act_type }}{% endif %}</td>
51
                    <td> {% if appointment.description %}{{ appointment.description }}{% endif %}</td>
52
                    <td>
53
                        {% if appointment.workers and appointment.workers|length > 10 %}
54
                        {{ appointment.workers|length }} intervenants
55
                        {% else %}
56
                        {% for worker in appointment.workers %}
57
                        <span class="lastname">{{ worker.last_name }}</span> {{ worker.first_name }}<br/>
58
                        {% endfor %}
59
                        {% endif %}
60
                    </td>
61
                </tr>
62
                {% endfor %}
63
            </tbody>
64
        </table>
49
                <td> {% if appointment.act_absence %}<strong>{{ appointment.act_absence }}</strong>{% endif %}</td>
50
                <td> {% if appointment.act_type %}{{ appointment.act_type }}{% endif %}</td>
51
                <td> {% if appointment.description %}{{ appointment.description }}{% endif %}</td>
52
                <td>
53
                    {% if appointment.workers and appointment.workers|length > 10 %}
54
                    {{ appointment.workers|length }} intervenants
55
                    {% else %}
56
                    {% for worker in appointment.workers %}
57
                    <span class="lastname">{{ worker.last_name }}</span> {{ worker.first_name }}<br/>
58
                    {% endfor %}
59
                    {% endif %}
60
                </td>
61
            </tr>
62
            {% endfor %}
63
        </tbody>
64
    </table>
65 65

  
66
        <div class="summary">
67
            RDV :      {{ worker_agenda.summary.rdv }} —
68
            Présence : {{ worker_agenda.summary.presence }} —
69
            Absence :  {{ worker_agenda.summary.absence }} —
70
            Doubles :  {{ worker_agenda.summary.doubles }} —
71
            Validés :  {{ worker_agenda.summary.valides }}
72
            <div class="pagebreak"></div>
73
        </div>
66
    <div class="summary">
67
        RDV :      {{ worker_agenda.summary.rdv }} —
68
        Présence : {{ worker_agenda.summary.presence }} —
69
        Absence :  {{ worker_agenda.summary.absence }} —
70
        Doubles :  {{ worker_agenda.summary.doubles }} —
71
        Validés :  {{ worker_agenda.summary.valides }}
72
        <div class="pagebreak"></div>
73
    </div>
74 74

  
75
    </div> <!-- .worker-agenda -->
75
</div> <!-- .worker-agenda -->
76 76

  
77
    {% endif %}
78
    {% endfor %}
77
{% endif %}
78
{% endfor %}
79 79
    <script>
80 80
        $(function () {
81 81
            /* Control page break on last printed page */
......
108 108
            });
109 109
        });
110 110
    </script>
111
    {% endblock %}
112 111

  
112
<button id='print-button' class='screen-only'>Imprimer</button>
113
{% endblock %}

Also available in: Unified diff