mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
If a category has items in it, disable changing the category type (#2288)
This commit is contained in:
parent
68b0bbbec9
commit
ba6f26cef9
|
@ -55,7 +55,7 @@
|
|||
<i class='fa fa-asterisk'></i>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
{{ Form::select('category_type', $category_types , Input::old('category_type', $category->category_type), array('class'=>'select2', 'style'=>'min-width:350px')) }}
|
||||
{{ Form::select('category_type', $category_types , Input::old('category_type', $category->category_type), array('class'=>'select2', 'style'=>'min-width:350px', $category->itemCount() > 0 ? 'disabled' : '')) }}
|
||||
{!! $errors->first('category_type', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue