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