diff --git a/app/Http/Controllers/Accessories/AccessoriesFilesController.php b/app/Http/Controllers/Accessories/AccessoriesFilesController.php index c251166ce2..9dbb16d83a 100644 --- a/app/Http/Controllers/Accessories/AccessoriesFilesController.php +++ b/app/Http/Controllers/Accessories/AccessoriesFilesController.php @@ -55,11 +55,11 @@ class AccessoriesFilesController extends Controller } - return redirect()->route('accessories.show', $accessory->id)->with('error', trans('general.no_files_uploaded')); + return redirect()->route('accessories.show', $accessory->id)->withFragment('files')->with('error', trans('general.no_files_uploaded')); } // Prepare the error message - return redirect()->route('accessories.index') - ->with('error', trans('general.file_does_not_exist')); + return redirect()->route('accessories.index')->with('error', trans('admin/accessories/message.does_not_exist')); + } /** @@ -72,29 +72,27 @@ class AccessoriesFilesController extends Controller */ public function destroy($accessoryId = null, $fileId = null) : RedirectResponse { - $accessory = Accessory::find($accessoryId); - - // the asset is valid - if (isset($accessory->id)) { + if ($accessory = Accessory::find($accessoryId)) { $this->authorize('update', $accessory); - $log = Actionlog::find($fileId); - // Remove the file if one exists - if (Storage::exists('accessories/'.$log->filename)) { - try { - Storage::delete('accessories/'.$log->filename); - } catch (\Exception $e) { - Log::debug($e); + if ($log = Actionlog::find($fileId)) { + + if (Storage::exists('private_uploads/accessories/'.$log->filename)) { + try { + Storage::delete('private_uploads/accessories/' . $log->filename); + $log->delete(); + return redirect()->back()->withFragment('files')->with('success', trans('admin/hardware/message.deletefile.success')); + } catch (\Exception $e) { + Log::debug($e); + return redirect()->route('accessories.index')->with('error', trans('general.file_does_not_exist')); + } } + } - - $log->delete(); - - return redirect()->back()->withFragment('files')->with('success', trans('admin/hardware/message.deletefile.success')); + return redirect()->route('accessories.show', ['accessory' => $accessory])->withFragment('files')->with('error', trans('general.log_record_not_found')); } - // Redirect to the licence management page - return redirect()->route('accessories.index')->with('error', trans('general.file_does_not_exist')); + return redirect()->route('accessories.index')->with('error', trans('admin/accessories/message.does_not_exist')); } /** @@ -124,10 +122,11 @@ class AccessoriesFilesController extends Controller } } - return redirect()->route('accessories.show', ['accessory' => $accessory])->with('error', trans('general.log_record_not_found')); + return redirect()->route('accessories.show', ['accessory' => $accessory])->withFragment('files')->with('error', trans('general.log_record_not_found')); } - return redirect()->route('accessories.index')->with('error', trans('general.file_not_found')); + return redirect()->route('accessories.index')->with('error', trans('admin/accessories/message.does_not_exist')); + } } diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index 6fd27ed03c..8f3b1f054b 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -535,7 +535,7 @@ class AssetsController extends Controller { $settings = Setting::getSettings(); - if ($settings->qr_code == '1') { + if (($settings->qr_code === '1') && ($settings->label2_2d_type !== 'none')) { $asset = Asset::withTrashed()->find($assetId); if ($asset) { $size = Helper::barcodeDimensions($settings->label2_2d_type); diff --git a/app/Http/Requests/SettingsSamlRequest.php b/app/Http/Requests/SettingsSamlRequest.php index 8f02d64f03..2ab876141a 100644 --- a/app/Http/Requests/SettingsSamlRequest.php +++ b/app/Http/Requests/SettingsSamlRequest.php @@ -62,7 +62,7 @@ class SettingsSamlRequest extends FormRequest $custom_privateKey = ''; $custom_x509certNew = ''; if (! empty($this->input('saml_custom_settings'))) { - $req_custom_settings = preg_split('/\r\n|\r|\n/', $this->input('saml_custom_settings')); + $req_custom_settings = preg_split('/\r\n|\r|\n/', $this->input('saml_custom_settings', '')); $custom_settings = []; foreach ($req_custom_settings as $custom_setting) { diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.php index b297a4f720..0811e9ee57 100644 --- a/app/Listeners/CheckoutableListener.php +++ b/app/Listeners/CheckoutableListener.php @@ -106,7 +106,13 @@ class CheckoutableListener } } } catch (ClientException $e) { - Log::error("ClientException caught during checkin notification: " . $e->getMessage()); + if (strpos($e->getMessage(), 'channel_not_found') !== false) { + Log::warning(Setting::getSettings()->webhook_selected." notification failed: " . $e->getMessage()); + return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) .trans('admin/settings/message.webhook.webhook_channel_not_found') ); + } + else { + Log::error("ClientException caught during checkin notification: " . $e->getMessage()); + } return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) .trans('admin/settings/message.webhook.webhook_fail') ); } catch (Exception $e) { Log::error(ucfirst(Setting::getSettings()->webhook_selected) . ' webhook notification failed:', [ @@ -156,7 +162,7 @@ class CheckoutableListener $ccEmails = array_filter($adminCcEmailsArray); $mailable = $this->getCheckinMailType($event); $notifiable = $this->getNotifiables($event); - if ($event->checkedOutTo->locale){ + if ($event->checkedOutTo?->locale) { $mailable->locale($event->checkedOutTo->locale); } // Send email notifications @@ -196,8 +202,14 @@ class CheckoutableListener } } } catch (ClientException $e) { - Log::error("ClientException caught during checkin notification: " . $e->getMessage()); - return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) .trans('admin/settings/message.webhook.webhook_fail')); + if (strpos($e->getMessage(), 'channel_not_found') !== false) { + Log::warning(Setting::getSettings()->webhook_selected." notification failed: " . $e->getMessage()); + return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) .trans('admin/settings/message.webhook.webhook_channel_not_found') ); + } + else { + Log::error("ClientException caught during checkin notification: " . $e->getMessage()); + return redirect()->back()->with('warning', ucfirst(Setting::getSettings()->webhook_selected) . trans('admin/settings/message.webhook.webhook_fail')); + } } catch (Exception $e) { Log::error(ucfirst(Setting::getSettings()->webhook_selected) . ' webhook notification failed:', [ 'error' => $e->getMessage(), diff --git a/app/Models/CustomField.php b/app/Models/CustomField.php index dfa4971367..81eff9b4cd 100644 --- a/app/Models/CustomField.php +++ b/app/Models/CustomField.php @@ -307,7 +307,7 @@ class CustomField extends Model public function formatFieldValuesAsArray() { $result = []; - $arr = preg_split('/\\r\\n|\\r|\\n/', $this->field_values); + $arr = preg_split('/\\r\\n|\\r|\\n/', $this->field_values ?? ''); if (($this->element != 'checkbox') && ($this->element != 'radio')) { $result[''] = 'Select '.strtolower($this->format); diff --git a/app/Notifications/CheckinAssetNotification.php b/app/Notifications/CheckinAssetNotification.php index fa4780c1fd..c6828ef8e9 100644 --- a/app/Notifications/CheckinAssetNotification.php +++ b/app/Notifications/CheckinAssetNotification.php @@ -79,7 +79,7 @@ class CheckinAssetNotification extends Notification $fields = [ trans('general.administrator') => '<'.$admin->present()->viewUrl().'|'.$admin->present()->fullName().'>', - trans('general.status') => $item->assetstatus->name, + trans('general.status') => $item->assetstatus?->name, trans('general.location') => ($item->location) ? $item->location->name : '', ]; @@ -106,9 +106,9 @@ class CheckinAssetNotification extends Notification ->title(trans('mail.Asset_Checkin_Notification')) ->addStartGroupToSection('activityText') ->fact(htmlspecialchars_decode($item->present()->name), '', 'activityText') - ->fact(trans('mail.checked_into'), $item->location->name ? $item->location->name : '') + ->fact(trans('mail.checked_into'), ($item->location) ? $item->location->name : '') ->fact(trans('mail.Asset_Checkin_Notification') . " by ", $admin->present()->fullName()) - ->fact(trans('admin/hardware/form.status'), $item->assetstatus->name) + ->fact(trans('admin/hardware/form.status'), $item->assetstatus?->name) ->fact(trans('mail.notes'), $note ?: ''); } @@ -116,9 +116,9 @@ class CheckinAssetNotification extends Notification $message = trans('mail.Asset_Checkin_Notification'); $details = [ trans('mail.asset') => htmlspecialchars_decode($item->present()->name), - trans('mail.checked_into') => $item->location->name ? $item->location->name : '', + trans('mail.checked_into') => ($item->location) ? $item->location->name : '', trans('mail.Asset_Checkin_Notification')." by " => $admin->present()->fullName(), - trans('admin/hardware/form.status') => $item->assetstatus->name, + trans('admin/hardware/form.status') => $item->assetstatus?->name, trans('mail.notes') => $note ?: '', ]; @@ -142,8 +142,8 @@ class CheckinAssetNotification extends Notification Section::create( KeyValue::create( trans('mail.checked_into') ?: '', - $item->location->name ? $item->location->name : '', - trans('admin/hardware/form.status').": ".$item->assetstatus->name, + ($item->location) ? $item->location->name : '', + trans('admin/hardware/form.status').": ".$item->assetstatus?->name, ) ->onClick(route('hardware.show', $item->id)) ) diff --git a/app/Services/Saml.php b/app/Services/Saml.php index 860ec76171..222c2c2ea3 100644 --- a/app/Services/Saml.php +++ b/app/Services/Saml.php @@ -209,7 +209,7 @@ class Saml } } - $custom_settings = preg_split('/\r\n|\r|\n/', $setting->saml_custom_settings); + $custom_settings = preg_split('/\r\n|\r|\n/', $setting->saml_custom_settings ?? ''); if ($custom_settings) { foreach ($custom_settings as $custom_setting) { $split = explode('=', $custom_setting, 2); diff --git a/app/View/Label.php b/app/View/Label.php index bafe97ffef..22dbe6d26e 100644 --- a/app/View/Label.php +++ b/app/View/Label.php @@ -116,12 +116,9 @@ class Label implements View } } - if ($template->getSupport2DBarcode()) { + if ($template->getSupport2DBarcode()) { $barcode2DType = $settings->label2_2d_type; - $barcode2DType = ($barcode2DType == 'default') ? - $settings->barcode_type : - $barcode2DType; - if (($barcode2DType != 'none') && (!is_null($barcode2DType))) { + if (($barcode2DType != 'none') && (!is_null($barcode2DType))) { switch ($settings->label2_2d_target) { case 'ht_tag': $barcode2DTarget = route('ht/assetTag', $asset->asset_tag); diff --git a/package-lock.json b/package-lock.json index 7de7aaea76..ed97eb48c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "less-loader": "^6.0", "list.js": "^1.5.0", "morris.js": "github:morrisjs/morris.js", - "papaparse": "5.4.1", + "papaparse": "5.5.1", "select2": "4.0.13", "sheetjs": "^2.0.0", "signature_pad": "^4.2.0", @@ -8368,9 +8368,9 @@ "license": "(MIT AND Zlib)" }, "node_modules/papaparse": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.4.1.tgz", - "integrity": "sha512-HipMsgJkZu8br23pW15uvo6sib6wne/4woLZPlFf3rpDyMe9ywEXUsuD7+6K9PRkJlVT51j/sCOYDKGGS3ZJrw==" + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.5.1.tgz", + "integrity": "sha512-EuEKUhyxrHVozD7g3/ztsJn6qaKse8RPfR6buNB2dMJvdtXNhcw8jccVi/LxNEY3HVrV6GO6Z4OoeCG9Iy9wpA==" }, "node_modules/param-case": { "version": "3.0.4", diff --git a/package.json b/package.json index e86bf90660..db5f72189d 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "less-loader": "^6.0", "list.js": "^1.5.0", "morris.js": "github:morrisjs/morris.js", - "papaparse": "5.4.1", + "papaparse": "5.5.1", "select2": "4.0.13", "sheetjs": "^2.0.0", "signature_pad": "^4.2.0", diff --git a/resources/lang/en-US/admin/settings/message.php b/resources/lang/en-US/admin/settings/message.php index 98a8893937..a256402c68 100644 --- a/resources/lang/en-US/admin/settings/message.php +++ b/resources/lang/en-US/admin/settings/message.php @@ -46,5 +46,6 @@ return [ 'error_redirect' => 'ERROR: 301/302 :endpoint returns a redirect. For security reasons, we don’t follow redirects. Please use the actual endpoint.', 'error_misc' => 'Something went wrong. :( ', 'webhook_fail' => ' webhook notification failed: Check to make sure the URL is still valid.', + 'webhook_channel_not_found' => ' webhook channel not found.' ] ]; diff --git a/resources/views/account/profile.blade.php b/resources/views/account/profile.blade.php index d27367192a..b745c19360 100755 --- a/resources/views/account/profile.blade.php +++ b/resources/views/account/profile.blade.php @@ -128,7 +128,7 @@
{!! $errors->first('image_delete', ':message') !!} @@ -150,13 +150,23 @@ @if ($snipeSettings->two_factor_enabled=='1')
- @can('self.two_factor') -
@@ -66,7 +66,7 @@
@@ -85,7 +85,7 @@
@@ -103,7 +103,7 @@
@@ -112,7 +112,7 @@
@@ -140,15 +140,15 @@
@@ -215,7 +215,7 @@
diff --git a/resources/views/hardware/quickscan-checkin.blade.php b/resources/views/hardware/quickscan-checkin.blade.php index de892399cc..0fca07307a 100644 --- a/resources/views/hardware/quickscan-checkin.blade.php +++ b/resources/views/hardware/quickscan-checkin.blade.php @@ -31,7 +31,7 @@
- {{ Form::label('asset_tag', trans('general.asset_tag'), array('class' => 'col-md-3 control-label', 'id' => 'checkin_tag')) }} +
@@ -57,7 +57,7 @@
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('note', '') !!} diff --git a/resources/views/hardware/quickscan.blade.php b/resources/views/hardware/quickscan.blade.php index 867eeaa2b0..9daf656507 100644 --- a/resources/views/hardware/quickscan.blade.php +++ b/resources/views/hardware/quickscan.blade.php @@ -16,7 +16,7 @@ } - +
{{ Form::open(['method' => 'POST', 'class' => 'form-horizontal', 'role' => 'form', 'id' => 'audit-form' ]) }} @@ -29,7 +29,7 @@
- {{ Form::label('asset_tag', trans('general.asset_tag'), array('class' => 'col-md-3 control-label', 'id' => 'audit_tag')) }} +
@@ -60,7 +60,7 @@
- {{ Form::label('next_audit_date', trans('general.next_audit_date'), array('class' => 'col-md-3 control-label')) }} +
@@ -73,7 +73,7 @@
- {{ Form::label('note', trans('admin/hardware/form.notes'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('note', '') !!} @@ -101,7 +101,7 @@

{{ trans('general.bulkaudit_status') }} (0 {{ trans('general.assets_audited') }})

- + @@ -158,7 +158,7 @@ var audio = new Audio('{{ config('app.url') }}/sounds/success.mp3'); audio.play() @endif - + incrementOnSuccess(); } else { handleAuditFail(data); diff --git a/resources/views/livewire/slack-settings-form.blade.php b/resources/views/livewire/slack-settings-form.blade.php index 76b3987229..48e0fb72ad 100644 --- a/resources/views/livewire/slack-settings-form.blade.php +++ b/resources/views/livewire/slack-settings-form.blade.php @@ -83,7 +83,7 @@
- {{ Form::label('webhook_endpoint', trans('admin/settings/general.webhook_endpoint',['app' => $webhook_name ])) }} +
@@ -100,7 +100,7 @@ @if($webhook_selected != 'microsoft' && $webhook_selected!= 'google')
- {{ Form::label('webhook_channel', trans('admin/settings/general.webhook_channel',['app' => $webhook_name ])) }} +
@@ -118,7 +118,7 @@ @if($webhook_selected != 'microsoft' && $webhook_selected != 'google')
- {{ Form::label('webhook_botname', trans('admin/settings/general.webhook_botname',['app' => $webhook_name ])) }} +
diff --git a/resources/views/locations/print.blade.php b/resources/views/locations/print.blade.php index 9f54978ff5..a047f02279 100644 --- a/resources/views/locations/print.blade.php +++ b/resources/views/locations/print.blade.php @@ -126,7 +126,7 @@ @foreach ($assets as $asset) @php - if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus->archived == 1){ + if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus?->archived == 1){ continue; } @endphp diff --git a/resources/views/models/bulk-edit.blade.php b/resources/views/models/bulk-edit.blade.php index 8a053b048f..7a283fbba6 100644 --- a/resources/views/models/bulk-edit.blade.php +++ b/resources/views/models/bulk-edit.blade.php @@ -84,15 +84,15 @@
diff --git a/resources/views/partials/forms/checkout-selector.blade.php b/resources/views/partials/forms/checkout-selector.blade.php index 268089a7d2..4fb4ccbd8c 100644 --- a/resources/views/partials/forms/checkout-selector.blade.php +++ b/resources/views/partials/forms/checkout-selector.blade.php @@ -1,5 +1,5 @@
- {{ Form::label('checkout_to_type', trans('admin/hardware/form.checkout_to'), array('class' => 'col-md-3 control-label')) }} +
@if ((isset($user_select)) && ($user_select!='false')) diff --git a/resources/views/partials/forms/edit/accessory-select.blade.php b/resources/views/partials/forms/edit/accessory-select.blade.php index d34b6b2fe0..e047d16d2f 100644 --- a/resources/views/partials/forms/edit/accessory-select.blade.php +++ b/resources/views/partials/forms/edit/accessory-select.blade.php @@ -1,6 +1,6 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('address', '') !!} @@ -15,7 +15,7 @@
- {{ Form::label('city', trans('general.city'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('city', '') !!} @@ -23,7 +23,7 @@
- {{ Form::label('state', trans('general.state'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('state', '') !!} @@ -32,7 +32,7 @@
- {{ Form::label('country', trans('general.country'), array('class' => 'col-md-3 control-label')) }} +
{!! Form::countries('country', old('country', $item->country), 'select2') !!}

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

@@ -41,7 +41,7 @@
- {{ Form::label('zip', trans('general.zip'), array('class' => 'col-md-3 control-label', 'maxlength'=>'10')) }} +
{!! $errors->first('zip', '') !!} diff --git a/resources/views/partials/forms/edit/asset-select.blade.php b/resources/views/partials/forms/edit/asset-select.blade.php index 9867a8e552..6a8c729576 100644 --- a/resources/views/partials/forms/edit/asset-select.blade.php +++ b/resources/views/partials/forms/edit/asset-select.blade.php @@ -1,7 +1,7 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/company.blade.php b/resources/views/partials/forms/edit/company.blade.php index 22cb623584..767bdeb9f4 100644 --- a/resources/views/partials/forms/edit/company.blade.php +++ b/resources/views/partials/forms/edit/company.blade.php @@ -1,7 +1,7 @@ @if (\App\Models\Company::isCurrentUserAuthorized())
- {{ Form::label('company_id', trans('general.company'), array('class' => 'col-md-3 control-label', 'for' => 'company_id')) }} +
{{ Form::select('company_id', $company_list , old('company_id', $item->company_id), array('class'=>'select2', 'style'=>'width:100%', 'required' => Helper::checkIfRequired($item, 'company_id') ? true : '')) }} diff --git a/resources/views/partials/forms/edit/consumable-select.blade.php b/resources/views/partials/forms/edit/consumable-select.blade.php index d2d084d0b4..ccc8030a77 100644 --- a/resources/views/partials/forms/edit/consumable-select.blade.php +++ b/resources/views/partials/forms/edit/consumable-select.blade.php @@ -1,6 +1,6 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/department-select.blade.php b/resources/views/partials/forms/edit/department-select.blade.php index f0fc16dd6b..0648f991da 100644 --- a/resources/views/partials/forms/edit/department-select.blade.php +++ b/resources/views/partials/forms/edit/department-select.blade.php @@ -1,6 +1,6 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('fax', '') !!}
-
\ No newline at end of file +
diff --git a/resources/views/partials/forms/edit/kit-select.blade.php b/resources/views/partials/forms/edit/kit-select.blade.php index d8c6ba1013..cd1801f163 100644 --- a/resources/views/partials/forms/edit/kit-select.blade.php +++ b/resources/views/partials/forms/edit/kit-select.blade.php @@ -1,6 +1,6 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/location-profile-select.blade.php b/resources/views/partials/forms/edit/location-profile-select.blade.php index 14dc4793a5..f3db9ad9b7 100644 --- a/resources/views/partials/forms/edit/location-profile-select.blade.php +++ b/resources/views/partials/forms/edit/location-profile-select.blade.php @@ -1,7 +1,7 @@
- {{ Form::label('location_id', $translated_name, array('class' => 'col-md-3 control-label')) }} +
@isset($selected) diff --git a/resources/views/partials/forms/edit/manufacturer-select.blade.php b/resources/views/partials/forms/edit/manufacturer-select.blade.php index c8cafddf81..44e831fd51 100644 --- a/resources/views/partials/forms/edit/manufacturer-select.blade.php +++ b/resources/views/partials/forms/edit/manufacturer-select.blade.php @@ -1,7 +1,7 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/phone.blade.php b/resources/views/partials/forms/edit/phone.blade.php index 334bd22950..af6ad8388e 100644 --- a/resources/views/partials/forms/edit/phone.blade.php +++ b/resources/views/partials/forms/edit/phone.blade.php @@ -1,5 +1,5 @@
- {{ Form::label('phone', trans('admin/suppliers/table.phone'), array('class' => 'col-md-3 control-label')) }} +
{!! $errors->first('phone', '') !!} diff --git a/resources/views/partials/forms/edit/status-select.blade.php b/resources/views/partials/forms/edit/status-select.blade.php index ae4a4f2d13..bd1fb50140 100644 --- a/resources/views/partials/forms/edit/status-select.blade.php +++ b/resources/views/partials/forms/edit/status-select.blade.php @@ -1,7 +1,7 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
diff --git a/resources/views/partials/forms/edit/user-select.blade.php b/resources/views/partials/forms/edit/user-select.blade.php index 629e94239e..e73d09def5 100644 --- a/resources/views/partials/forms/edit/user-select.blade.php +++ b/resources/views/partials/forms/edit/user-select.blade.php @@ -1,6 +1,6 @@
- {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} +
radioValue('deleted_assets', 'exclude_deleted', true)) + aria-label="deleted_assets" + > + {{ trans('general.exclude_deleted') }}
diff --git a/resources/views/settings/alerts.blade.php b/resources/views/settings/alerts.blade.php index c5d5c9e0e1..3e7eb2ec3b 100644 --- a/resources/views/settings/alerts.blade.php +++ b/resources/views/settings/alerts.blade.php @@ -66,7 +66,7 @@
- {{ Form::label('alert_email', trans('admin/settings/general.alert_email')) }} +
@@ -80,7 +80,7 @@
- {{ Form::label('admin_cc_email', trans('admin/settings/general.admin_cc_email')) }} +
@@ -95,7 +95,7 @@
- {{ Form::label('alert_interval', trans('admin/settings/general.alert_interval')) }} +
@@ -106,7 +106,7 @@
- {{ Form::label('alert_threshold', trans('admin/settings/general.alert_inv_threshold')) }} +
@@ -118,7 +118,7 @@
- {{ Form::label('audit_interval', trans('admin/settings/general.audit_interval')) }} +
@@ -133,7 +133,7 @@
- {{ Form::label('audit_warning_days', trans('admin/settings/general.audit_warning_days')) }} +
@@ -148,7 +148,7 @@
- {{ Form::label('due_checkin_days', trans('admin/settings/general.due_checkin_days')) }} +
diff --git a/resources/views/settings/asset_tags.blade.php b/resources/views/settings/asset_tags.blade.php index 621306724e..2f18cdfd57 100644 --- a/resources/views/settings/asset_tags.blade.php +++ b/resources/views/settings/asset_tags.blade.php @@ -55,7 +55,7 @@
- {{ Form::label('next_auto_tag_base', trans('admin/settings/general.next_auto_tag_base')) }} +
@@ -67,7 +67,7 @@
- {{ Form::label('auto_increment_prefix', trans('admin/settings/general.auto_increment_prefix')) }} +
@if ($setting->auto_increment_assets == 1) @@ -82,7 +82,7 @@
- {{ Form::label('zerofill_count', trans('admin/settings/general.zerofill_count')) }} +
diff --git a/resources/views/settings/backups.blade.php b/resources/views/settings/backups.blade.php index 6313a6e404..a5d06738bf 100644 --- a/resources/views/settings/backups.blade.php +++ b/resources/views/settings/backups.blade.php @@ -12,7 +12,7 @@
- {{ Form::hidden('_token', csrf_token()) }} + @csrf diff --git a/resources/views/settings/branding.blade.php b/resources/views/settings/branding.blade.php index ab1c6e5e43..12f29ceec4 100644 --- a/resources/views/settings/branding.blade.php +++ b/resources/views/settings/branding.blade.php @@ -45,7 +45,7 @@
- {{ Form::label('site_name', trans('admin/settings/general.site_name')) }} +
@if (config('app.lock_passwords')===true) @@ -63,7 +63,7 @@
- {{ Form::label('brand', trans('admin/settings/general.web_brand')) }} +
{!! Form::select('brand', array('1'=>'Text','2'=>'Logo','3'=>'Logo + Text'), old('brand', $setting->brand), array('class' => 'form-control select2', 'style'=>'width: 150px ;')) !!} @@ -187,7 +187,7 @@
- {{ Form::label('header_color', trans('admin/settings/general.header_color')) }} +
@@ -203,7 +203,7 @@
- {{ Form::label('skin', trans('general.skin')) }} +
{!! Form::skin('skin', old('skin', $setting->skin), 'select2') !!} @@ -228,7 +228,7 @@
- {{ Form::label('custom_css', trans('admin/settings/general.custom_css')) }} +
@if (config('app.lock_passwords')===true) @@ -247,7 +247,7 @@
- {{ Form::label('support_footer', trans('admin/settings/general.support_footer')) }} +
@if (config('app.lock_passwords')===true) @@ -266,7 +266,7 @@
- {{ Form::label('version_footer', trans('admin/settings/general.version_footer')) }} +
@if (config('app.lock_passwords')===true) @@ -284,7 +284,7 @@
- {{ Form::label('footer_text', trans('admin/settings/general.footer_text')) }} +
@if (config('app.lock_passwords')===true) diff --git a/resources/views/settings/general.blade.php b/resources/views/settings/general.blade.php index b8a32f8685..164c76c938 100644 --- a/resources/views/settings/general.blade.php +++ b/resources/views/settings/general.blade.php @@ -77,7 +77,7 @@
- {{ Form::label('email_domain', trans('general.email_domain')) }} +
@@ -90,7 +90,7 @@
- {{ Form::label('email_format', trans('general.email_format')) }} +
{!! Form::username_format('email_format', old('email_format', $setting->email_format), 'select2') !!} @@ -101,7 +101,7 @@
- {{ Form::label('username_format', trans('general.username_format')) }} +
{!! Form::username_format('username_format', old('username_format', $setting->username_format), 'select2') !!} @@ -182,7 +182,7 @@
- {{ Form::label('per_page', trans('admin/settings/general.per_page')) }} +
@@ -193,7 +193,7 @@
- {{ Form::label('thumbnail_max_h', trans('admin/settings/general.thumbnail_max_h')) }} +
@@ -205,7 +205,7 @@
- {{ Form::label('default_eula_text', trans('admin/settings/general.default_eula_text')) }} +
{{ Form::textarea('default_eula_text', old('default_eula_text', $setting->default_eula_text), array('class' => 'form-control','placeholder' => 'Add your default EULA text')) }} @@ -236,7 +236,7 @@
- {{ Form::label('login_note', trans('admin/settings/general.login_note')) }} +
@if (config('app.lock_passwords')) @@ -255,7 +255,7 @@
- {{ Form::label('login_note', 'Test Mail') }} +
@@ -278,7 +278,7 @@
- {{ Form::label('dashboard_message', trans('admin/settings/general.dashboard_message')) }} +
@if (config('app.lock_passwords')) @@ -302,8 +302,7 @@
- {{ Form::label('show_archived_in_list', - trans('admin/settings/general.show_archived_in_list')) }} +
@@ -318,8 +317,7 @@
- {{ Form::label('show_assigned_assets', - trans('admin/settings/general.show_assigned_assets')) }} +