Skip to content
Snippets Groups Projects
Commit 8bb83317 authored by Eric van der Toorn's avatar Eric van der Toorn
Browse files

add add and edit buttons to patient list

parent 419ac892
1 merge request!18Thyme patients #17
......@@ -12,17 +12,22 @@
<td>Name</td>
<td>Token</td>
<td>Area</td>
<td>Edit</td>
</tr>
</thead>
<tbody>
<tr th:if="${patients.empty}">
<tr th:if="${patients?.empty}">
<td colspan="4">No patients</td>
</tr>
<tr th:each="patient : ${patients}">
<td th:text="${patient.patientId}">1</td>
<td><a href="edit.html" th:href="@{'/edit/' + ${patient.patientId}}" th:text="${patient.name}">Name .. </a></td>
<td th:text="${patient.name?.firstName}">Name .. </td>
<td th:text="${patient.token}">Token ...</td>
<td th:text="${patient.area}">Area...</td>
<td th:text="${patient.area?.name}">Area...</td>
<td><a class="btn btn-secondary fa fa-edit" th:href="@{'/patient/edit/' + ${patient.id}}"></a></td>
</tr>
<tr>
<td><a class="btn btn-secondary fa fa-plus" th:href="@{'/patient/add'}"></a> </td>
</tr>
</tbody>
</table>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment