SLightly cleaner layout - still needs work

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-06 22:03:15 -07:00
parent 0abb993600
commit 43ad0f58b5

View file

@ -10,7 +10,7 @@
@section('content') @section('content')
<div class="row"> <div class="row">
<div class="col-md-9"> <div class="col-md-8">
<form class="form-horizontal" method="post" action="" autocomplete="off"> <form class="form-horizontal" method="post" action="" autocomplete="off">
<!-- CSRF Token --> <!-- CSRF Token -->
{{ csrf_field() }} {{ csrf_field() }}
@ -25,30 +25,26 @@
@endif @endif
<div class="box-body"> <div class="box-body">
@if ($component->name)
<!-- consumable name -->
<div class="form-group">
<label class="col-sm-3 control-label">{{ trans('admin/components/general.component_name') }}</label>
<div class="col-md-6">
<p class="form-control-static">{{ $component->name }}</p>
</div>
</div>
@endif
<!-- Asset --> <!-- Asset -->
@include ('partials.forms.edit.asset-select', ['translated_name' => trans('general.select_asset'), 'fieldname' => 'asset_id']) @include ('partials.forms.edit.asset-select', ['translated_name' => trans('general.select_asset'), 'fieldname' => 'asset_id'])
<div class="form-group {{ $errors->has('assigned_qty') ? ' has-error' : '' }}"> <div class="form-group {{ $errors->has('assigned_qty') ? ' has-error' : '' }}">
<label for="assigned_qty" class="col-md-3 control-label">{{ trans('general.qty') }} <label for="assigned_qty" class="col-md-3 control-label">
<i class='icon-asterisk'></i></label> {{ trans('general.qty') }}
<div class="col-md-9"> </label>
<input class="form-control" type="text" name="assigned_qty" id="assigned_qty" style="width: 70px;" value="{{ old('assigned_qty') ?? 1 }}" /> <div class="col-md-2 col-sm-5 col-xs-5">
{!! $errors->first('assigned_qty', '<br><span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!} <input class="form-control required col-md-12" type="text" name="assigned_qty" id="assigned_qty" value="{{ old('assigned_qty') ?? 1 }}" />
</div> </div>
@if ($errors->first('assigned_qty'))
<div class="col-md-9 col-md-offset-3">
{!! $errors->first('assigned_qty', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
</div>
@endif
</div> </div>
<!-- Note --> <!-- Note -->
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}"> <div class="form-group{{ $errors->has('note') ? ' 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-7">
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $component->note) }}</textarea> <textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $component->note) }}</textarea>