mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 20:28:25 -04:00
Allow letter templates to select the default contact block from the list
This commit is contained in:
@@ -35,11 +35,7 @@
|
||||
<div class="column-whole template-container">
|
||||
{% if current_user.has_permissions(permissions=['manage_templates'], admin_override=True) and template.template_type == 'letter' %}
|
||||
<a href="{{ url_for(".edit_service_template", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-body">Edit</a>
|
||||
{% if default_letter_contact_block_id %}
|
||||
<a href="{{ url_for(".service_edit_letter_contact", service_id=current_service.id, letter_contact_id=default_letter_contact_block_id, from_template=template.id) }}" class="edit-template-link-letter-contact">Edit</a>
|
||||
{% else %}
|
||||
<a href="{{ url_for(".service_add_letter_contact", service_id=current_service.id, from_template=template.id) }}" class="edit-template-link-letter-contact">Edit</a>
|
||||
{% endif %}
|
||||
<a href="{{ url_for(".set_template_sender", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-contact">Edit</a>
|
||||
{% endif %}
|
||||
{{ template|string }}
|
||||
</div>
|
||||
|
||||
32
app/templates/views/templates/set-template-sender.html
Normal file
32
app/templates/views/templates/set-template-sender.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
{% from "components/radios.html" import radios, branding_radios %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
|
||||
{% block service_page_title %}
|
||||
Set letter contact block
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<h1 class="heading-large">Set letter contact block</h1>
|
||||
<div class="grid-row">
|
||||
<div class="column-three-quarters">
|
||||
<form method="post">
|
||||
{{ radios(
|
||||
form.sender,
|
||||
option_hints=option_hints,
|
||||
hide_legend=True
|
||||
) }}
|
||||
{{ page_footer(
|
||||
'Continue',
|
||||
back_link=url_for('.view_template', service_id=current_service.id, template_id=template_id),
|
||||
back_link_text='Back to template'
|
||||
) }}
|
||||
{% if no_senders %}
|
||||
<a href="{{ url_for('.service_add_letter_contact', service_id=current_service.id, from_template=template_id) }}">Add new sender</a>
|
||||
{% endif %}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user