diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml index 405dc92134..ec2ef8b783 100644 --- a/.github/workflows/tests-sqlite.yml +++ b/.github/workflows/tests-sqlite.yml @@ -46,11 +46,13 @@ jobs: - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - - name: Generate key - run: php artisan key:generate - - - name: Directory Permissions - run: chmod -R 777 storage bootstrap/cache + - name: Setup Laravel + env: + DB_CONNECTION: sqlite_testing + run: | + php artisan key:generate + php artisan migrate --force + chmod -R 777 storage bootstrap/cache - name: Execute tests (Unit and Feature tests) via PHPUnit env: diff --git a/resources/lang/en-US/general.php b/resources/lang/en-US/general.php index f417db62c5..6c8c0f4afe 100644 --- a/resources/lang/en-US/general.php +++ b/resources/lang/en-US/general.php @@ -241,6 +241,8 @@ return [ 'requested_assets' => 'Requested Assets', 'requested_assets_menu' => 'Requested Assets', 'request_canceled' => 'Request Canceled', + 'request_item' => 'Request this item', + 'external_link_tooltip' => 'External link to', 'save' => 'Save', 'select_var' => 'Select :thing... ', // this will eventually replace all of our other selects 'select' => 'Select', @@ -398,8 +400,9 @@ return [ 'accessory_name' => 'Accessory Name:', 'clone_item' => 'Clone Item', 'checkout_tooltip' => 'Check this item out', - 'checkin_tooltip' => 'Check this item in', + 'checkin_tooltip' => 'Check this item in so that it is available for re-issue, re-imaging, etc', 'checkout_user_tooltip' => 'Check this item out to a user', + 'checkin_to_diff_location' => 'You can choose to check this asset in to a location other than this asset\'s default location of :default_location if one is set', 'maintenance_mode' => 'The service is temporarily unavailable for system updates. Please check back later.', 'maintenance_mode_title' => 'System Temporarily Unavailable', 'ldap_import' => 'User password should not be managed by LDAP. (This allows you to send forgotten password requests.)', @@ -501,6 +504,7 @@ return [ 'import_note' => 'Imported using csv importer', ], 'remove_customfield_association' => 'Remove this field from the fieldset. This will not delete the custom field, only this field\'s association with this fieldset.', + 'checked_out_to_fields' => 'Checked Out To Fields', 'percent_complete' => '% complete', 'uploading' => 'Uploading... ', 'upload_error' => 'Error uploading file. Please check that there are no empty rows and that no column names are duplicated.', diff --git a/resources/views/hardware/checkin.blade.php b/resources/views/hardware/checkin.blade.php index dd6237b1bd..c41ef474db 100755 --- a/resources/views/hardware/checkin.blade.php +++ b/resources/views/hardware/checkin.blade.php @@ -73,7 +73,7 @@ - @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id', 'help_text' => ($asset->defaultLoc) ? 'You can choose to check this asset in to a location other than the default location of '.$asset->defaultLoc->name.' if one is set.' : null, 'hide_location_radio' => true]) + @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id', 'help_text' => ($asset->defaultLoc) ? trans('general.checkin_to_diff_location', ['default_location' => $asset->defaultLoc->name]) : null, 'hide_location_radio' => true])
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php index 523d76b355..2b7ae31afc 100644 --- a/resources/views/layouts/default.blade.php +++ b/resources/views/layouts/default.blade.php @@ -738,7 +738,11 @@ dir="{{ in_array(app()->getLocale(),['ar-SA','fa-IR', 'he-IL']) ? 'rtl' : 'ltr' {{ trans('general.activity_report') }} - +
  • + + {{ trans('general.custom_report') }} + +
  • {{ trans('general.audit_report') }} @@ -768,11 +772,6 @@ dir="{{ in_array(app()->getLocale(),['ar-SA','fa-IR', 'he-IL']) ? 'rtl' : 'ltr' {{ trans('general.accessory_report') }}
  • -
  • - - {{ trans('general.custom_report') }} - -
  • @endcan diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 8b01ce7865..fc1f0bedcc 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -459,9 +459,9 @@ // 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') }}'; } } @@ -479,7 +479,7 @@ } else if (value.available_actions.cancel == true) { return '
    @csrf
    '; } else if (value.available_actions.request == true) { - return '
    @csrf
    '; + return '
    @csrf
    '; } } @@ -573,7 +573,7 @@ if (value) { if ((value.indexOf("{") === -1) || (value.indexOf("}") ===-1)) { - return ' ' + value + ''; + return ' ' + value + ''; } return value; } diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.php index 7a1f522e49..ebc212b5c7 100644 --- a/resources/views/reports/custom.blade.php +++ b/resources/views/reports/custom.blade.php @@ -189,7 +189,7 @@ -

    {{ trans('general.checked_out_to') }} {{ trans('general.fields') }}:

    +

    {{ trans('general.checked_out_to_fields') }}: