mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
9 lines
632 B
PHP
9 lines
632 B
PHP
<!-- Name -->
|
|
<div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
|
|
<label for="name" class="col-md-3 control-label">{{ $translated_name }}</label>
|
|
<div class="col-md-7 col-sm-12{{ (\App\Helpers\Helper::checkIfRequired($item, 'name')) ? ' required' : '' }}">
|
|
<input class="form-control" type="text" name="name" id="name" value="{{ Input::old('name', $item->name) }}" {!! (\App\Helpers\Helper::checkIfRequired($item, 'name')) ? ' data-validation="required"' : '' !!}>
|
|
{!! $errors->first('name', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
</div>
|
|
</div>
|