-
Notifications
You must be signed in to change notification settings - Fork 0
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
Grid form picker control not rendering form. #612
Comments
Thanks for the report and fix @jaandrews. This looked like quite an easy one to get into the product, but it's confused me a bit in trying to apply what you've suggested. From what I'm seeing, when Umbraco forms are rendered in the grid, they are within I feel I must be missing something obvious. I'm adding the form to the grid via "Add Content > Macro > Insert Form With Theme". Is there another way you are adding your forms to the grid that uses the angularjs controller you've modified? Thanks,. |
The form is added directly into the grid and isn't injected via a macro. It's using the following from the umbraco forms package manifest.
The markup of formpicker.html is
This is where the reference to Umbraco.Forms.GridEditors.FormPickerController is coming from. |
Got it now, thanks very much. We'll add this update to the next release. |
The form doesn't render correctly when embedded inside the grid.
Reproduction
Bug summary
There are two problems.
Specifics
Steps to reproduce
Expected result
The form renders in the backoffice.
Actual result
The form didn't render the fields and just displays the labels in misaligned fashion. This is because of broken markup.
Before Fix
After Fix
I only had to make a couple tweaks to fix this in my local instance. I added the $sce dependency to the Umbraco.Forms.GridEditors.FormPickerController function. Then I cleaned up the resulting markup to make it safe to embed.
becomes
Note that the fixed form won't look exactly like what I have, since it's styled for a custom theme.
The text was updated successfully, but these errors were encountered: