mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 13:36:30 +02:00
PR feedback
This commit is contained in:
parent
357756214f
commit
1cab199eba
3 changed files with 6 additions and 6 deletions
|
@ -222,7 +222,7 @@ class DomainRequestAdminForm(forms.ModelForm):
|
|||
"other_contacts": NoAutocompleteFilteredSelectMultiple("other_contacts", False),
|
||||
}
|
||||
labels = {
|
||||
"action_needed_reason_email": "E-mail",
|
||||
"action_needed_reason_email": "Email",
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
|
@ -565,13 +565,13 @@ function initializeWidgetOnList(list, parentId) {
|
|||
}
|
||||
else {
|
||||
// Show editable view
|
||||
showEmail(true)
|
||||
showEmail(canEdit=true)
|
||||
}
|
||||
});
|
||||
|
||||
confirmEditEmailButton.addEventListener("click", function() {
|
||||
// Show editable view
|
||||
showEmail(true)
|
||||
showEmail(canEdit=true)
|
||||
});
|
||||
|
||||
// Event delegation for data-close-modal buttons
|
||||
|
@ -641,7 +641,7 @@ function initializeWidgetOnList(list, parentId) {
|
|||
}
|
||||
else {
|
||||
// Always show readonly view of email to start
|
||||
showEmail(false)
|
||||
showEmail(canEdit=false)
|
||||
}
|
||||
} else {
|
||||
// Hide email preview and show this text instead
|
||||
|
@ -652,7 +652,7 @@ function initializeWidgetOnList(list, parentId) {
|
|||
// Shows a readonly preview of the email with updated messaging to indicate this email was sent
|
||||
function showEmailAlreadySentView()
|
||||
{
|
||||
showEmail(false)
|
||||
showEmail(canEdit=false)
|
||||
hideElement(actionNeededEmailHeader)
|
||||
showElement(actionNeededEmailHeaderOnSave)
|
||||
actionNeededEmailFooter.innerHTML = "This email has been sent to the creator of this request";
|
||||
|
|
|
@ -231,7 +231,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
|
|||
<span>Edit email</span>
|
||||
</button>
|
||||
</div>
|
||||
<textarea cols="40" rows="10" class="vLargeTextField" id="action-needed-reason-email-readonly-textarea" readonly>
|
||||
<textarea cols="40" rows="10" class="vLargeTextField dja-readonly-textarea-container" id="action-needed-reason-email-readonly-textarea" readonly>
|
||||
{{ field.field.value|linebreaks }}
|
||||
</textarea>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue