mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Merge pull request #12409 from akemidx/component_checkin_limit
Fixed: Checkin limit string translation for components
This commit is contained in:
commit
4a6250a08c
|
@ -12,4 +12,5 @@ return array(
|
||||||
'remaining' => 'Remaining',
|
'remaining' => 'Remaining',
|
||||||
'total' => 'Total',
|
'total' => 'Total',
|
||||||
'update' => 'Update Component',
|
'update' => 'Update Component',
|
||||||
|
'checkin_limit' => 'Amount checked in must be equal to or less than :assigned_qty'
|
||||||
);
|
);
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<input type="text" class="form-control" name="checkin_qty" aria-label="checkin_qty" value="{{ old('assigned_qty', $component_assets->assigned_qty) }}">
|
<input type="text" class="form-control" name="checkin_qty" aria-label="checkin_qty" value="{{ old('assigned_qty', $component_assets->assigned_qty) }}">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9 col-md-offset-2">
|
<div class="col-md-9 col-md-offset-2">
|
||||||
<p class="help-block">Must be {{ $component_assets->assigned_qty }} or less.</p>
|
<p class="help-block">{{ trans('admin/components/general.checkin_limit', ['assigned_qty' => $component_assets->assigned_qty]) }}</p>
|
||||||
{!! $errors->first('checkin_qty', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i>
|
{!! $errors->first('checkin_qty', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i>
|
||||||
:message</span>') !!}
|
:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue