add url to redirect form action
This commit is contained in:
@@ -17,9 +17,9 @@
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{{$evid := .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">
|
||||
@@ -40,8 +40,10 @@
|
||||
|
||||
<!-- ajout du bouton supprimer -->
|
||||
<td>
|
||||
<button action="" method="" @submit="submit"type="submit"
|
||||
<form class="mt-4" action="/app/agenda/{{$evid}}/{{.Subscriber}}/delete" method="POST" @submit="submit">
|
||||
<button type="submit"
|
||||
class="rounded-2xl border border-transparent bg-co-blue px-4 py-2 w-full text-sm font-medium text-white shadow-sm focus:outline-none focus:ring-2 focus:ring-co-blue focus:ring-offset-2 sm:w-auto">Supprimer le bénéficiaire</button>
|
||||
</form>
|
||||
</td>
|
||||
<!-- fin -->
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user