2014-07-26 00:24:27 -04: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="setting-content">
|
|
|
|
<div id="user-profile-setting-content" class="panel panel-radius">
|
2014-08-09 13:29:51 -04:00
|
|
|
<div class="panel-header">
|
|
|
|
<strong>{{.i18n.Tr "settings.public_profile"}}</strong>
|
|
|
|
</div>
|
2014-09-19 20:11:34 -04:00
|
|
|
<form class="form form-align panel-body" id="user-profile-form" action="{{AppSubUrl}}/user/settings" method="post">
|
2014-07-26 00:24:27 -04:00
|
|
|
{{.CsrfTokenHtml}}
|
2014-08-09 13:29:51 -04:00
|
|
|
<div class="text-center panel-desc">{{.i18n.Tr "settings.profile_desc"}}</div>
|
2014-09-13 22:12:11 -04:00
|
|
|
<div class="field">
|
|
|
|
<label>{{.i18n.Tr "settings.uid"}}</label>
|
|
|
|
<label class="text-left">{{.SignedUser.Id}}</label>
|
|
|
|
</div>
|
2014-08-09 13:29:51 -04:00
|
|
|
<div class="field">
|
2014-07-26 00:24:27 -04:00
|
|
|
<label class="req" for="username">{{.i18n.Tr "username"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="username" name="uname" type="text" value="{{.SignedUser.Name}}" data-uname="{{.SignedUser.Name}}" required />
|
2014-08-09 13:29:51 -04:00
|
|
|
</div>
|
2014-09-26 22:33:30 -04:00
|
|
|
<div class="white-popup-block mfp-hide" id="change-username-modal">
|
|
|
|
<h1 class="text-red">{{.i18n.Tr "settings.change_username"}}</h1>
|
|
|
|
<p>{{.i18n.Tr "settings.change_username_desc"}}</p>
|
|
|
|
<br>
|
2014-09-28 01:38:25 -04:00
|
|
|
<button class="btn btn-red btn-large btn-radius" id="change-username-submit">{{.i18n.Tr "settings.continue"}}</button>
|
2014-09-26 22:33:30 -04:00
|
|
|
<button class="btn btn-large btn-radius popup-modal-dismiss">{{.i18n.Tr "settings.cancel"}}</button>
|
|
|
|
</div>
|
2014-08-09 13:29:51 -04:00
|
|
|
<div class="field">
|
2014-07-26 00:24:27 -04:00
|
|
|
<label for="full-name">{{.i18n.Tr "settings.full_name"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_FullName}}ipt-error{{end}}" id="full-name" name="fullname" type="text" value="{{.SignedUser.FullName}}" />
|
2014-08-09 13:29:51 -04:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2014-07-26 00:24:27 -04:00
|
|
|
<label class="req" for="email">{{.i18n.Tr "email"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.SignedUser.Email}}" required />
|
2014-08-09 13:29:51 -04:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2014-07-26 00:24:27 -04:00
|
|
|
<label for="website">{{.i18n.Tr "settings.website"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_Website}}ipt-error{{end}}" id="website" name="website" type="url" value="{{.SignedUser.Website}}" />
|
2014-08-09 13:29:51 -04:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2014-07-26 00:24:27 -04:00
|
|
|
<label for="location">{{.i18n.Tr "settings.location"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_Location}}ipt-error{{end}}" id="location" name="location" type="text" value="{{.SignedUser.Location}}" />
|
2014-08-09 13:29:51 -04:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2014-07-26 00:24:27 -04:00
|
|
|
<label for="gravatar-email">Gravatar {{.i18n.Tr "email"}}</label>
|
|
|
|
<input class="ipt ipt-large ipt-radius {{if .Err_Avatar}}ipt-error{{end}}" id="gravatar-email" name="avatar" type="text" value="{{.SignedUser.AvatarEmail}}" />
|
2014-08-09 13:29:51 -04:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2014-08-29 03:32:52 -04:00
|
|
|
<label></label>
|
2014-09-28 01:38:25 -04:00
|
|
|
<button class="btn btn-green btn-large btn-radius" id="change-username-btn" href="#change-username-modal">{{.i18n.Tr "settings.update_profile"}}</button>
|
2014-08-09 13:29:51 -04:00
|
|
|
</div>
|
2014-07-26 00:24:27 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "ng/base/footer" .}}
|