-
Notifications
You must be signed in to change notification settings - Fork 12
Update organization profiles with staff approval #506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
84e4bda
Basic form on update page
eyeseast 305b00b
Migration required! Add 'about' field to Organization model.
eyeseast b45c5e7
Migration required! Add organizations.ProfileChangeRequest model.
eyeseast b87e2e9
Add accept/reject methods
eyeseast c3e55b2
Add tests for the new model
eyeseast c50712e
Split organization model tests into individual files
eyeseast 512cb8c
Split out models because linting
eyeseast 4ab4857
format
eyeseast c9385be
Add explanation field to profile change request
eyeseast 1de974b
Add the change request form to the page
eyeseast 6b207c3
Style pending requests. Only require explanation for non-staff changes.
eyeseast 2575511
Accept or reject proposed changes
eyeseast 8d546d2
lint
eyeseast 3f54f32
Add a new forms template pack so we can customize crispy forms
eyeseast 9253c7f
de-bootstrap-ify
eyeseast 6ceea91
Use the right field and layout classes. Remove unneded layouts.
eyeseast 2ff4eea
Update and extract checkbox inputs
eyeseast 99c21d3
Better semantics
eyeseast 74804ec
Finish form styles
eyeseast 33f9466
lint
eyeseast 7e0c85a
Merge branch 'redesign-orgs' of github.com:MuckRock/squarelet into 46…
eyeseast 751a8c4
Add zendesk integration and split off change request model into its o…
eyeseast cfa5151
tests
eyeseast 9e19bb4
lint
eyeseast d3b3df2
Merge branch 'redesign-orgs' into 468-org-profile-update
allanlasser ab2d477
Styling and layout fixes
allanlasser 9ac2e04
LInt fix
allanlasser c282b7c
Lil more CSS
allanlasser fb7eb9a
Sort imports
allanlasser 42583cf
Pre-fill form fields but only save what's changed
eyeseast 1d2ab01
Add URL if set
eyeseast 7922974
Set placeholders, not initial values
eyeseast 81f3c9a
Redirect GET on change request view to the org detail page
eyeseast 3ee6c8e
Add profile change request to the admin
eyeseast a980e49
help text migration
eyeseast 6d3f2fa
Split update and payment templates because they're different views
eyeseast fd22d28
linting
eyeseast 190cb53
re-lint
eyeseast 4f4f1e1
Remove `comment` block
allanlasser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,88 @@ | ||
| /* css for /organizations/<slug>/update/ */ | ||
|
|
||
| #organization-form { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| width: 100%; | ||
| max-width: 60rem; | ||
| margin: 2rem auto; | ||
| align-items: flex-start; | ||
| gap: 0 1.5rem; | ||
| align-self: stretch; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| #organization-form .sidebar { | ||
| display: flex; | ||
| flex: 1 1 8rem; | ||
| padding: 0.75rem; | ||
| width: 100%; | ||
| flex-direction: column; | ||
| align-items: flex-start; | ||
| align-self: stretch; | ||
|
|
||
| header { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: flex-start; | ||
| gap: 0.5rem; | ||
| align-self: stretch; | ||
| position: sticky; | ||
| top: 2rem; | ||
| } | ||
|
|
||
| h1, | ||
| h2 { | ||
| margin: 0; | ||
| } | ||
| h1 { | ||
| margin-top: 2rem; | ||
| } | ||
| h2 { | ||
| font-weight: 400; | ||
| } | ||
| } | ||
|
|
||
| #organization-form .content { | ||
| box-sizing: border-box; | ||
| display: flex; | ||
| flex: 1 1 37.5rem; | ||
| width: 100%; | ||
| padding: 0.75rem; | ||
| flex-direction: column; | ||
| align-items: flex-start; | ||
| gap: 2rem; | ||
|
|
||
| section { | ||
| width: 100%; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: flex-start; | ||
| gap: 1rem; | ||
| align-self: stretch; | ||
| } | ||
|
|
||
| header .title { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 0.25rem; | ||
| } | ||
|
|
||
| .title h2, | ||
| .title p { | ||
| margin: 0; | ||
| } | ||
| } | ||
|
|
||
| #pending-requests { | ||
| display: flex; | ||
| flex-direction: column; | ||
| width: 100%; | ||
|
|
||
| dl { | ||
| width: 100%; | ||
| } | ||
| dt { | ||
| font-weight: bold; | ||
| } | ||
| } |
File renamed without changes.
This file contains hidden or 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 @@ | ||
| import "@/css/organization_update.css"; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.