mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user