Skip to content
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

Use shared form partial for admin/domain_blocks views #29609

Merged

Conversation

mjankowski
Copy link
Contributor

These views had almost same exact form generation, so extract a partial.

The only difference was around the disabled/readonly properties in the edit view (we don't want to let the domain value be edited once the block is created). This is preserved by checking persisted? so the edit view will mark them disabled/readonly but the new view will keep the field open.

Also did same stuff with inner variable name and simple_form style as in #29608

@mjankowski mjankowski force-pushed the admin-domain-blocks-form-partial branch 2 times, most recently from cc31f2e to 917116b Compare March 20, 2024 13:58
@mjankowski mjankowski force-pushed the admin-domain-blocks-form-partial branch 2 times, most recently from 4ff837e to e9b301f Compare April 19, 2024 13:13
@mjankowski
Copy link
Contributor Author

Pushed commit to restore legacy URL style, now just a form extraction to clean up repeated template markup.

@mjankowski mjankowski force-pushed the admin-domain-blocks-form-partial branch from 8eac8eb to 28e0af8 Compare April 19, 2024 14:24
@mjankowski mjankowski requested a review from a team April 22, 2024 11:46
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Apr 22, 2024
Merged via the queue into mastodon:main with commit 33e8297 Apr 22, 2024
25 checks passed
@mjankowski mjankowski deleted the admin-domain-blocks-form-partial branch April 22, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants