Revision f93684a4
Added by Jérôme Schneider about 10 years ago
calebasse/dossiers/templates/dossiers/patientrecord_tab2_fiche_adm.html | ||
---|---|---|
1 |
<script type="text/javascript"> |
|
2 |
warning_on_unsave_change(); |
|
3 |
init_magic_dialog(); |
|
4 |
$('#prescription-transport-btn').click(function() { |
|
5 |
$('#ajax-dlg').load('prescription-transport', |
|
6 |
function () { |
|
7 |
$(this).dialog({title: 'Prescription de transport', width: '800px', |
|
8 |
buttons: [ { text: "Fermer", |
|
9 |
click: function() { $(this).dialog("close"); } }, |
|
10 |
{ text: "Prescrire", |
|
11 |
click: function() { $("#ajax-dlg form").submit(); $(this).dialog("close"); } }]}); |
|
12 |
$('.addresses input[type=radio]').first().click(); |
|
13 |
}); |
|
14 |
return false; |
|
15 |
}); |
|
16 |
$('#new-protection-btn').click(function() { |
|
17 |
generic_ajaxform_dialog('protection/new', 'Ajouter une mesure de protection', |
|
18 |
'#ajax-dlg', '800px', 'Ajouter', null, add_datepickers); |
|
19 |
}); |
|
20 |
$('.update-protection-btn').click(function() { |
|
21 |
generic_ajaxform_dialog('protection/' + $(this).data('id') + '/update', 'Modifier une mesure de protection', |
|
22 |
'#ajax-dlg', '800px', 'Modifier', null, add_datepickers); |
|
23 |
}); |
|
24 |
$('.del-protection').click(function() { |
|
25 |
generic_ajaxform_dialog('protection/' + $(this).data('id') + '/del', 'Supprimer une mesure de protection', |
|
26 |
'#ajax-dlg', '500px', 'Supprimer'); |
|
27 |
}); |
|
28 |
$('input#id_id-birthdate').datepicker({dateFormat: 'd/m/yy', showOn: 'button' }); |
|
29 |
calebasse_ajax_form('#tabs-2'); |
|
30 |
</script> |
|
1 | 31 |
{% extends 'dossiers/patientrecord_tab.html' %} |
2 | 32 |
{% load dossiers %} |
3 | 33 |
{% block content %} |
Also available in: Unified diff
calebasse.dossiers.js: put a warning if an error occured
Closes #2740