2025-10-06 09:38:54 -04:00
|
|
|
from flask import render_template
|
2021-08-27 17:39:04 +01:00
|
|
|
|
|
|
|
|
from app.main import main
|
|
|
|
|
from app.main.forms import SearchByNameForm
|
2022-11-01 15:27:29 -04:00
|
|
|
from app.main.views.sub_navigation_dictionaries import using_notify_nav
|
2023-07-03 15:03:33 -04:00
|
|
|
from app.utils.user import user_is_logged_in
|
2024-05-16 10:37:37 -04:00
|
|
|
from notifications_utils.international_billing_rates import INTERNATIONAL_BILLING_RATES
|
2021-08-27 17:39:04 +01:00
|
|
|
|
2023-08-25 09:12:23 -07:00
|
|
|
CURRENT_SMS_RATE = "1.72"
|
2022-04-28 10:48:44 +01:00
|
|
|
|
|
|
|
|
|
2023-08-25 09:12:23 -07:00
|
|
|
@main.route("/using-notify/pricing")
|
2023-07-03 15:03:33 -04:00
|
|
|
@user_is_logged_in
|
2021-08-27 17:39:04 +01:00
|
|
|
def pricing():
|
|
|
|
|
return render_template(
|
2023-08-25 09:12:23 -07:00
|
|
|
"views/pricing/index.html",
|
2022-05-04 15:04:06 +01:00
|
|
|
sms_rate=CURRENT_SMS_RATE,
|
2023-08-25 09:12:23 -07:00
|
|
|
international_sms_rates=sorted(
|
|
|
|
|
[
|
|
|
|
|
(cc, country["names"], country["billable_units"])
|
|
|
|
|
for cc, country in INTERNATIONAL_BILLING_RATES.items()
|
|
|
|
|
],
|
|
|
|
|
key=lambda x: x[0],
|
|
|
|
|
),
|
2021-08-27 17:39:04 +01:00
|
|
|
search_form=SearchByNameForm(),
|
2022-11-01 15:27:29 -04:00
|
|
|
navigation_links=using_notify_nav(),
|
2021-08-27 17:39:04 +01:00
|
|
|
)
|