UserProfileForm

Domain

Controlled form for editing display name, username, bio, and profile picture URL. Username validation: 3–32 chars, lowercase alphanumeric + underscore.

Default

Preview

Lowercase letters, numbers and underscores. 3–32 characters.

Code
<%- include('modules/domain/common/user/UserProfileForm', {
  action: '/account/profile',
  initial: {
    name:     user.name,
    username: user.username,
    biography: user.biography,
    profilePicture: user.profilePicture
  }
}) %>

Pre-filled

Preview

Lowercase letters, numbers and underscores. 3–32 characters.

Cancel
Code
<%- include('modules/domain/common/user/UserProfileForm', {
  action: '/account/profile',
  cancelHref: '/account',
  initial: { name: 'Alice Johnson', username: 'alicejohnson', ... }
}) %>
Source modules/domain/common/user/UserProfileForm.ejs