Make pricing table searchable

uses the same pattern as searching templates by name.
This commit is contained in:
Chris Hill-Scott
2017-07-28 15:07:08 +01:00
parent 10b87e433b
commit 10f81d5d16
2 changed files with 33 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
from flask import (render_template, url_for, redirect, request, abort)
from app.main import main
from app import convert_to_boolean
from app.main.forms import SearchTemplatesForm
from flask_login import (login_required, current_user)
from notifications_utils.template import HTMLEmailTemplate
@@ -38,7 +39,8 @@ def pricing():
international_sms_rates=sorted([
(cc, country['names'], country['billable_units'])
for cc, country in INTERNATIONAL_BILLING_RATES.items()
], key=lambda x: x[0])
], key=lambda x: x[0]),
search_form=SearchTemplatesForm(),
)