|
|
|
@ -8,7 +8,7 @@ |
|
|
|
|
</h4> |
|
|
|
|
<div class="ui attached segment"> |
|
|
|
|
{{if or (.SignedUser.IsLocal) (.SignedUser.IsOAuth2)}} |
|
|
|
|
<form class="ui form" action="{{.Link}}?tp=password" method="post"> |
|
|
|
|
<form class="ui form" action="{{AppSubUrl}}/user/settings/account" method="post"> |
|
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
|
{{if .SignedUser.IsPasswordSet}} |
|
|
|
|
<div class="required field {{if .Err_OldPassword}}error{{end}}"> |
|
|
|
@ -49,13 +49,13 @@ |
|
|
|
|
<div class="item"> |
|
|
|
|
{{if not .IsPrimary}} |
|
|
|
|
<div class="right floated content"> |
|
|
|
|
<button class="ui red tiny button delete-button" id="delete-email" data-url="{{$.Link}}/email/delete" data-id="{{.ID}}"> |
|
|
|
|
<button class="ui red tiny button delete-button" id="delete-email" data-url="{{AppSubUrl}}/user/settings/account/email/delete" data-id="{{.ID}}"> |
|
|
|
|
{{$.i18n.Tr "settings.delete_email"}} |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
{{if .IsActivated}} |
|
|
|
|
<div class="right floated content"> |
|
|
|
|
<form action="{{$.Link}}/email" method="post"> |
|
|
|
|
<form action="{{AppSubUrl}}/user/settings/account/email" method="post"> |
|
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|
|
<input name="_method" type="hidden" value="PRIMARY"> |
|
|
|
|
<input name="id" type="hidden" value="{{.ID}}"> |
|
|
|
@ -73,7 +73,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="ui attached bottom segment"> |
|
|
|
|
<form class="ui form" action="{{.Link}}/email" method="post"> |
|
|
|
|
<form class="ui form" action="{{AppSubUrl}}/user/settings/account/email" method="post"> |
|
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
|
<div class="required field {{if .Err_Email}}error{{end}}"> |
|
|
|
|
<label for="email">{{.i18n.Tr "settings.add_new_email"}}</label> |
|
|
|
@ -92,7 +92,7 @@ |
|
|
|
|
<div class="ui red message"> |
|
|
|
|
<p class="text left"><i class="octicon octicon-alert"></i> {{.i18n.Tr "settings.delete_prompt" | Str2html}}</p> |
|
|
|
|
</div> |
|
|
|
|
<form class="ui form ignore-dirty" id="delete-form" action="{{.Link}}/delete" method="post"> |
|
|
|
|
<form class="ui form ignore-dirty" id="delete-form" action="{{AppSubUrl}}/user/settings/account/delete" method="post"> |
|
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
|
<input class="fake" type="password"> |
|
|
|
|
<div class="required field {{if .Err_Password}}error{{end}}"> |
|
|
|
|