2016-04-06 22:34:21 +02:00
|
|
|
<div id='user-edit'>
|
2016-07-29 12:38:36 +02:00
|
|
|
<form>
|
2016-08-22 21:43:59 +02:00
|
|
|
<input class='anticomplete' type='text' name='fakeuser'/>
|
|
|
|
<input class='anticomplete' type='password' name='fakepass'/>
|
|
|
|
|
2016-08-05 20:09:11 +02:00
|
|
|
<ul class='input'>
|
2016-07-29 12:38:36 +02:00
|
|
|
<% if (ctx.canEditName) { %>
|
|
|
|
<li>
|
2016-08-05 20:09:11 +02:00
|
|
|
<%= ctx.makeTextInput({
|
|
|
|
text: 'User name',
|
|
|
|
name: 'name',
|
|
|
|
value: ctx.user.name,
|
|
|
|
pattern: ctx.userNamePattern,
|
|
|
|
}) %>
|
2016-07-29 12:38:36 +02:00
|
|
|
</li>
|
|
|
|
<% } %>
|
2016-04-07 22:54:45 +02:00
|
|
|
|
2016-07-29 12:38:36 +02:00
|
|
|
<% if (ctx.canEditPassword) { %>
|
|
|
|
<li>
|
2016-08-05 20:09:11 +02:00
|
|
|
<%= ctx.makePasswordInput({
|
|
|
|
text: 'Password',
|
|
|
|
name: 'password',
|
|
|
|
placeholder: 'leave blank if not changing',
|
|
|
|
pattern: ctx.passwordPattern,
|
|
|
|
}) %>
|
2016-07-29 12:38:36 +02:00
|
|
|
</li>
|
|
|
|
<% } %>
|
2016-04-10 15:55:56 +02:00
|
|
|
|
2016-07-29 12:38:36 +02:00
|
|
|
<% if (ctx.canEditEmail) { %>
|
|
|
|
<li>
|
2016-08-05 20:09:11 +02:00
|
|
|
<%= ctx.makeEmailInput({
|
|
|
|
text: 'Email',
|
|
|
|
name: 'email',
|
|
|
|
value: ctx.user.email,
|
|
|
|
}) %>
|
2016-07-29 12:38:36 +02:00
|
|
|
</li>
|
|
|
|
<% } %>
|
2016-04-07 22:54:45 +02:00
|
|
|
|
2016-07-29 12:38:36 +02:00
|
|
|
<% if (ctx.canEditRank) { %>
|
|
|
|
<li>
|
2016-08-05 20:09:11 +02:00
|
|
|
<%= ctx.makeSelect({
|
|
|
|
text: 'Rank',
|
|
|
|
name: 'rank',
|
|
|
|
keyValues: ctx.ranks,
|
|
|
|
selectedKey: ctx.user.rank,
|
|
|
|
}) %>
|
2016-07-29 12:38:36 +02:00
|
|
|
</li>
|
|
|
|
<% } %>
|
2016-04-10 15:55:56 +02:00
|
|
|
|
2016-07-29 12:38:36 +02:00
|
|
|
<% if (ctx.canEditAvatar) { %>
|
|
|
|
<li class='avatar'>
|
|
|
|
<label>Avatar</label>
|
|
|
|
<div id='avatar-content'></div>
|
|
|
|
<div id='avatar-radio'>
|
2016-08-05 20:09:11 +02:00
|
|
|
<%= ctx.makeRadio({
|
|
|
|
text: 'Gravatar',
|
|
|
|
name: 'avatar-style',
|
|
|
|
value: 'gravatar',
|
|
|
|
selectedValue: ctx.user.avatarStyle,
|
|
|
|
}) %>
|
|
|
|
|
|
|
|
<%= ctx.makeRadio({
|
|
|
|
text: 'Manual avatar',
|
|
|
|
name: 'avatar-style',
|
|
|
|
value: 'manual',
|
|
|
|
selectedValue: ctx.user.avatarStyle,
|
|
|
|
}) %>
|
2016-07-29 12:38:36 +02:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class='messages'></div>
|
|
|
|
|
|
|
|
<div class='buttons'>
|
|
|
|
<input type='submit' value='Save settings'/>
|
|
|
|
</div>
|
2016-04-07 22:54:45 +02:00
|
|
|
</form>
|
2016-04-06 22:34:21 +02:00
|
|
|
</div>
|