mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Make template name required
This commit is contained in:
parent
8a06f4ad82
commit
2fcc7e1188
|
@ -602,7 +602,15 @@
|
||||||
<input type="hidden" id="savetemplateform" name="options">
|
<input type="hidden" id="savetemplateform" name="options">
|
||||||
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
||||||
<label for="name">{{ trans('admin/reports/general.template_name') }}</label>
|
<label for="name">{{ trans('admin/reports/general.template_name') }}</label>
|
||||||
<input class="form-control" placeholder="" name="name" type="text" id="name" value="{{ $template->name }}">
|
<input
|
||||||
|
class="form-control"
|
||||||
|
placeholder=""
|
||||||
|
name="name"
|
||||||
|
type="text"
|
||||||
|
id="name"
|
||||||
|
value="{{ $template->name }}"
|
||||||
|
required
|
||||||
|
>
|
||||||
{!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-primary" style="width: 100%">
|
<button class="btn btn-primary" style="width: 100%">
|
||||||
|
|
Loading…
Reference in a new issue