{{#if this.canEditName}}
  • {{textInput text='User name' id='user-name' name='name' value=this.user.name pattern=this.userNamePattern}}
  • {{/if}} {{#if this.canEditPassword}}
  • {{passwordInput text='Password' id='user-password' name='password' placeholder='leave blank if not changing' pattern=this.passwordPattern}}
  • {{/if}} {{#if this.canEditEmail}}
  • {{emailInput text='Email' id='user-email' name='email' value=this.user.email}}
  • {{/if}} {{#if this.canEditRank}}
  • {{select text='Rank' id='user-rank' name='rank' keyValues=this.ranks selectedKey=this.user.rank}}
  • {{/if}}
{{#if this.canEditAvatar}}
  • {{radio text='Gravatar' id='gravatar-radio' name='avatar-style' value='gravatar' selectedValue=this.user.avatarStyle}}
  • {{radio text='Manual avatar' id='avatar-radio' name='avatar-style' value='manual' selectedValue=this.user.avatarStyle}}
{{/if}}