add url to redirect form action
This commit is contained in:
parent
7959a34b26
commit
2ddf2e6673
|
@ -92,6 +92,9 @@ views:
|
|||
files:
|
||||
- web/layouts/_partials/address_autocomplete.html
|
||||
- web/layouts/agenda/create-event.html
|
||||
delete_subscriber:
|
||||
files:
|
||||
- web/layouts/agenda/delete-subscriber.html
|
||||
directory:
|
||||
home:
|
||||
files:
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{{ define "content" }}
|
||||
<h1>hello</h1>
|
||||
{{end}}
|
Loading…
Reference in New Issue