mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
Rename 'email-branding-preview' CSS styles to 'branding-preview'
Renamed since the same styling will be used for previewing letters.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
const $form = $('form');
|
const $form = $('form');
|
||||||
const $previewPane = $('<iframe src="/_email?' +
|
const $previewPane = $('<iframe src="/_email?' +
|
||||||
buildQueryString(['branding_style', branding_style]) +
|
buildQueryString(['branding_style', branding_style]) +
|
||||||
'" class="email-branding-preview"></iframe>');
|
'" class="branding-preview"></iframe>');
|
||||||
|
|
||||||
function buildQueryString () {
|
function buildQueryString () {
|
||||||
return $.map(arguments, (val, idx) => encodeURI(val[0]) + '=' + encodeURI(val[1])).join('&');
|
return $.map(arguments, (val, idx) => encodeURI(val[0]) + '=' + encodeURI(val[1])).join('&');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.email-branding-preview {
|
.branding-preview {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border: solid 1px $border-colour;
|
border: solid 1px $border-colour;
|
||||||
@@ -61,7 +61,7 @@ $path: '/static/images/';
|
|||||||
@import 'components/conditional-radios';
|
@import 'components/conditional-radios';
|
||||||
@import 'components/vendor/breadcrumbs';
|
@import 'components/vendor/breadcrumbs';
|
||||||
@import 'components/vendor/responsive-embed';
|
@import 'components/vendor/responsive-embed';
|
||||||
@import 'components/email-preview-pane';
|
@import 'components/preview-pane';
|
||||||
@import 'components/task-list';
|
@import 'components/task-list';
|
||||||
|
|
||||||
@import 'views/dashboard';
|
@import 'views/dashboard';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<h1 class="heading-large">Preview email branding</h1>
|
<h1 class="heading-large">Preview email branding</h1>
|
||||||
<div class="grid-row">
|
<div class="grid-row">
|
||||||
<div class="column-full">
|
<div class="column-full">
|
||||||
<iframe src="{{ url_for('main.email_template', branding_style=form.branding_style.data) }}" class="email-branding-preview"></iframe>
|
<iframe src="{{ url_for('main.email_template', branding_style=form.branding_style.data) }}" class="branding-preview"></iframe>
|
||||||
{% call form_wrapper(action=action) %}
|
{% call form_wrapper(action=action) %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
|
|||||||
@@ -2276,7 +2276,7 @@ def test_should_preview_email_branding(
|
|||||||
))
|
))
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||||
iframe = page.find('iframe', attrs={"class": "email-branding-preview"})
|
iframe = page.find('iframe', attrs={"class": "branding-preview"})
|
||||||
iframeURLComponents = urlparse(iframe['src'])
|
iframeURLComponents = urlparse(iframe['src'])
|
||||||
iframeQString = parse_qs(iframeURLComponents.query)
|
iframeQString = parse_qs(iframeURLComponents.query)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user