agenda: edit icon hidden for an event/schedule if it is not related to the current service
Closes #4174
This commit is contained in:
parent
ee4ee3269a
commit
a142f55118
|
@ -32,13 +32,15 @@
|
|||
<span title="Un commentaire existe" class="icon-comment" {% if appointment.description %}style='display: inline'{% endif %}></span>
|
||||
{% if appointment.event_id %}
|
||||
{% if appointment.is_recurrent %} R {% endif %}
|
||||
{% if appointment.patient_record_id %}
|
||||
<button title="Éditer un rendez-vous" class="edit-appointment icon-edit" data-event-id="{{ appointment.event_id }}"></button>
|
||||
{% else %}
|
||||
<button title="Éditer un événement" class="edit-event icon-edit" data-event-id="{{ appointment.event_id }}">
|
||||
{% if service in appointment.services_names %}
|
||||
{% if appointment.patient_record_id %}
|
||||
<button title="Éditer un rendez-vous" class="edit-appointment icon-edit" data-event-id="{{ appointment.event_id }}"></button>
|
||||
{% else %}
|
||||
<button title="Éditer un événement" class="edit-event icon-edit" data-event-id="{{ appointment.event_id }}">
|
||||
{% endif %}
|
||||
<button class="remove-appointment icon-remove-sign" title="Supprimer un rendez-vous" data-url="{% url 'delete-occurrence' date=date service=service pk=appointment.event_id %}" data-rdv="{{ appointment.title }}"></button>
|
||||
<button class="remove-appointment icon-remove-sign" title="Supprimer un rendez-vous" data-url="{% url 'delete-occurrence' date=date service=service pk=appointment.event_id %}" data-rdv="{{ appointment.title }}"></button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
|
Reference in New Issue