dossiers: add confidential field to general tab.
This commit is contained in:
parent
cfcdba8d10
commit
fccccb97e6
|
@ -82,7 +82,7 @@ class NewPatientRecordForm(ModelForm):
|
|||
class GeneralForm(ModelForm):
|
||||
class Meta:
|
||||
model = PatientRecord
|
||||
fields = ('comment', 'pause')
|
||||
fields = ('comment', 'pause', 'confidential')
|
||||
widgets = {
|
||||
'comment': forms.Textarea(attrs={'cols': 50, 'rows': 5}),
|
||||
}
|
||||
|
|
|
@ -70,6 +70,8 @@
|
|||
{% endfor %}
|
||||
<button type="button" id="patientrecord-history">Historique</button><br/>
|
||||
<hr/>
|
||||
<p id="confidential-msg" style="display: none; font-size: 10px;">Confidentialité mise à jour</p>
|
||||
{{ forms.general.confidential.label_tag }} : {{ forms.general.confidential }}
|
||||
<p id="pause-msg" style="display: none; font-size: 10px;">Pause facturation mise à jour</p>
|
||||
{{ forms.general.pause.label_tag }} : {{ forms.general.pause }}
|
||||
<!-- 3/6 diagnostics -->
|
||||
|
|
|
@ -57,6 +57,9 @@ function state_dialog(url, state_title, state_type) {
|
|||
$('#id_general-pause').click(function() {
|
||||
$('#btn-maj').click();
|
||||
});
|
||||
$('#id_general-confidential').click(function() {
|
||||
$('#btn-maj').click();
|
||||
});
|
||||
$('.policyholder-radio').click(function() {
|
||||
$("#policyholder-form").submit();
|
||||
});
|
||||
|
|
Reference in New Issue