mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Disallow editing of category type once created, added help text
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
bef4224e14
commit
f50b622eb8
|
@ -15,10 +15,15 @@
|
||||||
<div class="form-group {{ $errors->has('category_type') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('category_type') ? ' has-error' : '' }}">
|
||||||
<label for="category_type" class="col-md-3 control-label">{{ trans('general.type') }}</label>
|
<label for="category_type" class="col-md-3 control-label">{{ trans('general.type') }}</label>
|
||||||
<div class="col-md-7 required">
|
<div class="col-md-7 required">
|
||||||
{{ Form::select('category_type', $category_types , old('category_type', $item->category_type), array('class'=>'select2', 'style'=>'min-width:350px', 'aria-label'=>'category_type', $item->itemCount() > 0 ? 'disabled' : '')) }}
|
{{ Form::select('category_type', $category_types , old('category_type', $item->category_type), array('class'=>'select2', 'style'=>'min-width:350px', 'aria-label'=>'category_type', ($item->category_type!='') || ($item->itemCount() > 0) ? 'disabled' : '')) }}
|
||||||
{!! $errors->first('category_type', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('category_type', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-7 col-md-offset-3">
|
||||||
|
<p class="help-block">{!! trans('admin/categories/message.update.cannot_change_category_type') !!} </p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- EULA text -->
|
<!-- EULA text -->
|
||||||
<div class="form-group {{ $errors->has('eula_text') ? 'error' : '' }}">
|
<div class="form-group {{ $errors->has('eula_text') ? 'error' : '' }}">
|
||||||
|
|
Loading…
Reference in a new issue