edit delete button for different organization

This commit is contained in:
Nicolas CARON 2023-02-17 11:45:58 +01:00
parent 46f1d44b11
commit 1189fef6c0
1 changed files with 13 additions and 7 deletions

View File

@ -153,13 +153,19 @@
{{$evid := .ViewState.event.ID}} {{$evid := .ViewState.event.ID}}
{{range .ViewState.event.Subscriptions}} {{range .ViewState.event.Subscriptions}}
{{if eq $.Group.ID .Data.subscribed_by.group.id}} {{if eq $.Group.ID .Data.subscribed_by.group.id}}
<div class="flex justify-between border">
<div>
<a href="/app/beneficiaries/{{.Subscriber}}"> <a href="/app/beneficiaries/{{.Subscriber}}">
<li class="inline-flex text-sm p-2"><img class="h-6 w-6 rounded-co mr-2" src="/app/beneficiaries/{{.Subscriber}}/picture"> {{ (index $.ViewState.subscribers .Subscriber).Data.first_name }} {{ (index $.ViewState.subscribers .Subscriber).Data.last_name }} <li class="inline-flex text-sm p-2"><img class="h-6 w-6 rounded-co mr-2" src="/app/beneficiaries/{{.Subscriber}}/picture"> {{ (index $.ViewState.subscribers .Subscriber).Data.first_name }} {{ (index $.ViewState.subscribers .Subscriber).Data.last_name }}
</a> </a>
</div>
<div class="flex items-center">
<a href="/app/agenda/{{$evid}}/{{.Subscriber}}/delete" class="inline-flex"> <a href="/app/agenda/{{$evid}}/{{.Subscriber}}/delete" class="inline-flex">
<button type="button" class="w-full ml-2 px-2 border border-transparent text-sm font-medium rounded-2xl shadow-sm text-white bg-co-red hover:bg-co-red focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-co-red">x</button></a> <button type="button" class="w-full mr-2 px-2 border border-transparent text-sm font-medium rounded-2xl shadow-sm text-white bg-co-red hover:bg-co-red focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-co-red">Retirer</button></a>
<a href="/app/agenda/{{$evid}}/{{.Subscriber}}/delete" class="inline-flex font-bold text-co-red">x</a> <!-- <a href="/app/agenda/{{$evid}}/{{.Subscriber}}/delete" class="inline-flex font-bold text-co-red">x</a> -->
</li> </li>
</div>
</div>
{{end}} {{end}}
{{end}} {{end}}
</ul> </ul>