A free open source IT asset/license management system
Added missed translation strings, fixed the column width for the date selector (too small in certain languages)
Wächtler, Yannickf906dbd81e5d
diff --git a/resources/lang/en/general.php b/resources/lang/en/general.phpindex cd1d3b7d9c..c07a635c5c 100644--- a/resources/lang/en/general.php+++ b/resources/lang/en/general.php@@ -342,4 +342,8 @@'consumable_name' => 'Consumable Name:','accessory_information' => 'Accessory Information:','accessory_name' => 'Accessory Name:',+ 'clone_item' => 'Clone Item',+ 'checkout_tooltip' => 'Check this item out',+ 'checkin_tooltip' => 'Check this item in',+ 'checkout_user_tooltip' => 'Check this item out to a user',];diff --git a/resources/views/hardware/requested.blade.php b/resources/views/hardware/requested.blade.phpindex 901356e69c..03dfb3b4f0 100644--- a/resources/views/hardware/requested.blade.php+++ b/resources/views/hardware/requested.blade.php@@ -107,9 +107,9 @@<td>@if ($request->itemType() == "asset")@if ($request->requestable->assigned_to=='')- <a href="{{ url('/') }}/hardware/{{ $request->requestable->id }}/checkout" class="btn btn-sm bg-maroon" data-tooltip="true" title="Check this item out to a user">{{ trans('general.checkout') }}</a>+ <a href="{{ url('/') }}/hardware/{{ $request->requestable->id }}/checkout" class="btn btn-sm bg-maroon" data-tooltip="true" title="{{ trans('general.checkout_user_tooltip') }}">{{ trans('general.checkout') }}</a>@else- <a href="{{ url('/') }}/hardware/{{ $request->requestable->id }}/checkin" class="btn btn-sm bg-purple" data-tooltip="true" title="Check this itemi">{{ trans('general.checkin') }}</a>+ <a href="{{ url('/') }}/hardware/{{ $request->requestable->id }}/checkin" class="btn btn-sm bg-purple" data-tooltip="true" title="{{ trans('general.checkin_toolip') }}">{{ trans('general.checkin') }}</a>@endif@endifdiff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.phpindex d30d56c83d..a4d66c32ee 100644--- a/resources/views/partials/bootstrap-table.blade.php+++ b/resources/views/partials/bootstrap-table.blade.php@@ -231,7 +231,7 @@}if ((row.available_actions) && (row.available_actions.clone === true)) {- actions += '<a href="{{ url('/') }}/' + dest + '/' + row.id + '/clone" class="btn btn-sm btn-info" data-tooltip="true" title="Clone Item"><i class="far fa-clone" aria-hidden="true"></i><span class="sr-only">Clone</span></a> ';+ actions += '<a href="{{ url('/') }}/' + dest + '/' + row.id + '/clone" class="btn btn-sm btn-info" data-tooltip="true" title="{{ trans('general.clone_item') }}"><i class="far fa-clone" aria-hidden="true"></i><span class="sr-only">Clone</span></a> ';}if ((row.available_actions) && (row.available_actions.update === true)) {@@ -326,7 +326,7 @@function licenseSeatInOutFormatter(value, row) {// The user is allowed to check the license seat out and it's availableif ((row.available_actions.checkout == true) && (row.user_can_checkout == true) && ((!row.asset_id) && (!row.assigned_to))) {- return '<a href="{{ url('/') }}/licenses/' + row.license_id + '/checkout/'+row.id+'" class="btn btn-sm bg-maroon" data-toggle="tooltip" title="Check this item out">{{ trans('general.checkout') }}</a>';+ return '<a href="{{ url('/') }}/licenses/' + row.license_id + '/checkout/'+row.id+'" class="btn btn-sm bg-maroon" data-toggle="tooltip" title="{{ trans('general.checkout_tooltip') }}">{{ trans('general.checkout') }}</a>';} else {return '<a href="{{ url('/') }}/licenses/' + row.id + '/checkin" class="btn btn-sm bg-purple" data-toggle="tooltip" title="Check in this license seat.">{{ trans('general.checkin') }}</a>';}@@ -338,7 +338,7 @@// The user is allowed to check items out, AND the item is deployableif ((row.available_actions.checkout == true) && (row.user_can_checkout == true) && ((!row.asset_id) && (!row.assigned_to))) {- return '<a href="{{ url('/') }}/' + destination + '/' + row.id + '/checkout" class="btn btn-sm bg-maroon" data-toggle="tooltip" title="Check this item out">{{ trans('general.checkout') }}</a>';+ return '<a href="{{ url('/') }}/' + destination + '/' + row.id + '/checkout" class="btn btn-sm bg-maroon" data-toggle="tooltip" title="{{ trans('general.checkout_tooltip') }}">{{ trans('general.checkout') }}</a>';// The user is allowed to check items out, but the item is not deployable} else if (((row.user_can_checkout == false)) && (row.available_actions.checkout == true) && (!row.assigned_to)) {diff --git a/resources/views/partials/forms/edit/purchase_date.blade.php b/resources/views/partials/forms/edit/purchase_date.blade.phpindex c8c4124125..c7ed69c94b 100644--- a/resources/views/partials/forms/edit/purchase_date.blade.php+++ b/resources/views/partials/forms/edit/purchase_date.blade.php@@ -1,7 +1,7 @@<!-- Purchase Date --><div class="form-group {{ $errors->has('purchase_date') ? ' has-error' : '' }}"><label for="purchase_date" class="col-md-3 control-label">{{ trans('general.purchase_date') }}</label>- <div class="input-group col-md-3">+ <div class="input-group col-md-4"><div class="input-group date" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-autoclose="true"><input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="purchase_date" id="purchase_date" value="{{ old('purchase_date', ($item->purchase_date) ? $item->purchase_date->format('Y-m-d') : '') }}"><span class="input-group-addon"><i class="fas fa-calendar" aria-hidden="true"></i></span>diff --git a/resources/views/partials/more-info.blade.php b/resources/views/partials/more-info.blade.phpindex b45cbf3179..2f6c08b058 100644--- a/resources/views/partials/more-info.blade.php+++ b/resources/views/partials/more-info.blade.php@@ -1,3 +1,3 @@<a style="padding-left: 10px; font-size: 18px;" class="text-dark-gray" data-trigger="focus" tabindex="0" role="button" data-toggle="popover" title="More Info" data-placement="right" data-html="true" data-content="{{ (isset($helpText)) ? $helpText : 'Help Info Missing' }}">- <i class="far fa-life-ring" aria-hidden="true"><span class="sr-only">{{ trans('general.moreinfo')) }}</span></i>+ <i class="far fa-life-ring" aria-hidden="true"><span class="sr-only">{{ trans('general.moreinfo') }}</span></i></a>