Revision 0a82dcb8
Added by Benjamin Dauvergne over 12 years ago
calebasse/agenda/templates/agenda/index.html | ||
---|---|---|
1 | 1 |
{% extends "calebasse/base.html" %} |
2 |
{% load url from future %} |
|
2 | 3 |
{% block extrascripts %} |
3 | 4 |
<script> |
4 | 5 |
$(function() { |
... | ... | |
48 | 49 |
buttons: [ { text: "Fermer", |
49 | 50 |
click: function() { $(this).dialog("close"); } }, |
50 | 51 |
{ text: "Ajouter", |
51 |
click: function() { $(this).dialog("close"); } }]}
|
|
52 |
click: function() { $("#rdv form").submit(); } }]}
|
|
52 | 53 |
); |
53 | 54 |
}); |
54 | 55 |
}); |
... | ... | |
240 | 241 |
|
241 | 242 |
{% block dialogs %} |
242 | 243 |
<div id="rdv" style="display: none;"> |
243 |
<form> |
|
244 |
<form method="post" action="{% url "nouveau-rdv" service=service date=date %}"> |
|
245 |
{% with new_appointment_form as form %} |
|
244 | 246 |
<table><tr><td> |
245 | 247 |
<p> |
246 |
<label for="id_date">Date:</label> |
|
247 |
<input id="id_date" class="date" name="date" value="5/7/2012"/> |
|
248 |
|
|
249 |
{{ form.date.label_tag }} |
|
250 |
{{ form.date }} |
|
248 | 251 |
</p> |
249 | 252 |
</td><td> |
250 | 253 |
<p> |
251 |
<label for="id_debut">Heure de début :</label>
|
|
252 |
<input id="id_debut" type="text" name="debut" maxlength="10"/>
|
|
254 |
{{ form.time.label_tag }}
|
|
255 |
{{ form.time }}
|
|
253 | 256 |
</p> |
254 | 257 |
</td><td> |
255 | 258 |
<p> |
256 |
<label for="id_duree">Durée :</label>
|
|
257 |
<input id="id_duree" type="text" name="duree" maxlength="10"/>
|
|
259 |
{{ form.duration.label_tag }}
|
|
260 |
{{ form.duration }}
|
|
258 | 261 |
</p> |
259 | 262 |
</td></tr> |
260 | 263 |
|
261 | 264 |
<tr> |
262 | 265 |
<td> |
263 |
<h4>Intervenants</h4>
|
|
266 |
<h4>{{ form.participants.label_tag }}</h4>
|
|
264 | 267 |
<div id="intervenants"> |
265 |
<ul> |
|
266 |
<li><input type="checkbox" value="Bob Léponge" checked="checked">Bob Léponge</input></li> |
|
267 |
<li><input type="checkbox" value="Sandy Kilo" checked="checked">Sandy Kilo</input></li> |
|
268 |
</ul> |
|
269 |
<input/><button id="add-intervenant-btn">➕</button> |
|
270 |
<p><small>(champ avec autocomplétion)</small></p> |
|
271 |
<!-- <a href="#">Tout le monde</a> --> |
|
268 |
{{ form.participants }} |
|
272 | 269 |
</div> |
273 | 270 |
</td> |
274 | 271 |
<td> |
275 |
<h4>Patient</h4> |
|
276 |
<input name="patient"/> |
|
277 |
<br/> |
|
278 |
<p><small>(champ avec autocomplétion)</small></p> |
|
272 |
<h4>{{ form.patient.label_tag }}</h4> |
|
273 |
{{ form.patient }} |
|
279 | 274 |
</td> |
280 | 275 |
<td> |
281 | 276 |
|
282 |
<h4>Type d'acte</h4> |
|
283 |
<select> |
|
284 |
<option>Analyse</option> |
|
285 |
<option>Bla bla bla bla bla bla</option> |
|
286 |
</select> |
|
277 |
<h4>{{ form.act_type.label_tag }}</h4> |
|
278 |
{{ form.act_type }} |
|
287 | 279 |
</td> |
288 | 280 |
</tr> |
289 | 281 |
</table> |
290 | 282 |
|
291 | 283 |
<hr/> |
292 | 284 |
<button>Configurer la périodicité</button> |
293 |
|
|
285 |
{% endwith %} |
|
294 | 286 |
</form> |
295 | 287 |
</div> |
296 | 288 |
{% endblock %} |
Also available in: Unified diff
add a new appointment form