Nicer styling for purchase cost in edit form

Made it more consistent with the warranty months foeld below it
This commit is contained in:
snipe 2017-11-08 18:06:51 -08:00
parent 4f4920615c
commit 65353fa422

View file

@ -1,17 +1,20 @@
<!-- Purchase Cost --> <!-- Purchase Cost -->
<div class="form-group {{ $errors->has('purchase_cost') ? ' has-error' : '' }}"> <div class="form-group {{ $errors->has('purchase_cost') ? ' has-error' : '' }}">
<label for="purchase_cost" class="col-md-3 control-label">{{ trans('general.purchase_cost') }} </label> <label for="purchase_cost" class="col-md-3 control-label">{{ trans('general.purchase_cost') }}</label>
<div class="col-md-2"> <div class="col-md-9">
<div class="input-group"> <div class="input-group col-md-3" style="padding-left: 0px;">
<span class="input-group-addon"> <input class="form-control" type="text" name="purchase_cost" id="purchase_cost" value="{{ Input::old('purchase_cost', \App\Helpers\Helper::formatCurrencyOutput($item->purchase_cost)) }}" />
<span class="input-group-addon">
@if (isset($currency_type)) @if (isset($currency_type))
{{ $currency_type }} {{ $currency_type }}
@else @else
{{ $snipeSettings->default_currency }} {{ $snipeSettings->default_currency }}
@endif @endif
</span> </span>
<input class="col-md-2 form-control" type="text" name="purchase_cost" id="purchase_cost" value="{{ Input::old('purchase_cost', \App\Helpers\Helper::formatCurrencyOutput($item->purchase_cost)) }}" /> </div>
{!! $errors->first('purchase_cost', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!} <div class="col-md-9" style="padding-left: 0px;">
</div> {!! $errors->first('purchase_cost', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
</div> </div>
</div>
</div> </div>