<% if (canEditName) { %>
  • <%= makeTextInput({text: 'User name', id: 'user-name', name: 'name', value: user.name, pattern: userNamePattern}) %>
  • <% } %> <% if (canEditPassword) { %>
  • <%= makePasswordInput({text: 'Password', id: 'user-password', name: 'password', placeholder: 'leave blank if not changing', pattern: passwordPattern}) %>
  • <% } %> <% if (canEditEmail) { %>
  • <%= makeEmailInput({text: 'Email', id: 'user-email', name: 'email', value: user.email}) %>
  • <% } %> <% if (canEditRank) { %>
  • <%= makeSelect({text: 'Rank', id: 'user-rank', name: 'rank', keyValues: ranks, selectedKey: user.rank}) %>
  • <% } %>
<% if (canEditAvatar) { %>
  • <%= makeRadio({text: 'Gravatar', id: 'gravatar-radio', name: 'avatar-style', value: 'gravatar', selectedValue: user.avatarStyle}) %>
  • <%= makeRadio({text: 'Manual avatar', id: 'avatar-radio', name: 'avatar-style', value: 'manual', selectedValue: user.avatarStyle}) %>
<% } %>