diff options
Diffstat (limited to 'templates/org/team/teams.tmpl')
-rw-r--r-- | templates/org/team/teams.tmpl | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/templates/org/team/teams.tmpl b/templates/org/team/teams.tmpl index 4e877bef2a..6f4f155072 100644 --- a/templates/org/team/teams.tmpl +++ b/templates/org/team/teams.tmpl @@ -17,9 +17,10 @@ <a class="text black" href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong>{{.Name}}</strong></a> <div class="ui right"> {{if .IsMember $.SignedUser.ID}} - <form method="post" action="{{$.OrgLink}}/teams/{{.LowerName}}/action/leave"> - {{$.CsrfTokenHtml}} - <button type="submit" class="ui red small button" name="uid" value="{{$.SignedUser.ID}}">{{$.i18n.Tr "org.teams.leave"}}</button> + <form> + <button class="ui red tiny button delete-button" data-modal-id="leave-team" + data-url="{{$.OrgLink}}/teams/{{.LowerName}}/action/leave" data-datauid="{{$.SignedUser.ID}}" + data-name="{{.Name}}">{{$.i18n.Tr "org.teams.leave"}}</button> </form> {{else if $.IsOrganizationOwner}} <form method="post" action="{{$.OrgLink}}/teams/{{.LowerName}}/action/join"> @@ -44,4 +45,14 @@ </div> </div> </div> +<div class="ui small basic delete modal" id="leave-team"> + <div class="ui icon header"> + {{svg "octicon-x" 16 "close inside"}} + {{$.i18n.Tr "org.teams.leave"}} + </div> + <div class="content"> + <p>{{$.i18n.Tr "org.teams.leave.detail" `<span class="name"></span>` | Safe}}</p> + </div> + {{template "base/delete_modal_actions" .}} +</div> {{template "base/footer" .}} |