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

API Add a way to check if a form or field has an extra css class. #10112

Merged

Conversation

GuySartorelli
Copy link
Member

GuySartorelli added a commit to signify-nz/silverstripe-admin that referenced this pull request Oct 6, 2021
For some reason, the preview panel template which is referred to in LeftAndMain::PreviewPanel() only exists in the cms module for the CMSMain controller.
All of the other code for using a CMS preview is available for any arbitrary LeftAndMain subclass and is available in this module. There should be no dependency from this module on the cms module to allow previews, and previews should work for all LeftAndMain subclasses in this module (e.g. ModelAdmin).

Relies on silverstripe/silverstripe-framework#10112
@michalkleiner
Copy link
Contributor

Thanks @GuySartorelli.

Would you mind updating the tests to test the newly added method in both classes as well, please?

@GuySartorelli GuySartorelli force-pushed the enh/check-if-form-has-extraclass branch from 871d6cd to 758e4ee Compare October 6, 2021 23:55
@GuySartorelli
Copy link
Member Author

GuySartorelli commented Oct 6, 2021

@michalkleiner Done! :)
Edit: And now done correctly - oops.

@GuySartorelli GuySartorelli force-pushed the enh/check-if-form-has-extraclass branch from 758e4ee to c5003bb Compare October 6, 2021 23:56
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