Files
notifications-admin/app/templates/views/service-settings/email-reply-to/_verify-updates.html

63 lines
2.4 KiB
HTML
Raw Normal View History

{% from "components/banner.html" import banner, banner_wrapper %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
2023-08-30 11:07:38 -04:00
{% from "components/components/button/macro.njk" import usaButton %}
<div class="ajax-block-container">
{% if verification_status == "pending" %}
<p>
Were checking that {{ reply_to_email_address }} is a real email address.
</p>
<p>
<span class='loading-indicator'>This can take a minute</span>
</p>
2023-08-25 11:49:13 -04:00
<p class="js-hidden usa-body">
<a class="usa-link" href="{{ url_for('main.service_verify_reply_to_address', service_id=service_id, notification_id=notification_id, is_default=is_default, replace=replace) }}">Refresh</a>
</p>
{% elif verification_status == "success" %}
{{ banner("{} is ready to use".format(reply_to_email_address), type='default', with_tick=True) }}
<div class="js-stick-at-bottom-when-scrolling">
2023-08-30 11:07:38 -04:00
{{ usaButton({
"element": "a",
"text": "Continue",
"href": url_for('.service_email_reply_to', service_id=service_id)
}) }}
</div>
{% elif verification_status == "failure" %}
Removed all govuk css (#2814) * Removed all govuk css * Updated reference files * Removing govuk js * Fixed casing for modules, removed unused page * Got more reference images * Updated template page * Removed govuk padding util * Updated hint to uswds hint * More govuk cleanup * Commiting backstopjs ref files * Fixed all unit tests that broke due to brittleness around govuk styling * Added new ref images * Final removal of govuk * Officially removed all govuk references * Updated reference file * Updated link to button * UI modernization * Cleanup * removed govuk escaping tests since they are no longer needed * Fix CodeQL security issue in escapeElementName function - Escape backslashes first before other special characters - Prevents potential double-escaping vulnerability - Addresses CodeQL alert about improper string escaping * Found more govuk removal. Fixed unit tests * Add missing pipeline check to pre-commit * updated test * Updated e2e test * More update to e2e test * Fixed another e2e test * Simple PR comments addressed * More updates * Updated backstop ref files * Refactored folder selection for non-admins * Updated redundant line * Updated tests to include correct mocks * Added more ref files * Addressing carlos comments * Addressing Carlo comments, cleanup of window initing * More cleanup and addressing carlo comments * Fixing a11 scan * Fixed a few issues with javascript * Fixed for pr * Fixing e2e tests * Tweaking e2e test * Added more ref files and cleaned up urls.js * Fixed bug with creating new template * Removed brittle test - addressed code ql comment * e2e race condition fix * More e2e test fixes * Updated e2e tests to not wait for text sent * Updated test to not wait for button click response * Made tear down more resilent if staging is down * reverted e2e test to what was working before main merge * Updated backstopRef images * Updated gulp to include job-polling differently
2025-10-06 09:38:54 -04:00
<div class="margin-bottom-3">
{% call banner_wrapper(type='dangerous') %}
<h2 class='banner-title' data-module="track-error" data-error-type="reply-to-email-not-working" data-error-label="{{ upload_id }}">
Theres a problem with your reply-to address
</h2>
<p>
We sent an email to {{ reply_to_email_address }} but it could not be delivered.
</p>
<p>
You can try again, or use a different address.
</p>
{% endcall %}
</div>
{% if replace %}
{% set form_url = url_for('.service_edit_email_reply_to', service_id=service_id, reply_to_email_id=replace) %}
{% else %}
{% set form_url = url_for('.service_add_email_reply_to', service_id=service_id) %}
{% endif %}
{% call form_wrapper(
action = form_url
) %}
{{ form.email_address(
param_extensions={
"hint": {"text": "This should be a shared inbox managed by your team, not your own email address"},
"classes": ""
},
error_message_with_html=True
) }}
{% if not first_email_address and not existing_is_default %}
{{ form.is_default }}
{% endif %}
{{ page_footer('Try again') }}
{% endcall %}
{% endif %}
</div>