Project

General

Profile

« Previous | Next » 

Revision a5a20700

Added by Benjamin Dauvergne over 12 years ago

factorize all agenda navigation code in an agenda/base.html template

View differences:

calebasse/agenda/templates/agenda/index.html
1
{% extends "calebasse/base.html" %}
1
{% extends "agenda/base.html" %}
2 2
{% load url from future %}
3
{% block extrascripts %}
4
  <script src="{{ STATIC_URL }}js/calebasse.agenda.js"></script>
5
  <style>
6
      uveau rendez-vous patient
7
    .person-item span { display: none; }
8
    .person-item.active span { display: inline; }
9
    #agenda-date { width: 20em; }
10
  </style>
11
{% endblock %}
12

  
13
{% block title %}{{ block.super }} - Agenda {% endblock %}
14

  
15
{% block header %}
16
  {{ block.super }}
17
  <span>Agenda - {{ service_name }}</spam>
18
{% endblock %}
19 3

  
20 4
{% block appbar %}
21 5
    <h2>Agenda</h2>
......
51 35
 </div>
52 36
{% endblock %}
53 37

  
54
{% block content %}
55
<div class="content">
56
   <div id="datesel">
57
     <a href="../{{ previous_month|date:"SHORT_DATE_FORMAT"}}">««</a>
58
     <a href="../{{ previous_day|date:"SHORT_DATE_FORMAT"}}">«</a>
59
   <input id="agenda-date" value="{{ date|date:"DATE_FORMAT" }}"/>
60
   <a href="../{{ next_day|date:"SHORT_DATE_FORMAT"}}">»</a>
61
   <a href="../{{ next_month|date:"SHORT_DATE_FORMAT"}}">»»</a>
62
   </div>
63

  
38
{% block agenda-content %}
64 39
   <table>
65 40
    <tbody>
66 41
    <tr>
......
153 128
    </tr>
154 129
    </tbody>
155 130
   </table>
156
 </div>
157

  
158

  
159 131
{% endblock %}
160 132

  
161 133
{% block dialogs %}

Also available in: Unified diff