mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 00:03:12 -04:00
Merge branch 'master' into celery-jobs
This commit is contained in:
@@ -31,7 +31,11 @@ def add_service_template(service_id, template_type):
|
|||||||
|
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
tdao.insert_service_template(
|
tdao.insert_service_template(
|
||||||
form.name.data, template_type, form.template_content.data, service_id, form.subject.data or None
|
form.name.data,
|
||||||
|
template_type,
|
||||||
|
form.template_content.data,
|
||||||
|
service_id,
|
||||||
|
form.subject.data if hasattr(form, 'subject') else None
|
||||||
)
|
)
|
||||||
return redirect(
|
return redirect(
|
||||||
url_for('.choose_template', service_id=service_id, template_type=template_type)
|
url_for('.choose_template', service_id=service_id, template_type=template_type)
|
||||||
|
|||||||
@@ -14,12 +14,8 @@
|
|||||||
<div class="grid-row">
|
<div class="grid-row">
|
||||||
<div class="column-two-thirds">
|
<div class="column-two-thirds">
|
||||||
{{ textbox(form.name, width='1-1') }}
|
{{ textbox(form.name, width='1-1') }}
|
||||||
{% if 'email' == template_type %}
|
{{ textbox(form.subject, width='1-1') }}
|
||||||
{{ textbox(form.subject, width='1-1') }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="grid-row">
|
|
||||||
<div class="column-two-thirds">
|
<div class="column-two-thirds">
|
||||||
{{ textbox(form.template_content, highlight_tags=True, width='1-1') }}
|
{{ textbox(form.template_content, highlight_tags=True, width='1-1') }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,12 +14,7 @@
|
|||||||
<div class="grid-row">
|
<div class="grid-row">
|
||||||
<div class="column-two-thirds">
|
<div class="column-two-thirds">
|
||||||
{{ textbox(form.name, width='1-1') }}
|
{{ textbox(form.name, width='1-1') }}
|
||||||
{% if 'email' == template_type %}
|
|
||||||
{{ textbox(form.subject, width='1-1') }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="grid-row">
|
|
||||||
<div class="column-two-thirds">
|
<div class="column-two-thirds">
|
||||||
{{ textbox(form.template_content, highlight_tags=True, width='1-1') }}
|
{{ textbox(form.template_content, highlight_tags=True, width='1-1') }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
""".format(
|
""".format(
|
||||||
url_for(".add_service_template", service_id=service_id),
|
url_for(".add_service_template", service_id=service_id, template_type="sms"),
|
||||||
url_for(".choose_template", service_id=service_id, template_type="sms")
|
url_for(".choose_template", service_id=service_id, template_type="sms")
|
||||||
)|safe,
|
)|safe,
|
||||||
subhead='Get started',
|
subhead='Get started',
|
||||||
|
|||||||
Reference in New Issue
Block a user