2014-12-17 18:42:54 +03:00
|
|
|
{{template "ng/base/head" .}}
|
|
|
|
{{template "ng/base/header" .}}
|
|
|
|
<div id="setting-wrapper" class="main-wrapper">
|
|
|
|
<div id="user-profile-setting" class="container clear">
|
|
|
|
{{template "user/settings/nav" .}}
|
|
|
|
<div class="grid-4-5 left">
|
|
|
|
<div class="setting-content">
|
|
|
|
{{template "ng/base/alert" .}}
|
|
|
|
<div id="user-email-setting-content">
|
|
|
|
<div id="user-email-panel" class="panel panel-radius">
|
|
|
|
<div class="panel-header">
|
|
|
|
<strong>{{.i18n.Tr "settings.manage_emails"}}</strong>
|
|
|
|
</div>
|
|
|
|
<ul class="panel-body setting-list">
|
|
|
|
<li>{{.i18n.Tr "settings.email_desc"}}</li>
|
|
|
|
{{range .Emails}}
|
|
|
|
<li class="email clear">
|
|
|
|
<div class="email-content left">
|
2015-02-22 06:13:47 +03:00
|
|
|
<p><strong>{{.Email}}</strong> {{if .IsPrimary}} <span class="text-red">{{$.i18n.Tr "settings.primary"}}</span> {{end}}</p>
|
2014-12-17 18:42:54 +03:00
|
|
|
</div>
|
|
|
|
{{if not .IsPrimary}}
|
|
|
|
{{if .IsActivated}}
|
|
|
|
<form action="{{AppSubUrl}}/user/settings/email" method="post">
|
|
|
|
{{$.CsrfTokenHtml}}
|
|
|
|
<input name="_method" type="hidden" value="PRIMARY">
|
|
|
|
<input name="id" type="hidden" value="{{.Id}}">
|
2015-02-22 06:13:47 +03:00
|
|
|
<button class="right email-btn btn btn-small btn-green btn-radius">{{$.i18n.Tr "settings.primary_email"}}</button>
|
2014-12-17 18:42:54 +03:00
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
<form action="{{AppSubUrl}}/user/settings/email" method="post">
|
|
|
|
{{$.CsrfTokenHtml}}
|
|
|
|
<input name="_method" type="hidden" value="DELETE">
|
|
|
|
<input name="id" type="hidden" value="{{.Id}}">
|
2015-02-22 06:13:47 +03:00
|
|
|
<button class="right email-btn btn btn-small btn-red btn-radius" style="margin-right: 5px">{{$.i18n.Tr "settings.delete_email"}}</button>
|
2014-12-17 18:42:54 +03:00
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2015-02-03 10:32:55 +03:00
|
|
|
</ul>
|
|
|
|
<div class="panel-header">
|
|
|
|
<strong>{{.i18n.Tr "settings.add_new_email"}}</strong>
|
|
|
|
</div>
|
|
|
|
<form class="form form-align panel-body" id="add-email-form" action="{{AppSubUrl}}/user/settings/email" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<p class="field">
|
2014-12-22 10:11:30 +03:00
|
|
|
<label class="req" for="email">{{.i18n.Tr "email"}}</label>
|
2015-02-03 10:32:55 +03:00
|
|
|
<input class="ipt ipt-large ipt-radius" id="email" name="email" type="text" required />
|
2014-12-17 18:42:54 +03:00
|
|
|
</p>
|
|
|
|
<p class="field">
|
|
|
|
<label></label>
|
2015-02-03 14:54:29 +03:00
|
|
|
<button class="btn btn-green btn-large btn-radius" id="email-add-btn">{{.i18n.Tr "settings.add_email"}}</button>
|
2014-12-17 18:42:54 +03:00
|
|
|
</p>
|
2015-02-03 10:32:55 +03:00
|
|
|
</form>
|
2014-12-17 18:42:54 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "ng/base/footer" .}}
|