From 14b80622b76b30cc29b0deb3b9d78070f40da0f9 Mon Sep 17 00:00:00 2001 From: chrisw Date: Wed, 14 Feb 2018 16:13:11 +0000 Subject: [PATCH] link-service-to-organisations-tweaks --- app/main/__init__.py | 50 +++++++++---------- app/main/views/service_settings.py | 1 + app/templates/org_nav.html | 1 + app/templates/org_template.html | 14 ++---- .../views/organisations/add-organisation.html | 2 +- app/templates/views/organisations/index.html | 2 +- .../organisations/organisation/index.html | 2 +- .../organisation/update-organisation.html | 2 +- .../organisation/users/index.html | 2 +- app/templates/views/service-settings.html | 3 +- .../link-service-to-organisation.html | 8 ++- tests/app/main/views/test_organisations.py | 2 +- tests/app/main/views/test_service_settings.py | 19 +++++++ 13 files changed, 62 insertions(+), 46 deletions(-) diff --git a/app/main/__init__.py b/app/main/__init__.py index 21dbef51c..4ec54c1e2 100644 --- a/app/main/__init__.py +++ b/app/main/__init__.py @@ -3,34 +3,34 @@ from flask import Blueprint main = Blueprint('main', __name__) # noqa from app.main.views import ( # noqa - add_service, - api_keys, - choose_service, - code_not_received, - conversation, - dashboard, - email_branding, - feedback, - forgot_password, - inbound_number, index, - invites, - jobs, - letter_jobs, - manage_users, - new_password, - notifications, - organisations, - platform_admin, - providers, - register, - send, - service_settings, sign_in, sign_out, - styleguide, - templates, + register, two_factor, + verify, + send, + add_service, + code_not_received, + jobs, + dashboard, + templates, + service_settings, + forgot_password, + new_password, + styleguide, user_profile, - verify + choose_service, + api_keys, + manage_users, + invites, + feedback, + providers, + platform_admin, + letter_jobs, + email_branding, + conversation, + organisations, + notifications, + inbound_number ) diff --git a/app/main/views/service_settings.py b/app/main/views/service_settings.py index 55d4fa246..d39e41058 100644 --- a/app/main/views/service_settings.py +++ b/app/main/views/service_settings.py @@ -789,6 +789,7 @@ def link_service_to_organisation(service_id): return render_template( 'views/service-settings/link-service-to-organisation.html', + has_organisations=organisations, form=form, ) diff --git a/app/templates/org_nav.html b/app/templates/org_nav.html index 22778f6f4..d27081d09 100644 --- a/app/templates/org_nav.html +++ b/app/templates/org_nav.html @@ -1,5 +1,6 @@