mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user