mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 02:36:02 +02:00
Remaining ANDI updates
This commit is contained in:
parent
8d13ea2f9f
commit
ddc98b6371
3 changed files with 11 additions and 6 deletions
|
@ -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 = '';
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue