2016-04-06 22:34:21 +02:00
|
|
|
<div id='user-edit'>
|
2016-04-08 15:46:31 +02:00
|
|
|
<form class='tabular'>
|
2016-04-10 15:55:56 +02:00
|
|
|
<div class='left'>
|
|
|
|
<div class='input'>
|
|
|
|
<ul>
|
|
|
|
{{#if this.canEditName}}
|
|
|
|
<li>
|
2016-04-12 13:48:31 +02:00
|
|
|
{{textInput text='User name' id='user-name' name='name' value=this.user.name pattern=this.userNamePattern}}
|
2016-04-10 15:55:56 +02:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
2016-04-07 22:54:45 +02:00
|
|
|
|
2016-04-10 15:55:56 +02:00
|
|
|
{{#if this.canEditPassword}}
|
|
|
|
<li>
|
2016-04-12 13:48:31 +02:00
|
|
|
{{passwordInput text='Password' id='user-password' name='password' placeholder='leave blank if not changing' pattern=this.passwordPattern}}
|
2016-04-10 15:55:56 +02:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if this.canEditEmail}}
|
|
|
|
<li>
|
|
|
|
{{emailInput text='Email' id='user-email' name='email' value=this.user.email}}
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
2016-04-07 22:54:45 +02:00
|
|
|
|
2016-04-10 15:55:56 +02:00
|
|
|
{{#if this.canEditRank}}
|
|
|
|
<li>
|
|
|
|
{{select text='Rank' id='user-rank' name='rank' keyValues=this.ranks selectedKey=this.user.rank}}
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class='messages'></div>
|
|
|
|
<div class='buttons'>
|
|
|
|
<input type='submit' value='Save settings'/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#if this.canEditAvatar}}
|
|
|
|
<div class='right'>
|
|
|
|
<ul>
|
2016-04-07 22:54:45 +02:00
|
|
|
<li>
|
2016-04-10 15:55:56 +02:00
|
|
|
{{radio text='Gravatar' id='gravatar-radio' name='avatar-style' value='gravatar' selectedValue=this.user.avatarStyle}}
|
2016-04-07 22:54:45 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2016-04-10 15:55:56 +02:00
|
|
|
{{radio text='Manual avatar' id='avatar-radio' name='avatar-style' value='manual' selectedValue=this.user.avatarStyle}}
|
|
|
|
<div id='avatar-content'></div>
|
2016-04-07 22:54:45 +02:00
|
|
|
</li>
|
2016-04-10 15:55:56 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2016-04-07 22:54:45 +02:00
|
|
|
</form>
|
2016-04-06 22:34:21 +02:00
|
|
|
</div>
|