Skip to content

Commit

Permalink
Merge pull request #2054 from kabilar/registration
Browse files Browse the repository at this point in the history
Update new user registration questions
  • Loading branch information
waxlamp authored Oct 22, 2024
2 parents eacbd07 + 5f7805f commit bccbc2d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions dandiapi/api/templates/api/account/questionnaire_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ <h6><b>Note:</b> No account is necessary to access public data!</h6>
{% for name, value in query_params.items %}
<input type="hidden" name="{{ name }}" value="{{ value }}">
{% endfor %}

<div>
<b><i>
Please note that users can freely search, view, and download public datasets without an account!
</b></i>
</div>

<button id="btn" class="btn waves-effect waves-light blue" type="submit" disabled>
<span>Submit</span>
<i class="material-icons right">send</i>
Expand Down
8 changes: 6 additions & 2 deletions dandiapi/api/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ 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.',
'max_length': 1000,
},
]

# questions for new users
Expand Down

0 comments on commit bccbc2d

Please sign in to comment.