mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-20 08:03:51 -04:00
This will stop us repeatedly forgetting to add `novalidate` and `autocomplete='off'` to our forms (which is how most of them are set up). It uses sensible defaults, based on how we most-commonly configure forms: - most of our forms are `post`ed (but this can be overridden) - `autocomplete` should only be enabled where it makes sense, otherwise it’s more annoying than useful (but this can be overriden) - we should never be using HTML5 form validation because our own error styles and messages are better
25 lines
910 B
HTML
25 lines
910 B
HTML
{% extends "views/platform-admin/_base_template.html" %}
|
|
{% from "components/form.html" import form_wrapper %}
|
|
{% block service_page_title %}
|
|
Preview email branding
|
|
{% endblock %}
|
|
|
|
{% block platform_admin_content %}
|
|
|
|
<h1 class="heading-large">Preview email branding</h1>
|
|
<div class="grid-row">
|
|
<div class="column-full">
|
|
<iframe src="{{ url_for('main.email_template', branding_style=form.branding_style.data) }}" class="email-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 %}
|