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/user/settings | |
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/user/settings')
-rw-r--r-- | templates/user/settings/organization.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/user/settings/organization.tmpl b/templates/user/settings/organization.tmpl index e746400a8f..00b73f94d9 100644 --- a/templates/user/settings/organization.tmpl +++ b/templates/user/settings/organization.tmpl @@ -17,7 +17,10 @@ {{range .Orgs}} <div class="item"> <div class="right floated content"> - <a class="ui blue small button" href="{{AppSubUrl}}/org/{{.Name}}/members/action/leave?uid={{.ID}}">{{$.i18n.Tr "org.members.leave"}}</a> + <form method="post" action="{{AppSubUrl}}/org/{{.Name}}/members/action/leave"> + {{$.CsrfTokenHtml}} + <button type="submit" class="ui blue small button" name="uid" value="{{.ID}}">{{$.i18n.Tr "org.members.leave"}}</button> + </form> </div> <img class="ui mini image" src="{{.RelAvatarLink}}"> <div class="content"> |