URL

/app/account
/app/invite

Screenshot

1903

Structure

account.html.liquid
├── _account_tabs.html.liquid
├── _header.html.liquid
├── _account_desktop_view.html.liquid
│   ├── _account_avatar.html.liquid
│   └── _account_form.html.liquid
├── _account_mobile_view.html.liquid
│   ├── _account_avatar.html.liquid
│   └── _account_form.html.liquid
└── _footer.html.liquid

Template Considerations

This page & template is available only when the school uses the preregistration authentication strategy.

Form

The Account page uses an HTML form to submit the learner's attributes. Please make sure you're not overwriting its internals:

  • the action and method attributes on the <form> HTML tag
  • the form_authenticity_token Liquid tag inside the <form> HTML tag
  • the name attribute on the <input> HTML tags

Additionally, a form object is exposed, which handles the form's options and state. The form object has the following attributes:

nametype
optionsobject with the following attributes:
- invite? (boolean)
- action (string)
- http_method (string)
errorsarray
emailstring
first_namestring
last_namestring
display_namestring
invite_tokenstring
gravatar_urlstring
secure_custom_avatar_urlstring
use_gravatarboolean