Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Approve organization account (pypi#11208)
* admin-new-organization-approved email template * admin-new-organization-declined email template * new-organization-approved email template * new-organization-declined email template * Remove translations from admin-* emails Realized that translations for admin-* emails don't really make sense. Similar to commit bec7058. * Test *new-organization-{approved,declined} emails - admin-new-organization-approved - admin-new-organization-declined - new-organization-approved - new-organization-declined * Mockup of approve organization form for admin * Add message textarea to approve organization form * Add more context to approve organization form * Rename view admin.organization.{approve => detail} * Implement GET approve organization form * Revamp UX for approve organization form As @ewdurbin pointed out, the approve organziation form in the admin interface should use the same design as the rest of the admin interface: - Changed style to AdminLTE theme. - Moved *Approve* or *Decline* dialog to *Actions* box. - Added confirmation modals for *Approve* or *Decline*. - Added *type orgnization name to confirm* to confirmation modals. The *Actions* box and confirmation modals follow the same patterns used in the user detail admin page. * Implement POST approve organization form * Get requesting user for approve organization form Used Organization.events relationship per @sterbo's suggestion. * Handle status in approve organization form - Add "Approval Status" to "Organization Request" details - Allow admin to change approval decision - Disable "Approve" button if already approved - Disable "Decline" button if already declined * Store id instead of username in new events `Organization.Event` with tag: - organization.approve - organization.decline * GET /admin/organizations/ to list organizations * Add "Organizations" to admin sidebar Show only if `AdminFlagValue.DISABLE_ORGANIZATIONS` is unchecked. * Test GET /admin/organizations/ * NFC: Rename tests *_{disallow => disable}_organizations * "Organizations" admin 404 if disable-organizations 404 Not Found for "Organizations" admin if `disable-organizations` admin flag is checked. * NFC: `organization_*` prefix for admin org views * GET /admin/organizations/?q=... faceted search * GET /admin/organizations?q=... improved search UI * Update tests for GET /admin/organizations/ * Link breadcrumb to GET /admin/organizations/ * Fix flaky tests for /admin/organizations/ - Avoid unstable sort using `.normalized_name.lower()` as key - Avoid unreliable comparison of `paginate.Page` and `list` Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
- Loading branch information