mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Rename other "Admin" forms consistently
I've also tweaked some of the names to make them clearer e.g. that the form is used to apply a change to a service. I've constrained the scope of this change to avoid forms that may be accessible by non-admins in the future.
This commit is contained in:
@@ -19,17 +19,17 @@ from app.main import main
|
||||
from app.main.forms import (
|
||||
AddGPOrganisationForm,
|
||||
AddNHSLocalOrganisationForm,
|
||||
AdminBillingDetailsForm,
|
||||
AdminNewOrganisationForm,
|
||||
AdminNotesForm,
|
||||
AdminOrganisationDomainsForm,
|
||||
AdminOrganisationGoLiveNotesForm,
|
||||
AdminPreviewBrandingForm,
|
||||
AdminSetEmailBrandingForm,
|
||||
AdminSetLetterBrandingForm,
|
||||
BillingDetailsForm,
|
||||
EditNotesForm,
|
||||
GoLiveNotesForm,
|
||||
InviteOrgUserForm,
|
||||
NewOrganisationForm,
|
||||
OrganisationAgreementSignedForm,
|
||||
OrganisationCrownStatusForm,
|
||||
OrganisationDomainsForm,
|
||||
OrganisationOrganisationTypeForm,
|
||||
RenameOrganisationForm,
|
||||
SearchByNameForm,
|
||||
@@ -60,7 +60,7 @@ def organisations():
|
||||
@main.route("/organisations/add", methods=['GET', 'POST'])
|
||||
@user_is_platform_admin
|
||||
def add_organisation():
|
||||
form = NewOrganisationForm()
|
||||
form = AdminNewOrganisationForm()
|
||||
|
||||
if form.validate_on_submit():
|
||||
try:
|
||||
@@ -495,7 +495,7 @@ def organisation_preview_letter_branding(org_id):
|
||||
@user_is_platform_admin
|
||||
def edit_organisation_domains(org_id):
|
||||
|
||||
form = OrganisationDomainsForm()
|
||||
form = AdminOrganisationDomainsForm()
|
||||
|
||||
if form.validate_on_submit():
|
||||
try:
|
||||
@@ -530,7 +530,7 @@ def edit_organisation_domains(org_id):
|
||||
@user_is_platform_admin
|
||||
def edit_organisation_go_live_notes(org_id):
|
||||
|
||||
form = GoLiveNotesForm()
|
||||
form = AdminOrganisationGoLiveNotesForm()
|
||||
|
||||
if form.validate_on_submit():
|
||||
organisations_client.update_organisation(
|
||||
@@ -551,7 +551,7 @@ def edit_organisation_go_live_notes(org_id):
|
||||
@main.route("/organisations/<uuid:org_id>/settings/notes", methods=['GET', 'POST'])
|
||||
@user_is_platform_admin
|
||||
def edit_organisation_notes(org_id):
|
||||
form = EditNotesForm(notes=current_organisation.notes)
|
||||
form = AdminNotesForm(notes=current_organisation.notes)
|
||||
|
||||
if form.validate_on_submit():
|
||||
|
||||
@@ -572,7 +572,7 @@ def edit_organisation_notes(org_id):
|
||||
@main.route("/organisations/<uuid:org_id>/settings/edit-billing-details", methods=['GET', 'POST'])
|
||||
@user_is_platform_admin
|
||||
def edit_organisation_billing_details(org_id):
|
||||
form = BillingDetailsForm(
|
||||
form = AdminBillingDetailsForm(
|
||||
billing_contact_email_addresses=current_organisation.billing_contact_email_addresses,
|
||||
billing_contact_names=current_organisation.billing_contact_names,
|
||||
billing_reference=current_organisation.billing_reference,
|
||||
|
||||
Reference in New Issue
Block a user