Let people choose which agreement to download

If we don’t know whether people belong to a crown organisation we should
give them the option of self-selecting, because they might themselves
know.

This commit adds a new version of the ‘agreement’ page which gives
people exactly that choice. It doesn’t link to it yet.
This commit is contained in:
Chris Hill-Scott
2018-05-08 14:21:52 +01:00
parent e19e68396f
commit 947b67ee1a
3 changed files with 96 additions and 10 deletions

View File

@@ -13,7 +13,12 @@ def agreement():
agreement_info = AgreementInfo.from_current_user()
agreement_info.crown_status_or_404
if agreement_info.crown_status is None:
return render_template(
'views/agreement-choose.html',
owner=agreement_info.owner,
navigation_links=features_nav(),
)
return render_template(
'views/agreement.html',