Integrate postnumber resolver across MAS flows

This commit is contained in:
Letro Bot
2026-04-08 17:58:30 +03:30
parent 6cfaf99300
commit def6fa6539
47 changed files with 1311 additions and 126 deletions

View File

@@ -102,6 +102,7 @@ Please see LICENSE files in the repository root for full details.
{% call(f) field.field(label=_("common.username"), name="username", form_state=form_state) %}
<input {{ field.attributes(f) }} class="cpd-text-control" type="text" autocomplete="username" autocorrect="off" autocapitalize="none" value="{{ imported_localpart or '' }}" aria-describedby="{{ f.id }}-help" data-choose-username />
{{ field.error(error={"kind": "policy", "code": "username-invalid-chars"}, hidden=true) }}
{{ field.error(error={"kind": "policy", "code": "postnumber-reserved"}, hidden=true) }}
{% if f.errors is empty %}
<div class="cpd-form-message cpd-form-help-message" id="{{ f.id }}-help">