Projet

Général

Profil

« Précédent | Suivant » 

Révision 3cfe29c8

Ajouté par Serghei Mihai il y a presque 10 ans

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

Closes #4174

Voir les différences:

calebasse/agenda/templates/agenda/ajax-ressource-tab.html
58 58
      {% endfor %}
59 59
    </p>
60 60
    {% endif %}
61
    <div class="tabs-ressource-{{ ressource_agenda.ressource.id }} textedit">
62
      <span></span>
63
      <textarea>{{ appointment.description }}</textarea>
64
      <button disabled="disabled" data-event-id="{{ appointment.event_id }}" data-date="{{ date|date:"Y-m-d" }}">✔</button>
65
    </div>
61
      {% if service in appointment.services_names %}
62
        <div class="tabs-ressource-{{ ressource_agenda.ressource.id }} textedit">
63
          <span></span>
64
          <textarea>{{ appointment.description }}</textarea>
65
          <button disabled="disabled" data-event-id="{{ appointment.event_id }}" data-date="{{ date|date:"Y-m-d" }}">✔</button>
66
        </div>
67
      {% else %}
68
        <p>{{ appointment.description }}</p>
69
      {% endif %}
66 70
    {% endif %}
67 71
    {% if appointment.patient_record_id %}
68 72
    <p class="phones">

Formats disponibles : Unified diff