Added localized strings for models

This commit is contained in:
Wächtler, Yannick 2021-11-02 15:34:50 +01:00
parent c0891e6827
commit 670b70c7e1
5 changed files with 14 additions and 11 deletions

View file

@ -15,6 +15,8 @@ return [
'model_deleted' => 'This Assets model has been deleted. You must restore the model before you can restore the Asset.',
'requestable' => 'Requestable',
'requested' => 'Requested',
'not_requestable' => 'Not Requestable',
'requestable_status_warning' => 'Do not change requestable status',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',

View file

@ -286,4 +286,5 @@
'setup_create_database' => 'Create Database Tables',
'setup_create_admin' => 'Create Admin User',
'setup_done' => 'Finished!',
'bulk_edit_about_to' => 'You are about to edit the following: ',
];

View file

@ -22,7 +22,7 @@
<div class="box box-default">
<div class="box-header with-border">
<div class="box-title"><i class="fas fa-exclamation-triangle"></i> You are about to edit the following: </div>
<div class="box-title"><i class="fas fa-exclamation-triangle"></i>{{ trans('general.bulk_edit_about_to') }}</div>
</div>
<div class="box-body">
@ -79,9 +79,9 @@
<div class="checkbox">
<label for="requestable">
{{ Form::radio('requestable', '', true, ['aria-label'=>'requestable']) }} Do not change requestable status<br>
{{ Form::radio('requestable', '', true, ['aria-label'=>'requestable']) }} {{ trans('admin/hardware/general.requestable_status_warning')}}<br>
{{ Form::radio('requestable', '1', old('requestable'), ['aria-label'=>'requestable']) }} {{ trans('admin/hardware/general.requestable')}} <br>
{{ Form::radio('requestable', '0', old('requestable'), ['aria-label'=>'requestable']) }} Not requestable
{{ Form::radio('requestable', '0', old('requestable'), ['aria-label'=>'requestable']) }} {{ trans('admin/hardware/general.not_requestable')}}
</label>
</div>

View file

@ -45,10 +45,10 @@
@if (Request::get('status')!='deleted')
<div id="toolbar">
<label for="bulk_actions" class="sr-only">Bulk Actions</label>
<label for="bulk_actions" class="sr-only">{{ trans('general.bulk_actions') }}</label>
<select id="bulk_actions" name="bulk_actions" class="form-control select2" aria-label="bulk_actions" style="width: 300px;">
<option value="edit">Bulk Edit</option>
<option value="delete">Bulk Delete</option>
<option value="edit">{{ trans('general.bulk_edit') }}</option>
<option value="delete">{{ trans('general.bulk_delete') }}</option>
</select>
<button class="btn btn-primary" id="bulkEdit" disabled>Go</button>
</div>

View file

@ -51,11 +51,11 @@
'id' => 'bulkForm']) }}
<div id="toolbar">
<select name="bulk_actions" class="form-control select2">
<option value="edit">Edit</option>
<option value="delete">Delete</option>
<option value="labels">Generate Labels</option>
<option value="edit">{{ trans('general.edit') }}</option>
<option value="delete">{{ trans('general.delete') }}</option>
<option value="labels">{{ trans('general.generate_labels') }}</option>
</select>
<button class="btn btn-primary" id="bulkEdit" disabled>Go</button>
<button class="btn btn-primary" id="bulkEdit" disabled>{{ trans('button.go') }}</button>
</div>
<table
@ -90,7 +90,7 @@
<div class="box box-default">
<div class="box-header with-border">
<div class="box-heading">
<h2 class="box-title"> More Info:</h2>
<h2 class="box-title"> {{ trans('general.moreinfo') }}:</h2>
</div>
</div><!-- /.box-header -->
<div class="box-body">