description = "User account configuration"
display_mode = "complete"
name = "user_item"

[[elements]]
help = "Unique username (alphanumeric and underscores)"
name = "username"
order = 1
placeholder = "john_doe"
prompt = "Username"
required = true
type = "text"

[[elements]]
help = "User email address"
name = "email"
order = 2
placeholder = "user@example.com"
prompt = "Email Address"
required = true
type = "text"

[[elements]]
default = "user"
name = "role"
options = [
  { value = "admin", label = "Admin (full access)" },
  { value = "moderator", label = "Moderator (moderation only)" },
  { value = "user", label = "User (basic access)" },
]
order = 3
prompt = "User Role"
required = true
type = "select"

[[elements]]
default = true
help = "Enable or disable user account"
name = "active"
order = 4
prompt = "Active"
type = "confirm"
