Revision eb086941
Added by Jérôme Schneider almost 13 years ago
| calebasse/actes/templates/actes/act_listing.html | ||
|---|---|---|
|
{% block extrascripts %}
|
||
|
{{ block.super }}
|
||
|
<script src="{{ STATIC_URL }}js/calebasse.datesel.js"></script>
|
||
|
<script src="{{ STATIC_URL }}js/calebasse.dialog.js"></script>
|
||
|
<script>
|
||
|
$(function() {
|
||
|
$('.date').datepicker();
|
||
|
$('table#actes tr').click(function() {
|
||
|
|
||
|
$('#acte-dlg').dialog({title: 'Acte',
|
||
|
width: '500px',
|
||
|
buttons: [ { text: "Annuler",
|
||
|
click: function() { $(this).dialog("close"); } },
|
||
|
{ text: "Enregistrer",
|
||
|
click: function() { $(this).dialog("close"); } }
|
||
|
]}
|
||
|
);
|
||
|
|
||
|
generic_ajaxform_dialog($(this).data('id') + '/update', "Modifier l'acte",
|
||
|
'#acte-dlg', '500px', 'Enregistrer', '..');
|
||
|
});
|
||
|
$('.date').datepicker();
|
||
|
$('#new-acte').click(function() {
|
||
|
$('#new-acte-dlg').dialog({title: 'Nouvel acte',
|
||
|
width: '550px',
|
||
| ... | ... | |
|
FIXME: comment mettre la classe non-factu ?
|
||
|
<tr class="non-factu">
|
||
|
{% endcomment %}
|
||
|
<tr>
|
||
|
<tr data-id="{{ act.id }}">
|
||
|
<td>
|
||
|
{{ act.patient.id }}
|
||
|
{{ act.patient.first_name }}
|
||
| ... | ... | |
|
|
||
|
{% block dialogs %}
|
||
|
|
||
|
<div id="acte-dlg" style="display: none;">
|
||
|
<p>1234 Bob Leponge (Traitement)</p>
|
||
|
<p><select><option>(11) Ortophonie</option></select></p>
|
||
|
<p>8 août 2012 - 17:15 - 45 minutes</p>
|
||
|
|
||
|
<table>
|
||
|
<tr><td width="50%">
|
||
|
<h4>Intervenants</h4>
|
||
|
<div id="intervenants">
|
||
|
<ul>
|
||
|
<li><input type="checkbox" value="Bob Léponge" checked="checked">Bob Léponge</input></li>
|
||
|
<li><input type="checkbox" value="Sandy Kilo" checked="checked">Sandy Kilo</input></li>
|
||
|
</ul>
|
||
|
<a href="#">Ajouter</a><br/>
|
||
|
<a href="#">Tout le monde</a>
|
||
|
</div>
|
||
|
</td>
|
||
|
|
||
|
<td width="50%">
|
||
|
|
||
|
<ul>
|
||
|
<li>Rendez-vous pris le 5 juillet 2012 à 10:36</li>
|
||
|
<li>Acte validé le 10 août 2012 à 9h10</li>
|
||
|
<li>En cours de facturation (123) <button class="flat">Acte perdu</button></li>
|
||
|
</ul>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<br/>
|
||
|
<br/>
|
||
|
<textarea cols="50">Bla bla bla</textarea>
|
||
|
|
||
|
</div>
|
||
|
<div id="acte-dlg" style="display: none;"></div>
|
||
|
{% endblock %}
|
||
Also available in: Unified diff
actes: begin act edition support