mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
1689c7f9b6
|
@ -354,7 +354,7 @@ class Helper
|
||||||
|
|
||||||
if ($index >= $total_colors) {
|
if ($index >= $total_colors) {
|
||||||
|
|
||||||
\Log::error('Status label count is '.$index.' and exceeds the allowed count of 266.');
|
\Log::info('Status label count is '.$index.' and exceeds the allowed count of 266.');
|
||||||
//patch fix for array key overflow (color count starts at 1, array starts at 0)
|
//patch fix for array key overflow (color count starts at 1, array starts at 0)
|
||||||
$index = $index - $total_colors - 1;
|
$index = $index - $total_colors - 1;
|
||||||
|
|
||||||
|
|
|
@ -156,6 +156,7 @@ return [
|
||||||
'image_filetypes_help' => 'Accepted filetypes are jpg, webp, png, gif, and svg. Max upload size allowed is :size.',
|
'image_filetypes_help' => 'Accepted filetypes are jpg, webp, png, gif, and svg. Max upload size allowed is :size.',
|
||||||
'unaccepted_image_type' => 'This image file was not readable. Accepted filetypes are jpg, webp, png, gif, and svg. The mimetype of this file is: :mimetype.',
|
'unaccepted_image_type' => 'This image file was not readable. Accepted filetypes are jpg, webp, png, gif, and svg. The mimetype of this file is: :mimetype.',
|
||||||
'import' => 'Import',
|
'import' => 'Import',
|
||||||
|
'import_this_file' => 'Map fields and process this file',
|
||||||
'importing' => 'Importing',
|
'importing' => 'Importing',
|
||||||
'importing_help' => 'You can import assets, accessories, licenses, components, consumables, and users via CSV file. <br><br>The CSV should be comma-delimited and formatted with headers that match the ones in the <a href="https://snipe-it.readme.io/docs/importing" target="_new">sample CSVs in the documentation</a>.',
|
'importing_help' => 'You can import assets, accessories, licenses, components, consumables, and users via CSV file. <br><br>The CSV should be comma-delimited and formatted with headers that match the ones in the <a href="https://snipe-it.readme.io/docs/importing" target="_new">sample CSVs in the documentation</a>.',
|
||||||
'import-history' => 'Import History',
|
'import-history' => 'Import History',
|
||||||
|
|
|
@ -624,7 +624,7 @@
|
||||||
@can('import')
|
@can('import')
|
||||||
<li{!! (Request::is('import/*') ? ' class="active"' : '') !!}>
|
<li{!! (Request::is('import/*') ? ' class="active"' : '') !!}>
|
||||||
<a href="{{ route('imports.index') }}">
|
<a href="{{ route('imports.index') }}">
|
||||||
<i class="fas fa-cloud-download-alt fa-fw" aria-hidden="true"></i>
|
<i class="fas fa-cloud-upload-alt fa-fw" aria-hidden="true"></i>
|
||||||
<span>{{ trans('general.import') }}</span>
|
<span>{{ trans('general.import') }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -129,8 +129,8 @@
|
||||||
<td class="col-md-3">{{ Helper::getFormattedDateObject($currentFile->created_at, 'datetime', false) }}</td>
|
<td class="col-md-3">{{ Helper::getFormattedDateObject($currentFile->created_at, 'datetime', false) }}</td>
|
||||||
<td class="col-md-1">{{ Helper::formatFilesizeUnits($currentFile->filesize) }}</td>
|
<td class="col-md-1">{{ Helper::formatFilesizeUnits($currentFile->filesize) }}</td>
|
||||||
<td class="col-md-1 text-right" style="white-space: nowrap;">
|
<td class="col-md-1 text-right" style="white-space: nowrap;">
|
||||||
<button class="btn btn-sm btn-info" wire:click="selectFile({{ $currentFile->id }})">
|
<button class="btn btn-sm btn-info" wire:click="selectFile({{ $currentFile->id }})" data-tooltip="true" title="{{ trans('general.import_this_file') }}">
|
||||||
<i class="fas fa-retweet fa-fw" aria-hidden="true"></i>
|
<i class="fa-solid fa-list-check" aria-hidden="true"></i>
|
||||||
<span class="sr-only">{{ trans('general.import') }}</span>
|
<span class="sr-only">{{ trans('general.import') }}</span>
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-sm btn-danger" wire:click="destroy({{ $currentFile->id }})">
|
<button class="btn btn-sm btn-danger" wire:click="destroy({{ $currentFile->id }})">
|
||||||
|
|
Loading…
Reference in a new issue