szurubooru/client/html/user_edit.hbs
rr- 58e0d2e295 client/views: replace fieldsets with divs
Although it has nice semantic name, fieldset gives troubles to flexbox,
so I'm dropping it.
2016-04-10 00:24:54 +02:00

44 lines
1.6 KiB
Handlebars

<div id='user-edit'>
<form class='tabular'>
<div class='input'>
<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>
<input id='user-password' name='password' type='password' placeholder='leave blank if not changing'/>
</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 -->
</div>
<div class='messages'></div>
<div class='buttons'>
<input type='submit' value='Save settings'/>
</div>
</form>
</div>