diff --git a/smash/web/templates/appointments/index.html b/smash/web/templates/appointments/index.html index 4d6116dac7f1312975587a4cf88d8f0019ce18bc..6883d66f1333852f278a03fc2152702e311f151a 100644 --- a/smash/web/templates/appointments/index.html +++ b/smash/web/templates/appointments/index.html @@ -66,10 +66,9 @@ <table id="approaching_table" class="table table-bordered table-striped"> <thead> <tr> - <th>Subject name</th> - <th>Full information</th> + <th>Subject</th> + <th>Type</th> <th>Date</th> - <th>Time</th> <th>Details</th> </tr> </thead> @@ -78,13 +77,18 @@ {% for approach in approaching_list %} <tr> <td> - {{ approach.visit.subject.first_name }} {{ approach.visit.subject.last_name }} + {% if approach.visit.subject.screening_number == "---" %} + N/A + {% else %} + {{ approach.visit.subject.first_name }} {{ approach.visit.subject.last_name }} + {% endif %} </td> - <td> - <a href="{% url 'web.views.subject_details' approach.visit.subject.id %}" type="button" class="btn btn-block btn-default">Subject's details</a> - </td> - <td>{{ approach.datetime_when | date:"d-M-Y" }}</td> - <td>{{ approach.datetime_when | time:"H:i" }}</td> + <td> + {% for type in approach.appointment_types.all %} + {{ type.code }}, + {% endfor %} + </td> + <td>{{ approach.datetime_when | date:"d-M-Y H:i" }}</td> <td> <a href="{% url 'web.views.appointment_details' approach.id %}" type="button" class="btn btn-block btn-default">Details</a> </td>