diff --git a/app/Http/Controllers/Api/ManufacturersController.php b/app/Http/Controllers/Api/ManufacturersController.php index 2269f1afbe..56714b4746 100644 --- a/app/Http/Controllers/Api/ManufacturersController.php +++ b/app/Http/Controllers/Api/ManufacturersController.php @@ -78,10 +78,16 @@ class ManufacturersController extends Controller $manufacturers->onlyTrashed(); } + if ($request->input('status') == 'deleted') { + $manufacturers->onlyTrashed(); + } + if ($request->filled('search')) { $manufacturers = $manufacturers->TextSearch($request->input('search')); } + + if ($request->filled('name')) { $manufacturers->where('name', '=', $request->input('name')); } diff --git a/resources/assets/js/snipeit_modals.js b/resources/assets/js/snipeit_modals.js index cea79e1141..5211f9bfc1 100644 --- a/resources/assets/js/snipeit_modals.js +++ b/resources/assets/js/snipeit_modals.js @@ -11,14 +11,14 @@ Create a Button looking like this: - New + New If you don't have access to Blade commands (like {{ and }}, etc), you can hard-code a URL as the 'href' data-toggle="modal" - required for Bootstrap Modals data-target="#createModal" - fixed ID for the modal, do not change data-select="assigned_to" - What is the *ID* of the select-dropdown that you're going to be adding to, if the modal-create was a success? Be on the lookout for duplicate ID's, it will confuse this library! - class="btn btn-sm btn-primary" - makes it look button-ey, feel free to change :) + class="btn btn-sm btn-theme" - makes it look button-ey, feel free to change :) If you want to pass additional variables to the modal (In the Category Create one, for example, you can pass category_id), you can encode them as URL variables in the href diff --git a/resources/assets/less/app.less b/resources/assets/less/app.less index bf3c836883..5fdc2a6a0e 100644 --- a/resources/assets/less/app.less +++ b/resources/assets/less/app.less @@ -423,10 +423,7 @@ img.navbar-brand-img, border-radius: 0px; } -.btn.bg-maroon, -.btn.bg-purple { - min-width: 90px; -} + [hidden] { display: none !important; diff --git a/resources/assets/less/overrides.less b/resources/assets/less/overrides.less index b6cd09096a..dd17bc8248 100644 --- a/resources/assets/less/overrides.less +++ b/resources/assets/less/overrides.less @@ -503,10 +503,11 @@ img.navbar-brand-img, .navbar-brand>img { border-radius: 0px !important; } -.btn.bg-maroon, .btn.bg-purple{ +.btn-checkin, .btn-checkout { min-width:90px; } + [hidden] { display: none !important; } diff --git a/resources/lang/en-US/general.php b/resources/lang/en-US/general.php index 49c5cf87d9..da711677ff 100644 --- a/resources/lang/en-US/general.php +++ b/resources/lang/en-US/general.php @@ -648,6 +648,7 @@ return [ 'set_password' => 'Set a Password', 'upload_deleted' => 'Upload Deleted', 'child_locations' => 'Child Locations', + 'append' => 'Append', // Add form placeholders here 'placeholders' => [ diff --git a/resources/views/account/accept/create.blade.php b/resources/views/account/accept/create.blade.php index 2b91d18f97..e403f6ff70 100644 --- a/resources/views/account/accept/create.blade.php +++ b/resources/views/account/accept/create.blade.php @@ -101,7 +101,7 @@
- +
diff --git a/resources/views/account/profile.blade.php b/resources/views/account/profile.blade.php index 8194ecf9c8..ac1606068b 100755 --- a/resources/views/account/profile.blade.php +++ b/resources/views/account/profile.blade.php @@ -257,6 +257,15 @@ // This takes the color from the color picker to show a live preview $(function() { + /** + * 5. Add an event listener to toggle the reset + */ + clearButton.addEventListener("click", (event) => { + localStorage.removeItem("theme"); + }); + + + $('#nav-link-color').colorpicker().on('changeColor', function(e) { var color = e.color.toString('rgba'); // $('.navbar-nav > li > a').css('background-color', header_color); diff --git a/resources/views/blade/input/location-select.blade.php b/resources/views/blade/input/location-select.blade.php index f9bd28fa63..2c1a15b37d 100644 --- a/resources/views/blade/input/location-select.blade.php +++ b/resources/views/blade/input/location-select.blade.php @@ -55,7 +55,7 @@
@unless($hideNewButton) @can('create', Location::class) - {{ trans('button.new') }} + {{ trans('button.new') }} @endcan @endunless
diff --git a/resources/views/components/tables/bulk-actions.blade.php b/resources/views/components/tables/bulk-actions.blade.php index b5938727bb..2d53c1f6e0 100644 --- a/resources/views/components/tables/bulk-actions.blade.php +++ b/resources/views/components/tables/bulk-actions.blade.php @@ -29,7 +29,7 @@ {{ $slot }} - \ No newline at end of file diff --git a/resources/views/custom_fields/index.blade.php b/resources/views/custom_fields/index.blade.php index 32bfab3af1..8d628973f7 100644 --- a/resources/views/custom_fields/index.blade.php +++ b/resources/views/custom_fields/index.blade.php @@ -21,7 +21,7 @@

