mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 00:43:11 -04:00
Different back links and form actions on verify page depending if add or change
This commit is contained in:
@@ -40,8 +40,13 @@
|
||||
<p>
|
||||
Do not use your own email address for replies.
|
||||
</p>
|
||||
{% 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 = url_for('.service_add_email_reply_to', service_id=service_id)
|
||||
action = form_url
|
||||
) %}
|
||||
{{ textbox(
|
||||
form.email_address,
|
||||
|
||||
@@ -11,10 +11,14 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
{% if replace %}
|
||||
{% set back_link_href = url_for('.service_edit_email_reply_to', service_id=service_id, reply_to_email_id=replace) %}
|
||||
{% else %}
|
||||
{% set back_link_href = url_for('.service_add_email_reply_to', service_id=service_id) %}
|
||||
{% endif %}
|
||||
{{ page_header(
|
||||
'{} email reply-to address'.format(verb),
|
||||
back_link=url_for('main.service_add_email_reply_to', service_id=current_service.id)
|
||||
back_link=back_link_href
|
||||
) }}
|
||||
{{ ajax_block(
|
||||
partials,
|
||||
|
||||
Reference in New Issue
Block a user