Revision b4310641
Added by Mikaël Ates almost 12 years ago
calebasse/dossiers/templates/dossiers/generate_rtf_form.html | ||
---|---|---|
16 | 16 |
|
17 | 17 |
<h3>Patient</h3> |
18 | 18 |
|
19 |
<input type="hidden" name="first_name" value="{{ object.first_name }}" /> |
|
20 |
<input type="hidden" name="last_name" value="{{ object.last_name }}" /> |
|
21 |
<input type="hidden" name="birthdate" value="{{ object.birthdate|date:"d/m/Y" }}" /> |
|
22 |
|
|
23 | 19 |
<ul> |
24 | 20 |
<li>{{ object.first_name }} <span class="lastname">{{ object.last_name }}</span></li> |
25 | 21 |
{% if object.birthdate %} |
... | ... | |
31 | 27 |
|
32 | 28 |
<ul class="addresses"> |
33 | 29 |
{% for address in object.addresses.all %} |
34 |
{% if address.place_of_life %}<li>{{ address.display_name }} |
|
30 |
{% if address.place_of_life %}<li>{{ address.display_name }}{% if address.phone %}(Tél : {{ address.phone }}){% endif %}
|
|
35 | 31 |
<ul> |
36 | 32 |
{% for contact in address.patientcontact_set.all %} |
37 | 33 |
<li><input type="radio" name="contact" id="contact_{{ address.id }}_{{ contact.id }}" |
... | ... | |
40 | 36 |
{% if address.address_complement %}data-address-address-complement="{{ address.address_complement }}"{% endif %} |
41 | 37 |
{% if address.zip_code %}data-address-zip-code="{{ address.zip_code }}"{% endif %} |
42 | 38 |
{% if address.city %}data-address-city="{{ address.city }}"{% endif %} |
39 |
{% if address.phone %}data-address-phone="{{ address.phone }}"{% endif %} |
|
43 | 40 |
{% if contact.gender %}data-contact-gender={% if contact.gender == 1 %}"Monsieur"{% elif contact.gender == 2 %}"Madame"{% endif %}{% endif %} |
44 | 41 |
{% if contact.first_name %}data-contact-first-name="{{ contact.first_name }}"{% endif %} |
45 | 42 |
{% if contact.last_name %}data-contact-last-name="{{ contact.last_name }}"{% endif %} |
46 |
><label for="contact_{{ address.id }}_{{ contact.id }}">{% if contact.gender == 1 %}M. {% elif contact.gender == 2 %}Mme {% endif %}{% if contact.first_name %}{{ contact.first_name }} {% endif %}<span class="lastname">{{ contact.last_name }}</span> {% if contact.id == object.id %} (PATIENT){% endif %}</label></input></li>
|
|
43 |
><label for="contact_{{ address.id }}_{{ contact.id }}">{% if contact.gender == 1 %}M. {% elif contact.gender == 2 %}Mme {% endif %}{% if contact.first_name %}{{ contact.first_name }} {% endif %}<span class="lastname">{{ contact.last_name }}</span>{% if contact.mobile %} (Perso : {{ contact.mobile }}){% endif %}{% if contact.phone %} (Pro : {{ contact.phone }}){% endif %}{% if contact.id == object.id %} (PATIENT){% endif %}{% if object.policyholder.id == contact.id %} (ASSURE){% endif %}</label></input></li>
|
|
47 | 44 |
{% endfor %} |
48 | 45 |
</ul> |
49 | 46 |
</li>{% endif %} |
... | ... | |
52 | 49 |
|
53 | 50 |
{{ form.address }} |
54 | 51 |
|
52 |
<p><label>Téléphone : </label><input id="id_phone_address" type="text" name="phone_address" value=""/></p> |
|
53 |
|
|
55 | 54 |
{% if appointment %} |
56 | 55 |
<h3>Rendez-vous</h3> |
57 | 56 |
|
58 |
<input type="hidden" name="appointment_date" value="{{ appointment.date }}" /> |
|
59 |
<input type="hidden" name="appointment_begin_hour" value="{{ appointment.begin_hour }}" /> |
|
60 |
<input type="hidden" name="appointment_intervenants" value="{% for worker in appointment.workers %}{{ worker.first_name }} {{ worker.last_name }}{% if forloop.last %}{% else %}, {% endif %}{% endfor %}" /> |
|
61 |
|
|
62 | 57 |
<ul> |
63 | 58 |
<li>Date : {{ appointment.date }}</li> |
64 | 59 |
<li>Heure : {{ appointment.begin_hour }}</li> |
Also available in: Unified diff
Complete variables for template-based document generation.