Remaining ANDI updates

This commit is contained in:
CocoByte 2024-10-09 16:55:48 -06:00
parent 8d13ea2f9f
commit ddc98b6371
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
3 changed files with 11 additions and 6 deletions

View file

@ -1625,8 +1625,14 @@ class DomainRequestsTable extends LoadTableBase {
`
}
if (!request.is_deletable) {
// If the request is not deletable, insert a message
// for the screenreader to pickup explaining the empty table cell
modalTrigger = `
<span class="usa-sr-only">Domain request cannot be deleted now. Edit the request for more information.</span>`
}
else {
// If the request is deletable, create modal body and insert it. This is true for both requests and portfolio requests pages
if (request.is_deletable) {
let modalHeading = '';
let modalDescription = '';

View file

@ -229,7 +229,8 @@ class SeniorOfficialForm(RegistrarForm):
email = forms.EmailField(
label="Email",
max_length=None,
error_messages={"invalid": ("Enter an email address in the required format, like name@example.com.")},
error_messages={"invalid": ("Enter an email address in the required format, like name@example.com."),
"required": ("Enter an email address in the required format, like name@example.com.")},
validators=[
MaxLengthValidator(
320,

View file

@ -21,9 +21,7 @@
{% input_with_errors form.first_name %}
{% input_with_errors form.last_name %}
{% input_with_errors form.title %}
{% with sublabel_text="Enter an email address in the required format, like name@example.com." %}
{% input_with_errors form.email %}
{% endwith %}
<button type="submit" class="usa-button">Save</button>
</form>
{% elif not form.full_name.value and not form.title.value and not form.email.value %}