Developed by the the Alliance in collaboration with University of Alberta, DMP Assistant a data management planning tool, forking the DMP Roadmap codebase
Add terms and conditions checkbox to the devise invitation form
This was done by copy/pasting the code from app/views/shared/_create_account_form.html.erb
In addition to the copy/paste, required: true was added. As a result, the invitation form cannot be submitted unless the checkbox is currently checked.
Add accept_terms to devise_parameter_sanitizer.permit(). This enables the accept_terms value to be updated within the update method of Devise::InvitationsController
Fixes #665
665
Changes proposed in this PR:
app/views/shared/_create_account_form.html.erb
required: true
was added. As a result, the invitation form cannot be submitted unless the checkbox is currently checked.accept_terms
todevise_parameter_sanitizer.permit()
. This enables theaccept_terms
value to be updated within theupdate
method ofDevise::InvitationsController