Merge pull request #12409 from akemidx/component_checkin_limit

Fixed: Checkin limit string translation for components
This commit is contained in:
snipe 2023-02-01 13:37:56 -08:00 committed by GitHub
commit 4a6250a08c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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'
); );

View file

@ -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>