diff --git a/resources/views/hardware/index.blade.php b/resources/views/hardware/index.blade.php index 3c704e9e970b..2a57c0c7d342 100755 --- a/resources/views/hardware/index.blade.php +++ b/resources/views/hardware/index.blade.php @@ -37,153 +37,228 @@ -
- -
- @include('partials.advanced-search.advanced-search', [ - 'predefined_filter_id' => $predefined_filter_id, - ]) -
+
+ +
+ @include('partials.advanced-search.advanced-search', [ + 'predefined_filter_id' => $predefined_filter_id, + ]) +
- -
-
-
- @include('partials.asset-bulk-actions', ['status' => Request::get('status'), 'showFiltersTogglebutton' => true]) - - Request::get('status'), + 'showFiltersTogglebutton' => true, + ]) + +
-
+ +
+ +
- - -
- - - - + .filter-section.hide { + display: none !important; + } + + /* ---------- DESKTOP Styles (screen ≥ 768px) ---------- */ + @media (min-width: 768px) { + + /* + Filter sidebar gets 25% width, and some space on the right. + */ + .filter-section { + flex: 0 0 25%; + max-width: 25%; + padding-right: 15px; + } + + /* + Main table takes the remaining 75%. + */ + .table-section { + flex: 0 0 75%; + max-width: 75%; + } + + /* + If filter is hidden, the table takes full width. + */ + .filter-section.hide+.table-section { + flex: 0 0 100%; + max-width: 100%; + } + } + + /* ---------- MOBILE Styles (screen < 768px) ---------- */ + @media (max-width: 767px) { + + /* + Filter takes full width, and sits above the table section. + */ + .filter-section { + width: 100%; + margin-bottom: 15px; + } + + .table-section { + width: 100%; + } + } + + + @stop @section('moar_scripts') -@include('partials.bootstrap-table') + @include('partials.bootstrap-table') @stop