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 00:24:14 +02:00
|
|
|
<div class='input'>
|
2016-04-07 22:54:45 +02:00
|
|
|
<ul>
|
|
|
|
{{#if this.canEditName}}
|
|
|
|
<li>
|
|
|
|
<label for='user-name'>User name</label>
|
|
|
|
<input id='user-name' name='name' type='text' value='{{this.user.name}}'/>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if this.canEditPassword}}
|
|
|
|
<li>
|
|
|
|
<label for='user-password'>Password</label>
|
2016-04-08 15:46:31 +02:00
|
|
|
<input id='user-password' name='password' type='password' placeholder='leave blank if not changing'/>
|
2016-04-07 22:54:45 +02:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if this.canEditEmail}}
|
|
|
|
<li>
|
|
|
|
<label for='user-email'>Email</label>
|
|
|
|
<input id='user-email' name='email' type='email' value='{{this.user.email}}'/>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if this.canEditRank}}
|
|
|
|
<li>
|
|
|
|
<label for='user-rank'>Rank</label>
|
|
|
|
<select id='user-rank' name='rank'>
|
|
|
|
{{#each this.ranks}}
|
|
|
|
<option value='{{@key}}'>{{this}}</option>
|
|
|
|
{{/each}}
|
|
|
|
</select>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
|
|
|
<!-- TODO: avatar -->
|
2016-04-10 00:24:14 +02:00
|
|
|
</div>
|
|
|
|
<div class='messages'></div>
|
|
|
|
<div class='buttons'>
|
2016-04-07 22:54:45 +02:00
|
|
|
<input type='submit' value='Save settings'/>
|
2016-04-10 00:24:14 +02:00
|
|
|
</div>
|
2016-04-07 22:54:45 +02:00
|
|
|
</form>
|
2016-04-06 22:34:21 +02:00
|
|
|
</div>
|