-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add approval workflow for paid registrar requests (#3659)
* Enable approve_pending_registrar to accept base_rate parameter * Update "organization form" to "registrar form" for clarity * would_be_org_admin -> registrar_user_candidate * Overhaul paid registrar submission workflow and templates * Update tests to match overhauled paid registrar workflow * Fix missing user form data in template * Display base rate input if not nonpaying registrar * Build some logic for display of registrar user * First pass on approval form updates * Do form validation in ApproveRegistrarForm.clean_registrar_user * Provide error message as feedback if registrar user email doesn't validate * Display user search when a registrar user is not already assigned * Fix ancient typo in class name on registrar management template * Make registrar action button casing consistent with other interfaces * Add pagination to user search * Add required base rate parameter to approval tests * Remove missing imports to appease flake8 * Remove forgotten debugging print * Add clarifying comment on exclusion of sponsored users from user search * registrar.pending_users.first -> registrar.pending_users.exists Co-authored-by: Rebecca Lynn Cremona <[email protected]> * Fix heading levels in user search output * Relocate valid_*_sorts from user_management_views to common module * Address UnorderedObjectListWarning by applying sort to user search results * Use GET parameters for user search * Fix bug wherein nonpaying registrar approval errors due to null base_rate * Add sort dropdown to approval user list * Reference form.cleaned_data for status field * "library account" -> "registrar account" for general-purpose use * library_approved.txt -> registrar_approved.txt * Fix bug wherein requested_account_note was not populated for some firm sign-ups --------- Co-authored-by: Rebecca Lynn Cremona <[email protected]>
- Loading branch information
1 parent
d7cda5e
commit fc48ba8
Showing
19 changed files
with
528 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
{{ user_form.data.email }}{% if user_form.data.first_name or user_form.data.last_name %} ({{ user_form.data.first_name }} {{ user_form.data.last_name }}){% endif %} has requested more information about creating an account for a law firm or other organization: | ||
A new account request from a law firm or other organization has been submitted, and is now awaiting review. | ||
|
||
Organization name: {{ organization_form.cleaned_data.name }} | ||
Organization email: {{ organization_form.cleaned_data.email }} | ||
Organization website: {{ organization_form.cleaned_data.website }} | ||
Registrar name: {{ registrar.name }} | ||
Registrar email: {{ registrar.email }} | ||
Registrar website: {{ registrar.website }} | ||
|
||
Estimated number of individual accounts: {{ usage_form.cleaned_data.estimated_number_of_accounts }} | ||
Estimated number of Perma Links created each month (per user): {{ usage_form.cleaned_data.estimated_perma_links_per_month }} | ||
|
||
User would be an administrator on the account: {{ user_form.data.would_be_org_admin | yesno }} | ||
User name: {{ user_name }} | ||
User email: {{ user_email }} | ||
User would be an administrator on the account: {{ user_form.data.registrar_user_candidate | yesno }} | ||
|
||
This user currently {% if existing_user %}has{% else %}does not have{% endif %} an account. | ||
This user {% if existing_user %}has{% else %}does not have{% endif %} an account. | ||
|
||
https://{{ host }}{{ confirmation_route }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
A new library account request from pending registrar, named {{ name }} (at {{ email }}) is awaiting review and approval. | ||
Requesting user's email: {{ requested_by_email }} | ||
A new account request from a pending registrar, named {{ name }} ({{ email }}), is awaiting review and approval. | ||
|
||
Requesting user's email: {{ requested_by_email }} | ||
|
||
http://{{ host }}{{ confirmation_route}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
TITLE: Your Perma.cc registrar account is approved | ||
|
||
Your request for a Perma.cc registrar account has been approved and your personal account has been linked. | ||
|
||
To start creating organizations and users, please click the link below or copy it to your web browser. | ||
|
||
http://{{ host }}{{ account_route }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.