{{ trans('admin/custom_fields/general.fieldsets') }}

@can('create', \App\Models\CustomFieldset::class) - {{ trans('admin/custom_fields/general.create_fieldset') }} + {{ trans('admin/custom_fields/general.create_fieldset') }} @endcan
@@ -115,7 +115,7 @@

{{ trans('admin/custom_fields/general.custom_fields') }}

@can('create', \App\Models\CustomField::class) - {{ trans('admin/custom_fields/general.create_field') }} + {{ trans('admin/custom_fields/general.create_field') }} @endcan
diff --git a/resources/views/departments/view.blade.php b/resources/views/departments/view.blade.php index b45cbb1cc1..d4d64d2880 100644 --- a/resources/views/departments/view.blade.php +++ b/resources/views/departments/view.blade.php @@ -9,7 +9,7 @@ @stop @section('header_right') - {{ trans('admin/departments/table.update') }} + {{ trans('admin/departments/table.update') }} @stop {{-- Page content --}} diff --git a/resources/views/hardware/bulk.blade.php b/resources/views/hardware/bulk.blade.php index 2b18bb0e1c..d70a9be3b1 100755 --- a/resources/views/hardware/bulk.blade.php +++ b/resources/views/hardware/bulk.blade.php @@ -8,7 +8,7 @@ @section('header_right') - + {{ trans('general.back') }} @stop diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php index ffc8944dd4..2559f302df 100755 --- a/resources/views/hardware/edit.blade.php +++ b/resources/views/hardware/edit.blade.php @@ -46,7 +46,7 @@ {!! $errors->first('asset_tag', ' :message') !!}
-
- +
@include ('partials.forms.edit.serial', ['fieldname'=> 'serials['.$i.']', 'old_val_name' => 'serials.'.$i, 'translated_serial' => trans('admin/hardware/form.serial')]) @@ -357,7 +357,7 @@ box_html += ''; box_html += ''; box_html += '
'; - box_html += ''; + box_html += ''; box_html += '
'; // box_html += ''; box_html += ''; diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index e65d95f606..702bfb2420 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -231,7 +231,7 @@ @can('checkin', $asset)
model ? ' data-tooltip="true" title="'.trans('admin/hardware/general.model_invalid_fix').'"' : '') !!}> - + {{ trans('admin/hardware/general.checkin') }} @@ -255,7 +255,7 @@ @can('update', \App\Models\Asset::class)
- + {{ trans('general.add_note') }} @@ -269,7 +269,7 @@ @can('audit', \App\Models\Asset::class)
model ? ' data-tooltip="true" title="'.trans('admin/hardware/general.model_invalid_fix').'"' : '') !!}> - + {{ trans('general.audit') }} diff --git a/resources/views/kits/edit.blade.php b/resources/views/kits/edit.blade.php index eb53365786..032061c060 100644 --- a/resources/views/kits/edit.blade.php +++ b/resources/views/kits/edit.blade.php @@ -13,24 +13,30 @@ @section('content') @parent + + {{-- Assets by model --}}
-
+
-

{{ trans('general.asset_models') }}

+
+
+

+ {{ trans('general.asset_models') }} +

