diff options
author | John Olheiser <john.olheiser@gmail.com> | 2020-02-27 16:00:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 16:00:13 -0600 |
commit | 15fbf509d3475cef3f8a7e994b59e4d78fd1c508 (patch) | |
tree | 86b8f7bca92f3d6d235b07e0962fe6443711398d /templates/org/member | |
parent | 90919bb37e2bcc62440e393439825fe0e1e1f343 (diff) | |
download | gitea-15fbf509d3475cef3f8a7e994b59e4d78fd1c508.tar.gz gitea-15fbf509d3475cef3f8a7e994b59e4d78fd1c508.zip |
Org action fixes and form cleanup (#10512)
* More org fixes
* Move form action query to inputs
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'templates/org/member')
-rw-r--r-- | templates/org/member/members.tmpl | 10 |
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> |