| xqd
@@ -28,7 +28,7 @@
|
|
|
<form class="form-horizontal" method="POST" action="{{ $pre_uri . 'store' }}">
|
|
|
{{ csrf_field() }}
|
|
|
|
|
|
- <div class="form-group row">
|
|
|
+ <div class="form-group row {{ $errors->has('name') ? 'has-error' : '' }}">
|
|
|
<label class="col-sm-2 col-sm-offset-1 control-label">学员姓名</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input type="text" name="data[name]" class="form-control" placeholder="请输入学员姓名" value="{{ isset(old('data')['name']) ? old('data')['name'] : '' }}" required>
|
| xqd
@@ -42,10 +42,10 @@
|
|
|
<label class="col-sm-2 col-sm-offset-1 control-label">手机</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input type="text" name="data[phone]" class="form-control" placeholder="请输入学员姓名" value="{{ isset(old('data')['phone']) ? old('data')['phone'] : '' }}" required>
|
|
|
+ @if($errors->has('phone'))
|
|
|
+ <span class="help-block">{{ $errors->first('phone') }}</span>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
- @if($errors->has('phone'))
|
|
|
- <span class="help-block">{{ $errors->first('phone') }}</span>
|
|
|
- @endif
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group row">
|