Show number of remaining seats and category in form

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-11-23 16:18:03 +00:00
parent cf3608ae10
commit accfbc1b99

View file

@ -21,17 +21,25 @@
<div class="box box-default"> <div class="box box-default">
<div class="box-header with-border"> <div class="box-header with-border">
<h2 class="box-title"> {{ $license->name }}</h2> <h2 class="box-title"> {{ $license->name }} ({{ trans('admin/licenses/message.seats_available', ['seat_count' => $license->availCount()->count()]) }})</h2>
</div> </div>
<div class="box-body"> <div class="box-body">
<!-- Asset name --> <!-- Asset name -->
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">{{ trans('admin/hardware/form.name') }}</label> <label class="col-sm-3 control-label">{{ trans('admin/hardware/form.name') }}</label>
<div class="col-md-6"> <div class="col-md-9">
<p class="form-control-static">{{ $license->name }}</p> <p class="form-control-static">{{ $license->name }}</p>
</div> </div>
</div> </div>
<!-- Category -->
<div class="form-group">
<label class="col-sm-3 control-label">{{ trans('general.category') }}</label>
<div class="col-md-9">
<p class="form-control-static">{{ $license->category->name }}</p>
</div>
</div>
<!-- Serial --> <!-- Serial -->
<div class="form-group"> <div class="form-group">
@ -57,8 +65,8 @@
<!-- Note --> <!-- Note -->
<div class="form-group {{ $errors->has('notes') ? 'error' : '' }}"> <div class="form-group {{ $errors->has('notes') ? 'error' : '' }}">
<label for="note" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label> <label for="note" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label>
<div class="col-md-7"> <div class="col-md-8">
<textarea class="col-md-6 form-control" id="notes" name="notes">{{ old('note') }}</textarea> <textarea class="col-md-6 form-control" id="notes" name="notes" style="width: 100%">{{ old('note') }}</textarea>
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!} {!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
</div> </div>
</div> </div>