mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Make first page of ‘send texts’ use links not form
This doesn’t need to be a form—it’s not changing any data. And having the primary action on the page as ‘Use this template’ it makes it clear what the page is for.
This commit is contained in:
@@ -32,13 +32,8 @@ from app.main.utils import (
|
||||
)
|
||||
|
||||
|
||||
@main.route("/services/<service_id>/sms/send", methods=['GET', 'POST'])
|
||||
@main.route("/services/<service_id>/sms/send", methods=['GET'])
|
||||
def choose_sms_template(service_id):
|
||||
if request.method == 'POST':
|
||||
return redirect(url_for('.send_sms',
|
||||
service_id=service_id,
|
||||
template_id=request.form.get('template')))
|
||||
|
||||
try:
|
||||
templates = templates_dao.get_service_templates(service_id)['data']
|
||||
except HTTPError as e:
|
||||
|
||||
Reference in New Issue
Block a user