mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 14:39:49 -08:00
4696e799ed
* Added form checkout selector partial * Stupid stash * Added radio button checkout selector javascript * New compiled production assets * Added $style override in form partials for select2 ajax lists * Added checkout-to radio button selector TODO: Fix for accessibility - currently cannot tab-select this radio button * Added new checkout-to selector to hardware edit * Added new checkout-to selector to asset checkout form * Refactored postCheckout to use radio button submission This defaults to user checkout if nothing is passed for some reason * Better visual feedback on whether or not an asset is deployable in edit screen
18 lines
1.2 KiB
PHP
18 lines
1.2 KiB
PHP
<!-- Status -->
|
|
<div class="form-group {{ $errors->has('status_id') ? ' has-error' : '' }}">
|
|
<label for="status_id" class="col-md-3 control-label">{{ trans('admin/hardware/form.status') }}</label>
|
|
<div class="col-md-7 col-sm-11{{ (\App\Helpers\Helper::checkIfRequired($item, 'status_id')) ? ' required' : '' }}">
|
|
{{ Form::select('status_id', $statuslabel_list , Input::old('status_id', $item->status_id), array('class'=>'select2 status_id', 'style'=>'width:100%','id'=>'status_select_id')) }}
|
|
{!! $errors->first('status_id', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
</div>
|
|
<div class="col-md-2 col-sm-2 text-left">
|
|
<a href='{{ route('modal.statuslabel') }}' data-toggle="modal" data-target="#createModal" data-dependency='statuslabel' data-select='status_select_id' class="btn btn-sm btn-default">New</a>
|
|
<span class="status_spinner" style="padding-left: 10px; color: green; display:none; width: 30px;"><i class="fa fa-spinner fa-spin"></i> </span>
|
|
</div>
|
|
|
|
<div class="col-md-7 col-sm-11 col-md-offset-3" id="status_helptext">
|
|
<p id="selected_status_status" style="display:none;"></p>
|
|
</div>
|
|
|
|
</div>
|