Projet

Général

Profil

« Précédent | Suivant » 

Révision efc6c4b8

Ajouté par Frédéric Péters il y a presque 10 ans

add a "next appointment" column in waiting list view (#3238)

Voir les différences:

calebasse/dossiers/models.py
735 735
        except:
736 736
            return None
737 737

  
738
    def get_next_rdv(self):
739
        from views_utils import get_next_rdv
740
        return get_next_rdv(self)
741

  
738 742
    # START Specific to sessad healthcare
739 743
    def get_last_notification(self):
740 744
        return SessadHealthCareNotification.objects.filter(patient=self, ).\
calebasse/dossiers/templates/dossiers/waiting_queue.html
38 38
        <th rowspan="2">Prénom</th>
39 39
        <th rowspan="2">Position</th>
40 40
        <th rowspan="2">Date d'accueil</th>
41
        <th rowspan="2">Prochain rendez-vous</th>
41 42
        <th rowspan="2">Commentaire</th>
42 43
      </tr>
43 44
      <tr>
......
55 56
          <td>{{ patient_record.object.first_name }}</td>
56 57
          <td>{{ patient_record.position }}</td>
57 58
          <td>{{ patient_record.object.last_state.date_selected|date:"SHORT_DATE_FORMAT" }}</td>
59
          <td>{{ patient_record.object.get_next_rdv.start_datetime|date:"SHORT_DATE_FORMAT" }}</td>
58 60
          <td>{{ patient_record.object.last_state.comment|default_if_none:"" }}</td>
59 61
      </tr>
60 62
      {% endfor %}

Formats disponibles : Unified diff