summaryrefslogtreecommitdiffstats
path: root/templates/org/member/members.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/org/member/members.tmpl')
-rw-r--r--templates/org/member/members.tmpl10
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl
index 15af60d573..1a65a02278 100644
--- a/templates/org/member/members.tmpl
+++ b/templates/org/member/members.tmpl
@@ -54,9 +54,15 @@
<div class="ui four wide column">
<div class="text right">
{{if eq $.SignedUser.ID .ID}}
- <a class="ui red small button" href="{{$.OrgLink}}/members/action/leave?uid={{.ID}}">{{$.i18n.Tr "org.members.leave"}}</a>
+ <form method="post" action="{{$.OrgLink}}/members/action/leave">
+ {{$.CsrfTokenHtml}}
+ <button type="submit" class="ui red small button" name="uid" value="{{.ID}}">{{$.i18n.Tr "org.members.leave"}}</button>
+ </form>
{{else if $.IsOrganizationOwner}}
- <a class="ui red small button" href="{{$.OrgLink}}/members/action/remove?uid={{.ID}}">{{$.i18n.Tr "org.members.remove"}}</a>
+ <form method="post" action="{{$.OrgLink}}/members/action/remove">
+ {{$.CsrfTokenHtml}}
+ <button type="submit" class="ui red small button" name="uid" value="{{.ID}}">{{$.i18n.Tr "org.members.remove"}}</button>
+ </form>
{{end}}
</div>
</div>