mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
This adds a preview pane which is visible when updating a letter brand. If JavaScript is enabled, the preview pane shows on the set-letter-branding page, and submitting the form saves updates the letter brand for a service immediately. If Javascript is not enabled, there is a separate 'Preview email branding' page which shows a preview of the brand and has a 'Save' button on it.
25 lines
903 B
HTML
25 lines
903 B
HTML
{% extends "views/platform-admin/_base_template.html" %}
|
|
{% from "components/form.html" import form_wrapper %}
|
|
{% block per_page_title %}
|
|
Preview letter branding
|
|
{% endblock %}
|
|
|
|
{% block platform_admin_content %}
|
|
|
|
<h1 class="heading-large">Preview letter branding</h1>
|
|
<div class="grid-row">
|
|
<div class="column-full">
|
|
<iframe src="{{ url_for('main.letter_template', branding_style=form.branding_style.data) }}" class="branding-preview"></iframe>
|
|
{% call form_wrapper(action=action) %}
|
|
<div class="form-group">
|
|
{{ form.hidden_tag() }}
|
|
<div class="page-footer">
|
|
<button type="submit" class="button">Save</button>
|
|
<a class="page-footer-back-link" href="{{ url_for('main.service_settings', service_id=service_id) }}">Back to service settings</a>
|
|
</div>
|
|
</div>
|
|
{% endcall %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|