mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Merge pull request #2943 from alphagov/service-agreement
Add service-specific versions of agreement page
This commit is contained in:
@@ -10,12 +10,21 @@ from app.s3_client.s3_mou_client import get_mou
|
||||
@login_required
|
||||
def agreement():
|
||||
return render_template(
|
||||
'views/{}.html'.format(current_user.default_organisation.as_jinja_template),
|
||||
'views/agreement/{}.html'.format(current_user.default_organisation.as_jinja_template),
|
||||
owner=current_user.default_organisation.name,
|
||||
navigation_links=features_nav(),
|
||||
)
|
||||
|
||||
|
||||
@main.route('/services/<uuid:service_id>/agreement')
|
||||
@login_required
|
||||
def service_agreement(service_id):
|
||||
return render_template(
|
||||
'views/agreement/service-{}.html'.format(current_user.default_organisation.as_jinja_template),
|
||||
owner=current_user.default_organisation.name,
|
||||
)
|
||||
|
||||
|
||||
@main.route('/agreement.pdf')
|
||||
@login_required
|
||||
def download_agreement():
|
||||
@@ -37,7 +46,7 @@ def public_agreement(variant):
|
||||
))
|
||||
|
||||
return render_template(
|
||||
'views/agreement-public.html',
|
||||
'views/agreement/agreement-public.html',
|
||||
owner=current_user.default_organisation.name,
|
||||
download_link=url_for('.public_download_agreement', variant=variant),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user