Closed (outdated)
Project:
Drupal core
Version:
9.5.x-dev
Component:
views_ui.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
8 Jun 2016 at 14:32 UTC
Updated:
14 Dec 2023 at 11:59 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
joachim commentedComment #3
dawehnerWow, I haven't seen that
Comment #4
msankhala commentedAssigning to myself to verify this issue and provide solution if possible.
Comment #5
msankhala commentedI can verify this issue exists for drupal 8.2.0-dev as well.
Comment #6
msankhala commentedThe reason why nojs verson of rearrange filer form style is broken because of missing css library
admin.stylingwhich addsviews_ui.admin.theme.cssfile. Here is working patch which resolve this issue.I attached this library with response returned in case of nojs, I tried attaching css with
$formrender array after line 214 in ajaxFormWrapper method of core/modules/views_ui/src/Form/Ajax/ViewsFormBase.phplike:
But that doesn't seem to work.
Comment #7
dawehnerDon't we want $response, aka. the library in every case?
Comment #8
msankhala commentedYeah, @dawehner we want that library in every case. I think best place to add that library would be in $form render array, I tried with that but i don't know why that doesn't work so i added in $response render element.
Comment #9
a_thakur commentedChanged issue status to *Needs Review*
Comment #10
msankhala commented@dawehner Can you please help me to understand why attaching
views_ui/admin.stylingwith $form was not working?The above snippet was attaching views admin styling with form before form render but it was not working so i attached this css library with rendered form response.
Comment #11
dawehnerThis doesn't work, because the first line renders, and the second line tries to add the library. It simply has to be the other way round :)
Comment #12
msankhala commented@dawehner I think first line is not rendering form if i do
kint($form)after first line it shows me render array rather then rendered html.Comment #13
joachim commentedThe patch fixes the layout issue, and correctly hides the 'No filters' message which shows on my screenshot.
However, we're still missing the link to add groups.
I can see this in the HTML source: it's this:
and the js-hide class is what's causing it to be hidden.
Comment #25
lendudeGoing through old bugs for the Bug Smash Initiative
The rearrange works now, as far as I can tell, the styling isn't great, but if you switch off javascript in Claro and then view the Views UI, this is not the first thing you trip over by far.
So if we start caring about the layout of nojs, I think that should be a whole new thing.
Closing this for now