add condition to display modify button

This commit is contained in:
soukainna 2023-02-03 16:12:47 +01:00
parent 79aff42228
commit 759e8f810a
1 changed files with 2 additions and 2 deletions

View File

@ -17,10 +17,10 @@
</div>
{{range .ViewState.event.Owners}}
{{$id := .}}
{{if eq $gr $id}}
<div
class="mt-6 flex flex-col-reverse justify-stretch space-y-4 space-y-reverse sm:flex-row-reverse sm:justify-end sm:space-x-reverse sm:space-y-0 sm:space-x-3 md:mt-0 md:flex-row md:space-x-3">
{{if eq $gr $id}}
<a href="/app/agenda/{{$event}}/update" class="inline-flex"><button type="button"
class="w-full px-4 py-2 border border-transparent text-sm font-medium rounded-2xl shadow-sm text-white bg-co-blue hover:bg-co-blue focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-co-blue">Modifier</button></a>