mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Removed asterisks, use orange bar for req fields in locations
This commit is contained in:
parent
8dbc098836
commit
1ca5f8bee5
|
@ -43,7 +43,7 @@
|
||||||
<div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
|
||||||
<label for="name" class="col-md-3 control-label">{{ trans('admin/locations/table.name') }}
|
<label for="name" class="col-md-3 control-label">{{ trans('admin/locations/table.name') }}
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-8 required">
|
<div class="col-md-8{{ (\App\Helpers\Helper::checkIfRequired($location, 'name')) ? ' required' : '' }}">
|
||||||
<input class="form-control" type="text" name="name" id="name" value="{{ Input::old('name', $location->name) }}" />
|
<input class="form-control" type="text" name="name" id="name" value="{{ Input::old('name', $location->name) }}" />
|
||||||
{!! $errors->first('name', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
{!! $errors->first('name', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
<label for="parent_id" class="col-md-3 control-label">
|
<label for="parent_id" class="col-md-3 control-label">
|
||||||
{{ trans('admin/locations/table.parent') }}
|
{{ trans('admin/locations/table.parent') }}
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9{{ (\App\Helpers\Helper::checkIfRequired($location, 'parent_id')) ? ' required' : '' }}">
|
||||||
{!! Form::select('parent_id', $location_options , Input::old('parent_id', $location->parent_id), array('class'=>'select2 parent', 'style'=>'width:350px')) !!}
|
{!! Form::select('parent_id', $location_options , Input::old('parent_id', $location->parent_id), array('class'=>'select2 parent', 'style'=>'width:350px')) !!}
|
||||||
{!! $errors->first('parent_id', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
{!! $errors->first('parent_id', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
<label for="currency" class="col-md-3 control-label">
|
<label for="currency" class="col-md-3 control-label">
|
||||||
{{ trans('admin/locations/table.currency') }}
|
{{ trans('admin/locations/table.currency') }}
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9{{ (\App\Helpers\Helper::checkIfRequired($location, 'currency')) ? ' required' : '' }}">
|
||||||
{{ Form::text('currency', Input::old('currency', $location->currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;')) }}
|
{{ Form::text('currency', Input::old('currency', $location->currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;')) }}
|
||||||
{!! $errors->first('currency', '<span class="alert-msg">:message</span>') !!}
|
{!! $errors->first('currency', '<span class="alert-msg">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
<label for="address" class="col-md-3 control-label">
|
<label for="address" class="col-md-3 control-label">
|
||||||
{{ trans('admin/locations/table.address') }}
|
{{ trans('admin/locations/table.address') }}
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9{{ (\App\Helpers\Helper::checkIfRequired($location, 'address')) ? ' required' : '' }}">
|
||||||
<input class="form-control" type="text" name="address" id="address" value="{{ Input::old('address', $location->address) }}" />
|
<input class="form-control" type="text" name="address" id="address" value="{{ Input::old('address', $location->address) }}" />
|
||||||
{!! $errors->first('address', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
{!! $errors->first('address', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
@ -94,10 +94,9 @@
|
||||||
|
|
||||||
<!-- City -->
|
<!-- City -->
|
||||||
<div class="form-group {{ $errors->has('city') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('city') ? ' has-error' : '' }}">
|
||||||
<label for="city" class="col-md-3 control-label">{{ trans('admin/locations/table.city') }}
|
<label for="city" class="col-md-3 control-label">{{ trans('admin/locations/table.city') }}</label>
|
||||||
<i class='fa fa-asterisk'></i></label>
|
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9{{ (\App\Helpers\Helper::checkIfRequired($location, 'city')) ? ' required' : '' }}">
|
||||||
<input class="form-control" type="text" name="city" id="city" value="{{ Input::old('city', $location->city) }}" />
|
<input class="form-control" type="text" name="city" id="city" value="{{ Input::old('city', $location->city) }}" />
|
||||||
{!! $errors->first('city', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
{!! $errors->first('city', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
@ -115,7 +114,7 @@
|
||||||
<!-- Zip -->
|
<!-- Zip -->
|
||||||
<div class="form-group {{ $errors->has('zip') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('zip') ? ' has-error' : '' }}">
|
||||||
<label for="zip" class="col-md-3 control-label">{{ trans('admin/locations/table.zip') }}</label>
|
<label for="zip" class="col-md-3 control-label">{{ trans('admin/locations/table.zip') }}</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9{{ (\App\Helpers\Helper::checkIfRequired($location, 'zip')) ? ' required' : '' }}">
|
||||||
<input class="form-control" type="text" name="zip" id="zip" value="{{ Input::old('zip', $location->zip) }}" />
|
<input class="form-control" type="text" name="zip" id="zip" value="{{ Input::old('zip', $location->zip) }}" />
|
||||||
{!! $errors->first('zip', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
{!! $errors->first('zip', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
@ -123,10 +122,9 @@
|
||||||
|
|
||||||
<!-- Country -->
|
<!-- Country -->
|
||||||
<div class="form-group {{ $errors->has('country') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('country') ? ' has-error' : '' }}">
|
||||||
<label for="country" class="col-md-3 control-label">{{ trans('admin/locations/table.country') }}
|
<label for="country" class="col-md-3 control-label">{{ trans('admin/locations/table.country') }}</label>
|
||||||
<i class='fa fa-asterisk'></i></label>
|
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9{{ (\App\Helpers\Helper::checkIfRequired($location, 'country')) ? ' required' : '' }}">
|
||||||
{!! Form::countries('country', Input::old('country', $location->country), 'select2 country') !!}
|
{!! Form::countries('country', Input::old('country', $location->country), 'select2 country') !!}
|
||||||
{!! $errors->first('country', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
{!! $errors->first('country', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue