mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-03 15:58:25 -04:00
The owner is often repetetive, eg > *Hackney Council* > Default for Hackney Council Instead it’s more useful to reflect what the person setting up the brand has entered – the domain. This also adds an empty hint for non-default brands so that the page is evenly spaced and nothing overlaps.
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=show_search_box, 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 %}
|