add url to redirect form action
This commit is contained in:
parent
7959a34b26
commit
2ddf2e6673
|
@ -92,6 +92,9 @@ views:
|
||||||
files:
|
files:
|
||||||
- web/layouts/_partials/address_autocomplete.html
|
- web/layouts/_partials/address_autocomplete.html
|
||||||
- web/layouts/agenda/create-event.html
|
- web/layouts/agenda/create-event.html
|
||||||
|
delete_subscriber:
|
||||||
|
files:
|
||||||
|
- web/layouts/agenda/delete-subscriber.html
|
||||||
directory:
|
directory:
|
||||||
home:
|
home:
|
||||||
files:
|
files:
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
{{$evid := .ViewState.event.ID}}
|
||||||
<tbody class="divide-y divide-gray-200 bg-white">
|
<tbody class="divide-y divide-gray-200 bg-white">
|
||||||
{{range .ViewState.event.Subscriptions}}
|
{{range .ViewState.event.Subscriptions}}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6 text-center">
|
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6 text-center">
|
||||||
<a href="/app/beneficiaries/{{.Subscriber}}" class="flex">
|
<a href="/app/beneficiaries/{{.Subscriber}}" class="flex">
|
||||||
|
@ -40,8 +40,10 @@
|
||||||
|
|
||||||
<!-- ajout du bouton supprimer -->
|
<!-- ajout du bouton supprimer -->
|
||||||
<td>
|
<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>
|
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>
|
</td>
|
||||||
<!-- fin -->
|
<!-- fin -->
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{{ define "content" }}
|
||||||
|
<h1>hello</h1>
|
||||||
|
{{end}}
|
Loading…
Reference in New Issue