agenda: appointments and events comments are editable only from their service

Closes #4174
This commit is contained in:
Serghei Mihai 2014-07-03 11:00:38 +02:00
parent 4c00b57037
commit 3cfe29c87c
1 changed files with 9 additions and 5 deletions

View File

@ -58,11 +58,15 @@
{% endfor %}
</p>
{% endif %}
<div class="tabs-ressource-{{ ressource_agenda.ressource.id }} textedit">
<span></span>
<textarea>{{ appointment.description }}</textarea>
<button disabled="disabled" data-event-id="{{ appointment.event_id }}" data-date="{{ date|date:"Y-m-d" }}"></button>
</div>
{% if service in appointment.services_names %}
<div class="tabs-ressource-{{ ressource_agenda.ressource.id }} textedit">
<span></span>
<textarea>{{ appointment.description }}</textarea>
<button disabled="disabled" data-event-id="{{ appointment.event_id }}" data-date="{{ date|date:"Y-m-d" }}"></button>
</div>
{% else %}
<p>{{ appointment.description }}</p>
{% endif %}
{% endif %}
{% if appointment.patient_record_id %}
<p class="phones">