From ad03897eada54bfb734ca046fd349c8c5d404321 Mon Sep 17 00:00:00 2001 From: Kabilar Gunalan Date: Sat, 5 Oct 2024 09:21:40 -0500 Subject: [PATCH 1/2] Update new user registration questions --- dandiapi/api/views/auth.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dandiapi/api/views/auth.py b/dandiapi/api/views/auth.py index 6525ff73a..6459290d6 100644 --- a/dandiapi/api/views/auth.py +++ b/dandiapi/api/views/auth.py @@ -49,8 +49,15 @@ def auth_token_view(request: Request) -> HttpResponseBase: QUESTIONS = [ {'question': 'First Name', 'max_length': 100}, {'question': 'Last Name', 'max_length': 100}, - {'question': 'What do you plan to use DANDI for?', 'max_length': 1000}, - {'question': 'Please list any affiliations you have.', 'max_length': 1000}, + {'question': 'Affiliation(s)', 'max_length': 1000}, + {'question': 'Lab/project website', 'max_length': 1000}, + { + 'question': 'Please describe how your research project will utilize' + ' DANDI resources. (Please note that users can freely' + ' search, view, and download public datasets without' + ' an account.)', + 'max_length': 1000, + }, ] # questions for new users From 5f7805f63e361597629a9ee6241206175583d1ed Mon Sep 17 00:00:00 2001 From: Roni Choudhury Date: Tue, 22 Oct 2024 11:03:52 -0400 Subject: [PATCH 2/2] Move admonition to its own div This helps avoid the "crowding" of text that occurs in the form field itself. --- dandiapi/api/templates/api/account/questionnaire_form.html | 7 +++++++ dandiapi/api/views/auth.py | 5 +---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dandiapi/api/templates/api/account/questionnaire_form.html b/dandiapi/api/templates/api/account/questionnaire_form.html index 3ac9ac3d2..edd16405f 100644 --- a/dandiapi/api/templates/api/account/questionnaire_form.html +++ b/dandiapi/api/templates/api/account/questionnaire_form.html @@ -17,6 +17,13 @@
Note: No account is necessary to access public data!
{% for name, value in query_params.items %} {% endfor %} + +
+ + Please note that users can freely search, view, and download public datasets without an account! + +
+