+
+ +
-{{-- Licenses --}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--

Licenses--}}{{-- TODO: trans --}}{{--

--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{-- --}} -{{-- --}} -{{-- Append--}}{{-- TODO: trans --}}{{----}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{-- Consumables --}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--

Consumables--}}{{-- TODO: trans --}}{{--

--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{-- --}} -{{-- --}} -{{-- Append--}}{{-- TODO: trans --}}{{----}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{-- Accessories --}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--

Accessories--}}{{-- TODO: trans --}}{{--

--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{-- --}} -{{-- --}} -{{-- Append--}}{{-- TODO: trans --}}{{----}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--
--}} -{{--
--}} + +
+
+
+
+
+
+

+ {{ trans('general.licenses') }} +

+
+ + +
+ +
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+

+ {{ trans('general.consumables') }} +

+
+ + +
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+

+ {{ trans('general.accessories') }} +

+
+ + +
+ +
+
+
+ +
+
+
+
+
+
@stop @section('moar_scripts') diff --git a/resources/views/kits/index.blade.php b/resources/views/kits/index.blade.php index e8b9e1aeda..ad44cadca8 100644 --- a/resources/views/kits/index.blade.php +++ b/resources/views/kits/index.blade.php @@ -8,11 +8,6 @@ @parent @stop -@section('header_right') -{{ trans('general.create') }} -@stop - - {{-- Content --}} @section('content')
@@ -27,6 +22,7 @@ data-sort-name="name" id="kitsTable" class="table table-striped snipe-table" + data-buttons="kitButtons" data-url="{{ route('api.kits.index') }}" data-export-options='{ "fileName": "export-kits-{{ date('Y-m-d') }}", diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php index ae0293c3a1..a0c7ad4161 100644 --- a/resources/views/layouts/default.blade.php +++ b/resources/views/layouts/default.blade.php @@ -304,10 +304,26 @@ .modal-danger h2, .modal-header h2, .modal-warning h2 + .bg-maroon, + .bg-maroon:hover, + .bg-maroon:focus, + .bg-purple, + .bg-purple:hover, + .bg-purple:focus { color: white !important; } + .btn-selected, + .btn-selected a, + .btn-selected:hover, + .btn-selected:focus { + background-color: var(--table-stripe-bg) !important; + border-color: var(--table-stripe-bg) !important; + color: light-dark(hsl(from var(--color-fg) h s calc(l - 10)),hsl(from var(--color-fg) h s calc(l - 10))) !important; + + } + .btn-default, .btn-default:hover { @@ -1902,12 +1918,6 @@ currentThemeSetting = newTheme; }); - /** - * 5. Add an event listener to toggle the reset - */ - clearButton.addEventListener("click", (event) => { - localStorage.removeItem("theme"); - }); diff --git a/resources/views/layouts/edit-form.blade.php b/resources/views/layouts/edit-form.blade.php index f0b5257c38..20bbd78f2e 100644 --- a/resources/views/layouts/edit-form.blade.php +++ b/resources/views/layouts/edit-form.blade.php @@ -10,13 +10,6 @@ @parent @stop -@section('header_right') - - {{ trans('general.back') }} -@stop - - - {{-- Page content --}} @section('content') diff --git a/resources/views/livewire/importer.blade.php b/resources/views/livewire/importer.blade.php index 23da29e4aa..3242f67805 100644 --- a/resources/views/livewire/importer.blade.php +++ b/resources/views/livewire/importer.blade.php @@ -131,11 +131,11 @@ {{ ($currentFile->adminuser) ? $currentFile->adminuser->present()->fullName : '--'}} {{ Helper::formatFilesizeUnits($currentFile->filesize) }} - - + +
\ No newline at end of file diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php index 9e01cd9516..c4511adfee 100644 --- a/resources/views/locations/view.blade.php +++ b/resources/views/locations/view.blade.php @@ -542,13 +542,13 @@ @if ($location->deleted_at=='')
- + {{ trans('admin/locations/table.print_all_assigned') }} diff --git a/resources/views/manufacturers/index.blade.php b/resources/views/manufacturers/index.blade.php index bacb5a22da..b6494df8b7 100755 --- a/resources/views/manufacturers/index.blade.php +++ b/resources/views/manufacturers/index.blade.php @@ -22,7 +22,7 @@

