mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 23:08:25 -04:00
Refactor to not repeat lots of Jinja code
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% extends "views/platform-admin/_base_template.html" %}
|
||||
{% from "components/file-upload.html" import file_upload %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/textbox.html" import textbox, colour_textbox %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
|
||||
{% block service_page_title %}
|
||||
{{ '{} email branding'.format('Update' if email_branding else 'Create')}}
|
||||
@@ -22,9 +22,9 @@
|
||||
<div class="form-group">
|
||||
<div style='margin-top:15px;'>{{textbox(form.name)}}</div>
|
||||
<div style='margin-top:15px;'>{{textbox(form.text)}}</div>
|
||||
{{colour_textbox(form.colour, width='1-4', colour=email_branding.colour if email_branding)}}
|
||||
{{colour_textbox(form.banner_colour, width='1-4', colour=email_branding.banner_colour if email_branding)}}
|
||||
{{colour_textbox(form.single_id_colour, width='1-4', colour=email_branding.single_id_colour if email_branding)}}
|
||||
{{ textbox(form.colour, width='1-4', colour_preview=True) }}
|
||||
{{ textbox(form.banner_colour, width='1-4', colour_preview=True) }}
|
||||
{{ textbox(form.single_id_colour, width='1-4', colour_preview=True) }}
|
||||
<div style='margin-top:15px;'>{{textbox(form.domain)}}</div>
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends "org_template.html" %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/textbox.html" import textbox, colour_textbox %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
|
||||
{% block org_page_title %}
|
||||
Change organisation name
|
||||
|
||||
Reference in New Issue
Block a user