mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-03 19:18:25 -04:00
For both SMS senders and email reply to addresses this commit adds: - a delete link - a confirmation loop It doesn’t let users delete: - default SMS senders or reply to addresses (they always have to have one) - inbound numbers It assumes that the API will allow updating of an attribute named `active` on the respective database rows. It could work in a different way. We can’t do complete deletion though because these will still be keyed to notifications.
57 lines
1.8 KiB
HTML
57 lines
1.8 KiB
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/banner.html" import banner_wrapper %}
|
|
{% from "components/textbox.html" import textbox %}
|
|
{% from "components/checkbox.html" import checkbox %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
{% block service_page_title %}
|
|
Edit email reply to address
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
{% if confirm_delete %}
|
|
<div class="bottom-gutter">
|
|
{% call banner_wrapper(type='dangerous', subhead="Are you sure you want to delete this email reply to address?") %}
|
|
<form method='post'>
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<input type="submit" class="button" name="delete" value="Confirm" />
|
|
</form>
|
|
{% endcall %}
|
|
</div>
|
|
{% else %}
|
|
<h1 class="heading-large">
|
|
Edit email reply to address
|
|
</h1>
|
|
{% endif %}
|
|
<form method="post">
|
|
{{ textbox(
|
|
form.email_address,
|
|
width='2-3',
|
|
safe_error_message=True
|
|
) }}
|
|
{% if form.is_default.data %}
|
|
<p class="form-group">
|
|
This is the default reply to address for {{ current_service.name }} emails
|
|
</p>
|
|
{{ page_footer(
|
|
'Save',
|
|
back_link=url_for('.service_email_reply_to', service_id=current_service.id),
|
|
back_link_text='Back'
|
|
) }}
|
|
{% else %}
|
|
<div class="form-group">
|
|
{{ checkbox(form.is_default) }}
|
|
</div>
|
|
{{ page_footer(
|
|
'Save',
|
|
back_link=url_for('.service_email_reply_to', service_id=current_service.id),
|
|
back_link_text='Back',
|
|
delete_link=url_for('.service_confirm_delete_email_reply_to', service_id=current_service.id, reply_to_email_id=reply_to_email_address_id),
|
|
delete_link_text='Delete'
|
|
) }}
|
|
{% endif %}
|
|
</form>
|
|
|
|
{% endblock %}
|