add template to update and delete event

This commit is contained in:
soukainna
2023-02-01 09:55:18 +01:00
parent 3345eb1560
commit 79aff42228
7 changed files with 372 additions and 4 deletions

View File

@@ -17,8 +17,10 @@
</th>
</tr>
</thead>
{{$groupId := .ViewState.event.ID}}
<tbody class="divide-y divide-gray-200 bg-white">
{{range .ViewState.event.Subscriptions}}
<tr>
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6 text-center">
<a href="/app/beneficiaries/{{.Subscriber}}" class="flex">
@@ -32,10 +34,17 @@
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">
{{(timeFormat .CreatedAt "02/01/2006")}}
</td>
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">
<!-- <a href=""
class="text-co-blue hover:text-co-blue">Voir</a> -->
</td>
<!-- <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">
<a :href="'/app/agenda/delete/{{$groupId}}/{{.Subscriber}}'">
<div class="flex items-center">
<div class="ml-4">
<div class="text-co-blue hover:text-co-blue"><span
>retirer</span> </div>
</div>
</a>
</td> -->
</tr>
{{end}}
</tbody>