mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Updates to styleguide
Brings in changes to the email message and table patterns.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from flask import render_template, current_app, abort
|
||||
from flask_wtf import Form
|
||||
from wtforms import StringField, PasswordField, TextAreaField, FileField, validators
|
||||
from utils.template import Template
|
||||
from app.main import main
|
||||
|
||||
|
||||
@@ -17,13 +18,16 @@ def styleguide():
|
||||
message = TextAreaField(u'Message')
|
||||
file_upload = FileField('Upload a CSV file to add your recipients’ details')
|
||||
|
||||
sms = "Your vehicle tax for ((registration number)) is due on ((date)). Renew online at www.gov.uk/vehicle-tax"
|
||||
|
||||
form = FormExamples()
|
||||
|
||||
form.message.data = "Your vehicle tax for ((registration number)) is due on ((date)). Renew online at www.gov.uk/vehicle-tax" # noqa
|
||||
|
||||
form.message.data = sms
|
||||
form.validate()
|
||||
|
||||
template = Template({'content': sms})
|
||||
|
||||
return render_template(
|
||||
'views/styleguide.html',
|
||||
form=form
|
||||
form=form,
|
||||
template=template
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user