mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 17:18:25 -04:00
Converts them directly in the following forms: - LoginForm - ConfirmPasswordForm Changes the password function to return GovukPasswordField instead of PasswordField which effects the following forms: - RegisterUserForm - RegisterUserFromInviteForm - RegisterUserFromOrgInviteForm - NewPasswordForm - ChangePasswordForm It also updates StringField on RegisterUserFromOrgInviteForm to GovukTextInputField Also includes changes to templates that use this form and associated tests.
30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
{% extends "withoutnav_template.html" %}
|
||
{% from "components/textbox.html" import textbox %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
{% from "components/form.html" import form_wrapper %}
|
||
|
||
{% block per_page_title %}
|
||
Create an account
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<div class="govuk-grid-row">
|
||
<div class="govuk-grid-column-two-thirds">
|
||
<h1 class="heading-large">Create an account</h1>
|
||
{% call form_wrapper(autocomplete=True) %}
|
||
{{ textbox(form.name, width='3-4') }}
|
||
{{ textbox(form.email_address, hint="Must be from a public sector organisation", width='3-4', safe_error_message=True, autocomplete='email') }}
|
||
<div class="extra-tracking">
|
||
{{ textbox(form.mobile_number, width='3-4', hint='We’ll send you a security code by text message') }}
|
||
</div>
|
||
<input class="govuk-visually-hidden" aria-hidden="true" tabindex="-1" id="defeat-chrome-autocomplete">
|
||
{{ form.password(param_extensions={"hint": {"text": "At least 8 characters"}, "classes": "govuk-!-width-three-quarters", "autocomplete": "new-password"}) }}
|
||
{{form.auth_type}}
|
||
{{ page_footer("Continue") }}
|
||
{% endcall %}
|
||
</div>
|
||
</div>
|
||
|
||
{% endblock %}
|