mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
41b0756286
|
@ -196,7 +196,7 @@ class CustomFieldsetsController extends Controller
|
||||||
*/
|
*/
|
||||||
public function associate(Request $request, $id)
|
public function associate(Request $request, $id)
|
||||||
{
|
{
|
||||||
$set = CustomField::find($id);
|
$set = CustomFieldset::find($id);
|
||||||
|
|
||||||
$this->authorize('update', $set);
|
$this->authorize('update', $set);
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@ return [
|
||||||
'deleted' => 'This asset has been deleted.',
|
'deleted' => 'This asset has been deleted.',
|
||||||
'edit' => 'Edit Asset',
|
'edit' => 'Edit Asset',
|
||||||
'model_deleted' => 'This Assets model has been deleted. You must restore the model before you can restore the Asset.',
|
'model_deleted' => 'This Assets model has been deleted. You must restore the model before you can restore the Asset.',
|
||||||
|
'model_invalid' => 'The Model of this Asset is invalid.',
|
||||||
|
'model_invalid_fix' => 'The Asset should be edited to correct this before attempting to check it in or out.',
|
||||||
'requestable' => 'Requestable',
|
'requestable' => 'Requestable',
|
||||||
'requested' => 'Requested',
|
'requested' => 'Requested',
|
||||||
'not_requestable' => 'Not Requestable',
|
'not_requestable' => 'Not Requestable',
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
return array(
|
return array(
|
||||||
|
|
||||||
'does_not_exist' => 'Model does not exist.',
|
'does_not_exist' => 'Model does not exist.',
|
||||||
|
'no_association' => 'NO MODEL ASSOCIATED.',
|
||||||
|
'no_association_fix' => 'This will break things in weird and horrible ways. Edit this asset now to assign it a model.',
|
||||||
'assoc_users' => 'This model is currently associated with one or more assets and cannot be deleted. Please delete the assets, and then try deleting again. ',
|
'assoc_users' => 'This model is currently associated with one or more assets and cannot be deleted. Please delete the assets, and then try deleting again. ',
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,10 @@ return [
|
||||||
'audit' => 'Audit',
|
'audit' => 'Audit',
|
||||||
'audit_report' => 'Audit Log',
|
'audit_report' => 'Audit Log',
|
||||||
'assets' => 'Assets',
|
'assets' => 'Assets',
|
||||||
|
'assets_audited' => 'assets audited',
|
||||||
|
'assets_checked_in_count' => 'assets checked in',
|
||||||
|
'assets_checked_out_count' => 'assets checked out',
|
||||||
|
'asset_deleted_warning' => 'This asset has been deleted. You must restore it before you can assign it to someone.',
|
||||||
'assigned_date' => 'Date Assigned',
|
'assigned_date' => 'Date Assigned',
|
||||||
'assigned_to' => 'Assigned to :name',
|
'assigned_to' => 'Assigned to :name',
|
||||||
'assignee' => 'Assigned to',
|
'assignee' => 'Assigned to',
|
||||||
|
|
|
@ -46,13 +46,13 @@
|
||||||
|
|
||||||
@else
|
@else
|
||||||
<span class="text-danger text-bold">
|
<span class="text-danger text-bold">
|
||||||
<i class="fas fa-exclamation-triangle"></i>This asset's model is invalid!
|
<i class="fas fa-exclamation-triangle"></i>{{ trans('admin/hardware/general.model_invalid')}}
|
||||||
The asset <a href="{{ route('hardware.edit', $asset->id) }}">should be edited</a> to correct this before attempting to check it in or out.</span>
|
<a href="{{ route('hardware.edit', $asset->id) }}"></a> {{ trans('admin/hardware/general.model_invalid_fix')}}</span>
|
||||||
@endif
|
@endif
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Asset Name -->
|
<!-- Asset Name -->
|
||||||
<div class="form-group {{ $errors->has('name') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('name') ? 'error' : '' }}">
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
|
|
||||||
@else
|
@else
|
||||||
<span class="text-danger text-bold">
|
<span class="text-danger text-bold">
|
||||||
<i class="fas fa-exclamation-triangle"></i>This asset's model is invalid!
|
<i class="fas fa-exclamation-triangle"></i>{{ trans('admin/hardware/general.model_invalid')}}
|
||||||
The asset <a href="{{ route('hardware.edit', $asset->id) }}">should be edited</a> to correct this before attempting to check it in or out.</span>
|
<a href="{{ route('hardware.edit', $asset->id) }}"></a> {{ trans('admin/hardware/general.model_invalid_fix')}}</span>
|
||||||
@endif
|
@endif
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="box box-default" id="checkedin-div" style="display: none">
|
<div class="box box-default" id="checkedin-div" style="display: none">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h2 class="box-title"> {{ trans('general.quickscan_checkin_status') }} (<span id="checkin-counter">0</span> assets checked in) </h2>
|
<h2 class="box-title"> {{ trans('general.quickscan_checkin_status') }} (<span id="checkin-counter">0</span> {{ trans('general.assets_checked_in_count') }}) </h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="checkin-loader" style="display: none;">
|
<tr id="checkin-loader" style="display: none;">
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<i class="fas fa-spinner spin" aria-hidden="true"></i> Processing...
|
<i class="fas fa-spinner spin" aria-hidden="true"></i> {{ trans('general.processing') }}...
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
@ -99,7 +99,7 @@
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="box box-default" id="audited-div" style="display: none">
|
<div class="box box-default" id="audited-div" style="display: none">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h2 class="box-title"> {{ trans('general.bulkaudit_status') }} (<span id="audit-counter">0</span> assets audited) </h2>
|
<h2 class="box-title"> {{ trans('general.bulkaudit_status') }} (<span id="audit-counter">0</span> {{ trans('general.assets_audited') }}) </h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
|
||||||
|
|
|
@ -75,8 +75,8 @@
|
||||||
@if (!$asset->model)
|
@if (!$asset->model)
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="callout callout-danger">
|
<div class="callout callout-danger">
|
||||||
<h2>NO MODEL ASSOCIATED</h2>
|
<h2>{{ trans('admin/models/message.no_association') }}</h2>
|
||||||
<p>This will break things in weird and horrible ways. Edit this asset now to assign it a model. </p>
|
<p>{{ trans('admin/models/message.no_association_fix') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@ -85,9 +85,8 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<i class="fas fa-exclamation-triangle faa-pulse animated" aria-hidden="true"></i>
|
<i class="fas fa-exclamation-triangle faa-pulse animated" aria-hidden="true"></i>
|
||||||
<strong>WARNING: </strong>
|
<strong>{{ trans('general.notification_warning') }} </strong>
|
||||||
This asset has been deleted.
|
{{ trans('general.asset_deleted_warning') }}
|
||||||
You must restore it before you can assign it to someone.
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
Loading…
Reference in a new issue