Hard code some data in the Python

This commit adds some stubbed data for the pages. The structure of the data
is just a proposal, but it gives the templates something to work with for now.
This commit is contained in:
Chris Hill-Scott
2015-12-10 16:48:07 +00:00
parent b46872d2b9
commit 1f39a0fe61
5 changed files with 101 additions and 9 deletions

View File

@@ -43,12 +43,37 @@ def addservice():
@main.route("/send-sms")
def sendsms():
return render_template('views/send-sms.html')
return render_template(
'views/send-sms.html',
message_templates=[
{
'name': 'Reminder',
'body': """
Vehicle tax: Your vehicle tax for ((registration number)) expires on ((date)).
Tax your vehicle at www.gov.uk/vehicle-tax
"""
},
{
'name': 'Warning',
'body': """
Vehicle tax: Your vehicle tax for ((registration number)) has expired.
Tax your vehicle at www.gov.uk/vehicle-tax
"""
},
]
)
@main.route("/check-sms")
def checksms():
return render_template('views/check-sms.html')
return render_template(
'views/check-sms.html',
recipient_count=159,
message_template="""
Vehicle tax: Your vehicle tax for ((registration number)) expires on ((date)).
Tax your vehicle at www.gov.uk/vehicle-tax
"""
)
@main.route("/email-not-received")