diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 98d7275b1..f1150f9a2 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -1561,7 +1561,7 @@ class Asset extends Depreciable $leftJoin->on('assets_dept_users.id', '=', 'assets.assigned_to') ->where('assets.assigned_type', '=', User::class); })->where(function ($query) use ($search) { - $query->where('assets_dept_users.department_id', '=', $search); + $query->whereIn('assets_dept_users.department_id', $search); })->withTrashed()->whereNull('assets.deleted_at'); //workaround for laravel bug } @@ -1811,7 +1811,7 @@ class Asset extends Depreciable public function scopeInCategory($query, $category_id) { return $query->join('models as category_models', 'assets.model_id', '=', 'category_models.id') - ->join('categories', 'category_models.category_id', '=', 'categories.id')->where('category_models.category_id', '=', $category_id); + ->join('categories', 'category_models.category_id', '=', 'categories.id')->whereIn('category_models.category_id', $category_id); } /** @@ -1825,7 +1825,7 @@ class Asset extends Depreciable public function scopeByManufacturer($query, $manufacturer_id) { return $query->join('models', 'assets.model_id', '=', 'models.id') - ->join('manufacturers', 'models.manufacturer_id', '=', 'manufacturers.id')->where('models.manufacturer_id', '=', $manufacturer_id); + ->join('manufacturers', 'models.manufacturer_id', '=', 'manufacturers.id')->whereIn('models.manufacturer_id', $manufacturer_id); } diff --git a/public/css/build/app.css b/public/css/build/app.css index 66a22ebf9..d9f77a0b5 100644 --- a/public/css/build/app.css +++ b/public/css/build/app.css @@ -831,19 +831,36 @@ body { } .select2-selection--multiple { border-color: #d2d6de !important; - height: 34px; + overflow-y: auto; } .select2-selection__choice { border-radius: 0px !important; } +.select2-search select2-search--inline { + height: 35px !important; + float: left; + margin: 0; +} +.select2-selection__rendered needsclick { + color: red; +} +.select2-results__option { + padding: 5px; + -moz-user-select: none; + user-select: none; + -webkit-user-select: none; + margin: 0px; +} img.navbar-brand-img, .navbar-brand > img { float: left; padding: 5px 5px 5px 0; max-height: 50px; } -.input-daterange { - border-radius: 0px; +.input-daterange, +.input-daterange input:first-child, +.input-daterange input:last-child { + border-radius: 0px !important; } .btn.bg-maroon, .btn.bg-purple { diff --git a/public/css/build/overrides.css b/public/css/build/overrides.css index 752650252..c927401a4 100644 --- a/public/css/build/overrides.css +++ b/public/css/build/overrides.css @@ -464,19 +464,36 @@ body { } .select2-selection--multiple { border-color: #d2d6de !important; - height: 34px; + overflow-y: auto; } .select2-selection__choice { border-radius: 0px !important; } +.select2-search select2-search--inline { + height: 35px !important; + float: left; + margin: 0; +} +.select2-selection__rendered needsclick { + color: red; +} +.select2-results__option { + padding: 5px; + -moz-user-select: none; + user-select: none; + -webkit-user-select: none; + margin: 0px; +} img.navbar-brand-img, .navbar-brand > img { float: left; padding: 5px 5px 5px 0; max-height: 50px; } -.input-daterange { - border-radius: 0px; +.input-daterange, +.input-daterange input:first-child, +.input-daterange input:last-child { + border-radius: 0px !important; } .btn.bg-maroon, .btn.bg-purple { diff --git a/public/css/dist/all.css b/public/css/dist/all.css index dbe027dcd..134919d74 100644 --- a/public/css/dist/all.css +++ b/public/css/dist/all.css @@ -21803,19 +21803,36 @@ body { } .select2-selection--multiple { border-color: #d2d6de !important; - height: 34px; + overflow-y: auto; } .select2-selection__choice { border-radius: 0px !important; } +.select2-search select2-search--inline { + height: 35px !important; + float: left; + margin: 0; +} +.select2-selection__rendered needsclick { + color: red; +} +.select2-results__option { + padding: 5px; + -moz-user-select: none; + user-select: none; + -webkit-user-select: none; + margin: 0px; +} img.navbar-brand-img, .navbar-brand > img { float: left; padding: 5px 5px 5px 0; max-height: 50px; } -.input-daterange { - border-radius: 0px; +.input-daterange, +.input-daterange input:first-child, +.input-daterange input:last-child { + border-radius: 0px !important; } .btn.bg-maroon, .btn.bg-purple { @@ -23259,19 +23276,36 @@ body { } .select2-selection--multiple { border-color: #d2d6de !important; - height: 34px; + overflow-y: auto; } .select2-selection__choice { border-radius: 0px !important; } +.select2-search select2-search--inline { + height: 35px !important; + float: left; + margin: 0; +} +.select2-selection__rendered needsclick { + color: red; +} +.select2-results__option { + padding: 5px; + -moz-user-select: none; + user-select: none; + -webkit-user-select: none; + margin: 0px; +} img.navbar-brand-img, .navbar-brand > img { float: left; padding: 5px 5px 5px 0; max-height: 50px; } -.input-daterange { - border-radius: 0px; +.input-daterange, +.input-daterange input:first-child, +.input-daterange input:last-child { + border-radius: 0px !important; } .btn.bg-maroon, .btn.bg-purple { diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 3bffe3f7c..c1c7e00a6 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -2,8 +2,8 @@ "/js/build/app.js": "/js/build/app.js?id=5e9ac5c1a7e089f056fb1dba566193a6", "/css/dist/skins/skin-black-dark.css": "/css/dist/skins/skin-black-dark.css?id=f0b08873a06bb54daeee176a9459f4a9", "/css/dist/skins/_all-skins.css": "/css/dist/skins/_all-skins.css?id=f4397c717b99fce41a633ca6edd5d1f4", - "/css/build/overrides.css": "/css/build/overrides.css?id=9265dbc8adc38d13abec7f8ff0374dce", - "/css/build/app.css": "/css/build/app.css?id=76584ef562c22532ffa84748f18e3a65", + "/css/build/overrides.css": "/css/build/overrides.css?id=ebd921b0b5dca37487551bcc7dc934c5", + "/css/build/app.css": "/css/build/app.css?id=2b1b6164d02342fcd4cd303fef52e895", "/css/build/AdminLTE.css": "/css/build/AdminLTE.css?id=4ea0068716c1bb2434d87a16d51b98c9", "/css/dist/skins/skin-yellow.css": "/css/dist/skins/skin-yellow.css?id=7b315b9612b8fde8f9c5b0ddb6bba690", "/css/dist/skins/skin-yellow-dark.css": "/css/dist/skins/skin-yellow-dark.css?id=393aaa7b368b0670fc42434c8cca7dc7", @@ -19,7 +19,7 @@ "/css/dist/skins/skin-blue.css": "/css/dist/skins/skin-blue.css?id=f677207c6cf9678eb539abecb408c374", "/css/dist/skins/skin-blue-dark.css": "/css/dist/skins/skin-blue-dark.css?id=0640e45bad692dcf62873c6e85904899", "/css/dist/skins/skin-black.css": "/css/dist/skins/skin-black.css?id=76482123f6c70e866d6b971ba91de7bb", - "/css/dist/all.css": "/css/dist/all.css?id=0978d9f0ba8d47527c248074b757b03d", + "/css/dist/all.css": "/css/dist/all.css?id=c1cd73524bd82ddb8a4d7e8d1a504506", "/css/dist/signature-pad.css": "/css/dist/signature-pad.css?id=6a89d3cd901305e66ced1cf5f13147f7", "/css/dist/signature-pad.min.css": "/css/dist/signature-pad.min.css?id=6a89d3cd901305e66ced1cf5f13147f7", "/js/select2/i18n/af.js": "/js/select2/i18n/af.js?id=4f6fcd73488ce79fae1b7a90aceaecde", diff --git a/resources/assets/less/overrides.less b/resources/assets/less/overrides.less index 096d67f75..f3261a19b 100644 --- a/resources/assets/less/overrides.less +++ b/resources/assets/less/overrides.less @@ -500,13 +500,27 @@ body { .select2-selection--multiple { border-color: #d2d6de !important; - height: 34px; + overflow-y: auto; } .select2-selection__choice { border-radius: 0px !important; } +.select2-search select2-search--inline { + height: 35px !important; + float: left; + margin: 0; +} + + + +.select2-results__option { + padding: 5px; + user-select: none; + -webkit-user-select: none; + margin: 0px; +} img.navbar-brand-img, .navbar-brand>img { float: left; @@ -514,8 +528,8 @@ img.navbar-brand-img, .navbar-brand>img { max-height: 50px; } -.input-daterange { - border-radius: 0px; +.input-daterange, .input-daterange input:first-child, .input-daterange input:last-child { + border-radius: 0px !important; } .btn.bg-maroon, .btn.bg-purple{ diff --git a/resources/lang/en-US/localizations.php b/resources/lang/en-US/localizations.php index e87af0718..fdca1532b 100644 --- a/resources/lang/en-US/localizations.php +++ b/resources/lang/en-US/localizations.php @@ -2,7 +2,7 @@ return [ - 'select_language' => 'Select a language', + 'select_language' => 'Select a Language', 'languages' => [ 'en-US'=> 'English, US', 'en-GB'=> 'English, UK', @@ -68,7 +68,7 @@ return [ 'zu-ZA'=> 'Zulu', ], - 'select_country' => 'Select a country', + 'select_country' => 'Select a Country', 'countries' => [ 'AC'=>'Ascension Island', diff --git a/resources/macros/macros.php b/resources/macros/macros.php index 5d0813115..1b2c127a4 100644 --- a/resources/macros/macros.php +++ b/resources/macros/macros.php @@ -11,7 +11,7 @@ Form::macro('locales', function ($name = 'locale', $selected = null, $class = nu $idclause = (!is_null($id)) ? $id : ''; - $select = ' @@ -20,14 +20,14 @@