mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Hint that report is inclusive of both start date and end date
Bu changing labels for date input fields.
This commit is contained in:
@@ -1962,6 +1962,11 @@ class RequiredDateFilterForm(StripWhitespaceForm):
|
||||
end_date = GovukDateField("End Date")
|
||||
|
||||
|
||||
class BillingReportDateFilterForm(StripWhitespaceForm):
|
||||
start_date = GovukDateField("First day covered by report")
|
||||
end_date = GovukDateField("Last day covered by report")
|
||||
|
||||
|
||||
class SearchByNameForm(StripWhitespaceForm):
|
||||
|
||||
search = GovukSearchField(
|
||||
|
||||
@@ -18,6 +18,7 @@ from app import (
|
||||
from app.extensions import redis_client
|
||||
from app.main import main
|
||||
from app.main.forms import (
|
||||
BillingReportDateFilterForm,
|
||||
ClearCacheForm,
|
||||
DateFilterForm,
|
||||
RequiredDateFilterForm,
|
||||
@@ -272,7 +273,7 @@ def notifications_sent_by_service():
|
||||
@main.route("/platform-admin/reports/usage-for-all-services", methods=['GET', 'POST'])
|
||||
@user_is_platform_admin
|
||||
def get_billing_report():
|
||||
form = RequiredDateFilterForm()
|
||||
form = BillingReportDateFilterForm()
|
||||
|
||||
if form.validate_on_submit():
|
||||
start_date = form.start_date.data
|
||||
|
||||
Reference in New Issue
Block a user