mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -04:00
it wouldn't show search if there were under a certain amount of letter or email branding options - however we know there will always be more than that amount so lets remove some complexity. Also, rename the SearchTemplatesForm because it can search anything - it just prompts you to search by name is all.
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
{% extends "views/platform-admin/_base_template.html" %}
|
||
{% from "components/radios.html" import radios %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
{% from "components/live-search.html" import live_search %}
|
||
|
||
{% block per_page_title %}
|
||
Email branding
|
||
{% endblock %}
|
||
|
||
{% block platform_admin_content %}
|
||
|
||
<div class="grid-row bottom-gutter-2-3">
|
||
<div class="column-two-thirds">
|
||
<h1 class="heading-large">Email branding</h1>
|
||
</div>
|
||
<div class="column-one-third">
|
||
<a href="{{ url_for('.create_email_branding') }}" class="button align-with-heading">Add new brand</a>
|
||
</div>
|
||
</div>
|
||
{{ live_search(target_selector='.email-brand', show=True, form=search_form) }}
|
||
<nav>
|
||
{% for brand in email_brandings %}
|
||
<div class="email-brand">
|
||
<div class="message-name">
|
||
<a href="{{ url_for('.update_email_branding', branding_id=brand.id) }}">
|
||
{{ brand.name or 'Unnamed' }}
|
||
</a>
|
||
</div>
|
||
<p class="message-type">
|
||
{% if brand.domain %}
|
||
Default for {{ brand.domain }}
|
||
{% else %}
|
||
–
|
||
{% endif %}
|
||
</p>
|
||
</div>
|
||
{% endfor %}
|
||
</nav>
|
||
|
||
{% endblock %}
|