Skip to content

Commit

Permalink
Fix group action hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Apr 20, 2020
1 parent ed3598d commit 69b0c8c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions assets/datagrid.css
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,14 @@
vertical-align: middle
}

.datagrid .ublaboo-datagrid-th-form-inline .form-control[hidden] {
display:none;
}

.ublaboo-datagrid-th-form-inline .form-control[hidden] {
display: none;
}

.datagrid .ublaboo-datagrid-th-form-inline .input-group {
display: inline-table;
vertical-align: middle
Expand Down
4 changes: 2 additions & 2 deletions src/templates/datagrid.latte
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
{='ublaboo_datagrid.group_actions'|translate}:
{foreach $filter['group_action']->getControls() as $form_control}
{if $form_control instanceof \Nette\Forms\Controls\SubmitButton}
{input $form_control, class => 'btn btn-primary btn-sm', style => 'display:none'}
{input $form_control, class => 'btn btn-primary btn-sm'}
{elseif $form_control->getName() == 'group_action'}
{input $form_control, class => 'form-control input-sm form-control-sm', disabled => TRUE}
{else}
{input $form_control, style => 'display:none'}
{input $form_control}
{/if}
{/foreach}
{if $control->shouldShowSelectedRowsCount()}
Expand Down

0 comments on commit 69b0c8c

Please sign in to comment.