Projet

Général

Profil

« Précédent | Suivant » 

Révision a142f551

Ajouté par Serghei Mihai il y a presque 10 ans

agenda: edit icon hidden for an event/schedule if it is not related to the current service

Closes #4174

Voir les différences:

calebasse/agenda/templates/agenda/ajax-ressource-tab.html
32 32
      <span title="Un commentaire existe" class="icon-comment" {% if appointment.description %}style='display: inline'{% endif %}></span>
33 33
      {% if appointment.event_id %}
34 34
      {% if appointment.is_recurrent %} R {% endif %}
35
      {% if appointment.patient_record_id %}
36
      <button title="Éditer un rendez-vous" class="edit-appointment icon-edit" data-event-id="{{ appointment.event_id }}"></button>
37
      {% else %}
38
      <button title="Éditer un événement" class="edit-event icon-edit" data-event-id="{{ appointment.event_id }}">
35
      {% if service in appointment.services_names %}
36
        {% if appointment.patient_record_id %}
37
           <button title="Éditer un rendez-vous" class="edit-appointment icon-edit" data-event-id="{{ appointment.event_id }}"></button>
38
        {% else %}
39
           <button title="Éditer un événement" class="edit-event icon-edit" data-event-id="{{ appointment.event_id }}">
39 40
        {% endif %}
40
        <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>
41
           <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>
41 42
        {% endif %}
43
     {% endif %}
42 44
    </span>
43 45
  </h3>
44 46

  

Formats disponibles : Unified diff