2016-04-06 20:34:21 +00:00
|
|
|
<div id='user-edit'>
|
2016-04-08 13:46:31 +00:00
|
|
|
<form class='tabular'>
|
2016-04-09 22:24:14 +00:00
|
|
|
<div class='input'>
|
2016-04-07 20:54:45 +00:00
|
|
|
<ul>
|
|
|
|
{{#if this.canEditName}}
|
|
|
|
<li>
|
2016-04-10 08:23:27 +00:00
|
|
|
{{textInput text='User name' id='user-name' name='name' value=this.user.name}}
|
2016-04-07 20:54:45 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if this.canEditPassword}}
|
|
|
|
<li>
|
2016-04-10 08:23:27 +00:00
|
|
|
{{passwordInput text='Password' id='user-password' name='password' placeholder='leave blank if not changing'}}
|
2016-04-07 20:54:45 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if this.canEditEmail}}
|
|
|
|
<li>
|
2016-04-10 08:23:27 +00:00
|
|
|
{{emailInput text='Email' id='user-email' name='email' value=this.user.email}}
|
2016-04-07 20:54:45 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if this.canEditRank}}
|
|
|
|
<li>
|
2016-04-10 08:23:27 +00:00
|
|
|
{{select text='Rank' id='user-rank' name='rank' keyValues=this.ranks selectedKey=this.user.rank}}
|
2016-04-07 20:54:45 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
|
|
|
<!-- TODO: avatar -->
|
2016-04-09 22:24:14 +00:00
|
|
|
</div>
|
|
|
|
<div class='messages'></div>
|
|
|
|
<div class='buttons'>
|
2016-04-07 20:54:45 +00:00
|
|
|
<input type='submit' value='Save settings'/>
|
2016-04-09 22:24:14 +00:00
|
|
|
</div>
|
2016-04-07 20:54:45 +00:00
|
|
|
</form>
|
2016-04-06 20:34:21 +00:00
|
|
|
</div>
|