{{ trans('general.seeding.manufacturers.prompt') }} -

@@ -57,7 +57,7 @@ {{-- end stuff for bulk dropdown --}} data-buttons="manufacturerButtons" class="table table-striped snipe-table" - data-url="{{route('api.manufacturers.index', ['deleted' => (request('deleted')=='true') ? 'true' : 'false' ]) }}" + data-url="{{route('api.manufacturers.index', ['status' => e(request()->input('status')) ]) }}" data-export-options='{ "fileName": "export-manufacturers-{{ date('Y-m-d') }}", "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"] diff --git a/resources/views/models/bulk-edit.blade.php b/resources/views/models/bulk-edit.blade.php index 2e8d4925b4..806d587490 100644 --- a/resources/views/models/bulk-edit.blade.php +++ b/resources/views/models/bulk-edit.blade.php @@ -8,7 +8,7 @@ @section('header_right') - + {{ trans('general.back') }} @stop diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index c78836f5fa..ac0847acf0 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -253,7 +253,7 @@ }, attributes: { title: '{{ trans('general.show_admins') }}', - class: '{{ (request()->input('admins') == "true") ? ' btn-danger' : '' }}' + class: '{{ (request()->input('admins') == "true") ? ' btn-selected text-danger' : '' }}' } }, @@ -264,7 +264,7 @@ window.location.href = '{{ (request()->input('status') == "deleted") ? route('users.index') : route('users.index', ['status' => 'deleted']) }}'; }, attributes: { - class: '{{ (request()->input('status') == "deleted") ? ' btn-danger' : '' }}', + class: '{{ (request()->input('status') == "deleted") ? ' btn-selected text-danger ' : '' }}', title: '{{ (request()->input('status') == "deleted") ? trans('admin/users/table.show_current') : trans('admin/users/table.show_deleted') }}', } @@ -283,7 +283,7 @@ window.location.href = '{{ route('companies.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -305,7 +305,7 @@ window.location.href = '{{ route('groups.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -328,7 +328,7 @@ }, attributes: { title: '{{ trans('general.create') }}', - class: 'btn-info', + class: 'btn-warning', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @endif @@ -368,7 +368,7 @@ window.location.href = '{{ (request()->input('status') == "Deleted") ? route('hardware.index') : route('hardware.index', ['status' => 'Deleted']) }}'; }, attributes: { - class: '{{ (request()->input('status') == "Deleted") ? ' btn-danger' : '' }}', + class: '{{ (request()->input('status') == "Deleted") ? 'btn-selected text-danger' : '' }}', title: '{{ (request()->input('status') == "Deleted") ? trans('general.list_all') : trans('general.deleted') }}', } @@ -385,7 +385,7 @@ window.location.href = '{{ route('locations.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -400,6 +400,7 @@ window.location.href = '{{ (request()->input('status') == "deleted") ? route('locations.index') : route('locations.index', ['status' => 'deleted']) }}'; }, attributes: { + class: '{{ (request()->input('status') == "deleted") ? 'btn-selected text-danger' : '' }}', title: '{{ (request()->input('status') == "deleted") ? trans('admin/users/table.show_current') : trans('admin/users/table.show_deleted') }}', } @@ -417,7 +418,7 @@ window.location.href = '{{ route('accessories.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -437,7 +438,7 @@ window.location.href = '{{ route('depreciations.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -457,7 +458,7 @@ window.location.href = '{{ route('fields.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -478,7 +479,7 @@ window.location.href = '{{ route('fieldsets.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -498,7 +499,7 @@ window.location.href = '{{ route('components.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -518,7 +519,7 @@ window.location.href = '{{ route('consumables.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -529,7 +530,7 @@ @endcan @can('create', \App\Models\Manufacturer::class) - // Consumable table buttons + // Manufacturer table buttons window.manufacturerButtons = () => ({ btnAdd: { text: '{{ trans('general.create') }}', @@ -538,25 +539,25 @@ window.location.href = '{{ route('manufacturers.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @endif }, + }, - btnShowDeleted: { - text: '{{ (request()->input('status') == "Deleted") ? trans('general.list_all') : trans('general.deleted') }}', - icon: 'fa-solid fa-trash', - event () { - window.location.href = '{{ (request()->input('status') == "deleted") ? route('manufacturers.index') : route('manufacturers.index', ['status' => 'deleted']) }}'; - }, - attributes: { - class: '{{ (request()->input('status') == "Deleted") ? ' btn-danger' : '' }}', - title: '{{ (request()->input('status') == "Deleted") ? trans('general.list_all') : trans('general.deleted') }}', - - } + btnShowDeleted: { + text: '{{ (request()->input('status') == "Deleted") ? trans('general.list_all') : trans('general.deleted') }}', + icon: 'fa-solid fa-trash', + event () { + window.location.href = '{{ (request()->input('status') == "deleted") ? route('manufacturers.index') : route('manufacturers.index', ['status' => 'deleted']) }}'; }, + attributes: { + class: '{{ (request()->input('status') == "deleted") ? 'btn-selected text-danger' : '' }}', + title: '{{ (request()->input('status') == "deleted") ? trans('general.list_all') : trans('general.deleted') }}', + + } }, }); @endcan @@ -571,7 +572,7 @@ window.location.href = '{{ route('suppliers.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -591,7 +592,7 @@ window.location.href = '{{ route('departments.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -611,7 +612,7 @@ window.location.href = '{{ route('departments.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -631,7 +632,7 @@ window.location.href = '{{ route('maintenances.create', ['asset_id' => (isset($asset)) ? $asset->id :'' ]) }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('button.add_maintenance') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -651,7 +652,27 @@ window.location.href = '{{ route('categories.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', + title: '{{ trans('general.create') }}', + @if ($snipeSettings->shortcuts_enabled == 1) + accesskey: 'n' + @endif + } + }, + }); + @endcan + + @can('create', \App\Models\PredefinedKit::class) + // Custom Field table buttons + window.kitButtons = () => ({ + btnAdd: { + text: '{{ trans('general.create') }}', + icon: 'fa fa-plus', + event () { + window.location.href = '{{ route('kits.create') }}'; + }, + attributes: { + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -671,7 +692,7 @@ window.location.href = '{{ route('models.create') }}'; }, attributes: { - class: 'btn-info', + class: 'btn-warning', title: '{{ trans('general.create') }}', @if ($snipeSettings->shortcuts_enabled == 1) accesskey: 'n' @@ -685,7 +706,7 @@ window.location.href = '{{ (request()->input('status') == "deleted") ? route('models.index') : route('models.index', ['status' => 'deleted']) }}'; }, attributes: { - class: '{{ (request()->input('status') == "deleted") ? ' btn-danger' : '' }}', + class: '{{ (request()->input('status') == "deleted") ? ' btn-selected text-danger' : '' }}', title: '{{ (request()->input('status') == "deleted") ? trans('general.list_all') : trans('general.deleted') }}', } @@ -740,7 +761,7 @@ window.location.href = '{{ route('licenses.export', ['category_id' => (isset($category)) ? $category->id :'' ]) }}'; }, attributes: { - class: 'btn-primary', + class: 'btn-warning', title: '{{ trans('general.export_all_to_csv') }}', } }, @@ -1020,7 +1041,7 @@ function hardwareAuditFormatter(value, row) { - return '{{ trans('general.audit') }} '; + return '{{ trans('general.audit') }} '; } @@ -1053,7 +1074,7 @@ } if ((row.available_actions) && (row.available_actions.audit === true)) { - actions += '{{ trans('general.audit') }} '; + actions += '{{ trans('general.audit') }} '; } if ((row.available_actions) && (row.available_actions.update === true)) { @@ -1191,14 +1212,14 @@ // check that checkin is not disabled if (row.user_can_checkout === false) { - return '{{ trans('general.checkout') }}'; + return '{{ trans('general.checkout') }}'; } else if (row.disabled === true) { - return '{{ trans('general.checkout') }}'; + return '{{ trans('general.checkout') }}'; } else // The user is allowed to check the license seat out and it's available if ((row.available_actions.checkout === true) && (row.user_can_checkout === true) && (row.disabled === false)) { - return '{{ trans('general.checkout') }}'; + return '{{ trans('general.checkout') }}'; } } // We need a special formatter for license seats, since they don't work exactly the same @@ -1209,16 +1230,16 @@ return '{{ trans('general.checkin') }}'; } if (row.disabled) { - return '{{ trans('general.checkout') }}'; + return '{{ trans('general.checkout') }}'; } // The user is allowed to check the license seat out and it's available if ((row.available_actions.checkout === true) && (row.user_can_checkout === true) && ((!row.assigned_asset) && (!row.assigned_user))) { - return '{{ trans('general.checkout') }}'; + return '{{ trans('general.checkout') }}'; } // The user is allowed to check the license seat in and it's available if ((row.available_actions.checkin === true) && ((row.assigned_asset) || (row.assigned_user))) { - return '{{ trans('general.checkin') }}'; + return '{{ trans('general.checkin') }}'; } } @@ -1229,7 +1250,7 @@ // The user is allowed to check items out, AND the item is deployable if ((row.available_actions.checkout == true) && (row.user_can_checkout == true) && ((!row.asset_id) && (!row.assigned_to))) { - return '{{ trans('general.checkout') }}'; + return '{{ trans('general.checkout') }}'; // The user is allowed to check items out, but the item is not able to be checked out } else if (((row.user_can_checkout == false)) && (row.available_actions.checkout == true) && (!row.assigned_to)) { @@ -1237,17 +1258,17 @@ // We use slightly different language for assets versus other things, since they are the only // item that has a status label if (destination =='hardware') { - return '{{ trans('general.checkout') }}'; + return '{{ trans('general.checkout') }}'; } else { - return '{{ trans('general.checkout') }}'; + return '{{ trans('general.checkout') }}'; } // The user is allowed to check items in } else if (row.available_actions.checkin == true) { if (row.assigned_to) { - return '{{ trans('general.checkin') }}'; + return '{{ trans('general.checkin') }}'; } else if (row.assigned_pivot_id) { - return '{{ trans('general.checkin') }}'; + return '{{ trans('general.checkin') }}'; } } @@ -1603,7 +1624,7 @@ // This is users in the user accounts section for EULAs function downloadFormatter(value) { if (value) { - return ''; + return ''; } } @@ -1624,10 +1645,10 @@ return ''; } - var download_button = ''; - var download_button_disabled = ''; - var inline_button = ''; - var inline_button_disabled = ''; + var download_button = ''; + var download_button_disabled = ''; + var inline_button = ''; + var inline_button_disabled = ''; if (exists_on_disk === true) { if (inlinable === true) { @@ -1725,8 +1746,8 @@ .replace('%NOTE%', (row.note) ? row.note : '') .replace('%PANEL_CLASS%', (row.exists_on_disk === true) ? 'default' : 'danger') .replace('%FILE_EMBED%', embed_code) - .replace('%DOWNLOAD_BUTTON%', (row.exists_on_disk === true) ? ' ' : '') - .replace('%NEW_WINDOW_BUTTON%', (row.exists_on_disk === true) ? ' ' : '') + .replace('%DOWNLOAD_BUTTON%', (row.exists_on_disk === true) ? ' ' : '') + .replace('%NEW_WINDOW_BUTTON%', (row.exists_on_disk === true) ? ' ' : '') .replace('%DELETE_BUTTON%', (row.available_actions.delete === true) ? '{{ trans('general.delete') }}' : '{{ trans('general.delete') }}' diff --git a/resources/views/partials/forms/edit/category-select.blade.php b/resources/views/partials/forms/edit/category-select.blade.php index 51a5c81a66..db85cfd9b6 100644 --- a/resources/views/partials/forms/edit/category-select.blade.php +++ b/resources/views/partials/forms/edit/category-select.blade.php @@ -28,7 +28,7 @@ diff --git a/resources/views/partials/forms/edit/image-upload.blade.php b/resources/views/partials/forms/edit/image-upload.blade.php index c6fdffdd5d..140ef3e120 100644 --- a/resources/views/partials/forms/edit/image-upload.blade.php +++ b/resources/views/partials/forms/edit/image-upload.blade.php @@ -53,7 +53,7 @@ -