mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Added localized strings for kits
This commit is contained in:
parent
26e056fb3c
commit
8bad9c5140
|
@ -13,5 +13,12 @@ return [
|
|||
'none_licenses' => 'There are not enough available seats for :license to checkout. :qty are required. ',
|
||||
'none_consumables' => 'There are not enough available units of :consumable to checkout. :qty are required. ',
|
||||
'none_accessory' => 'There are not enough available units of :accessory to checkout. :qty are required. ',
|
||||
|
||||
'append_accessory' => 'Append Accessory',
|
||||
'update_appended_accessory' => 'Update appended Accessory',
|
||||
'append_consumable' => 'Append Consumable',
|
||||
'update_appended_consumable' => 'Update appended Consumable',
|
||||
'append_license' => 'Append license',
|
||||
'update_appended_license' => 'Update appended license',
|
||||
'append_model' => 'Append model',
|
||||
'update_appended_model' => 'Update appended model'
|
||||
];
|
||||
|
|
|
@ -19,4 +19,5 @@ return [
|
|||
'go' => 'Go',
|
||||
'bulk_actions' => 'Bulk Actions',
|
||||
'add_maintenance' => 'Add Maintenance',
|
||||
'append' => 'Append',
|
||||
];
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
@extends('layouts/edit-form', [
|
||||
'createText' => 'Append accessory', // TODO: trans
|
||||
'updateText' => 'Update appended accessory', // TODO: trans
|
||||
'createText' => {{ trans('admin/kits/general.append_accessory') }},
|
||||
'updateText' => {{ trans('admin/kits/general.update_appended_accessory') }},
|
||||
'formAction' => (isset($item->id)) ? route('kits.accessories.update', ['kit_id' => $kit->id, 'accessory_id' => $item->accessory_id]) : route('kits.accessories.store', ['kit_id' => $kit->id]),
|
||||
])
|
||||
|
||||
{{-- Page content --}}
|
||||
@section('inputFields')
|
||||
@include ('partials.forms.edit.accessory-select', ['translated_name' => 'Accessory', 'fieldname' => 'accessory_id', 'required' => 'true']){{-- TODO: trans --}}
|
||||
@include ('partials.forms.edit.accessory-select', ['translated_name' => {{ trans('general.accessory')}}, 'fieldname' => 'accessory_id', 'required' => 'true'])
|
||||
<div class="form-group {{ $errors->has('quantity') ? ' has-error' : '' }}">
|
||||
<label for="quantity" class="col-md-3 control-label">{{ trans('general.quantity') }}</label>
|
||||
<div class="col-md-7 required">
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
@extends('layouts/edit-form', [
|
||||
'createText' => 'Append consumable', // TODO: trans
|
||||
'updateText' => 'Update appended consumable', // TODO: trans
|
||||
'createText' => {{ trans('admin/kits/general.append_consumable') }},
|
||||
'updateText' => {{ trans('admin/kits/general.update_appended_consumable') }},
|
||||
'formAction' => (isset($item->id)) ? route('kits.consumables.update', ['kit_id' => $kit->id, 'consumable_id' => $item->consumable_id]) : route('kits.consumables.store', ['kit_id' => $kit->id]),
|
||||
])
|
||||
|
||||
{{-- Page content --}}
|
||||
@section('inputFields')
|
||||
@include ('partials.forms.edit.consumable-select', ['translated_name' => 'Consumable', 'fieldname' => 'consumable_id', 'required' => 'true']){{-- TODO: trans --}}
|
||||
@include ('partials.forms.edit.consumable-select', ['translated_name' => {{ trans('general.consumable')}}, 'fieldname' => 'consumable_id', 'required' => 'true'])
|
||||
|
||||
<div class="form-group {{ $errors->has('quantity') ? ' has-error' : '' }}">
|
||||
<label for="quantity" class="col-md-3 control-label">{{ trans('general.quantity') }}</label>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
||||
}'>
|
||||
</table>
|
||||
<a href="{{ route('modal.show', ['type' => 'kit-model', 'itemId' => $item->id]) }}" data-refresh="kitModelsTable" data-toggle="modal" data-target="#createModal" class="btn btn-primary pull-right"><i class="fas fa-plus icon-white"></i> Append</a>
|
||||
<a href="{{ route('modal.show', ['type' => 'kit-model', 'itemId' => $item->id]) }}" data-refresh="kitModelsTable" data-toggle="modal" data-target="#createModal" class="btn btn-primary pull-right"><i class="fas fa-plus icon-white"></i> {{ trans('button.append')}}</a>
|
||||
</div>
|
||||
</div> <!--.box-body-->
|
||||
</div> <!-- /.box.box-default-->
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
<div class="box box-default">
|
||||
<div class="box-body">
|
||||
<div class="table-responsive">
|
||||
|
||||
<table
|
||||
data-cookie-id-table="kitsTable"
|
||||
data-columns="{{ \App\Presenters\PredefinedKitPresenter::dataTableLayout() }}"
|
||||
|
@ -41,7 +40,6 @@
|
|||
}'>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div> <!--.box-body-->
|
||||
</div> <!-- /.box.box-default-->
|
||||
</div> <!-- .col-md-12-->
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
@extends('layouts/edit-form', [
|
||||
'createText' => 'Append license', // TODO: trans
|
||||
'updateText' => 'Update appended license', // TODO: trans
|
||||
'createText' => {{ trans('admin/kits/general.append_license') }},
|
||||
'updateText' => {{ trans('admin/kits/general.update_appended_license') }},
|
||||
'formAction' => (isset($item->id)) ? route('kits.licenses.update', ['kit_id' => $kit->id, 'license_id' => $item->license_id]) : route('kits.licenses.store', ['kit_id' => $kit->id]),
|
||||
])
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
@extends('layouts/edit-form', [
|
||||
'createText' => 'Append model', // TODO: trans
|
||||
'updateText' => 'Update appended model', // TODO: trans
|
||||
'createText' => {{ trans(admin/kits/general.append_model) }},
|
||||
'updateText' => {{ trans(admin/kits/general.update_appended_model) }},
|
||||
'formAction' => (isset($item->id)) ? route('kits.models.update', ['kit_id' => $kit->id, 'model_id' => $item->model_id]) : route('kits.models.store', ['kit_id' => $kit->id]),
|
||||
])
|
||||
|
||||
|
|
Loading…
Reference in a new issue