Remember data inputted in the setup form when there are errors
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
return Redirect::to('/');
|
return Redirect::to('/');
|
||||||
} else {
|
} else {
|
||||||
// No good, let's try that again.
|
// No good, let's try that again.
|
||||||
return Redirect::back()->with('errors', $v->messages());
|
return Redirect::back()->withInput()->with('errors', $v->messages());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,14 +15,14 @@
|
|||||||
<h3>Status Page Details</h3>
|
<h3>Status Page Details</h3>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label class='sr-only'>Site Name</label>
|
<label class='sr-only'>Site Name</label>
|
||||||
<input type='text' name='app_name' class='form-control' placeholder='Site Name' required />
|
<input type='text' name='app_name' class='form-control' placeholder='Site Name' value='{{ Input::old('app_name', '') }}' required />
|
||||||
@if($errors->has('app_name'))
|
@if($errors->has('app_name'))
|
||||||
<span class='text-danger'>{{ $errors->first('app_name') }}</span>
|
<span class='text-danger'>{{ $errors->first('app_name') }}</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label class='sr-only'>Site Domain</label>
|
<label class='sr-only'>Site Domain</label>
|
||||||
<input type='text' name='app_domain' class='form-control' placeholder='Site Domain' required />
|
<input type='text' name='app_domain' class='form-control' placeholder='Site Domain' value='{{ Input::old('app_domain', '') }}' required />
|
||||||
@if($errors->has('app_domain'))
|
@if($errors->has('app_domain'))
|
||||||
<span class='text-danger'>{{ $errors->first('app_domain') }}</span>
|
<span class='text-danger'>{{ $errors->first('app_domain') }}</span>
|
||||||
@endif
|
@endif
|
||||||
@@ -37,21 +37,21 @@
|
|||||||
<h3>Administrator Account</h3>
|
<h3>Administrator Account</h3>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label class='sr-only'>Username</label>
|
<label class='sr-only'>Username</label>
|
||||||
<input type='text' name='user[name]' class='form-control' placeholder='Username' required />
|
<input type='text' name='user[name]' class='form-control' placeholder='Username' value='{{ Input::old('user.name', '') }}' required />
|
||||||
@if($errors->has('user.name'))
|
@if($errors->has('user.name'))
|
||||||
<span class='text-danger'>{{ $errors->first('user.name') }}</span>
|
<span class='text-danger'>{{ $errors->first('user.name') }}</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label class='sr-only'>Email</label>
|
<label class='sr-only'>Email</label>
|
||||||
<input type='email' name='user[email]' class='form-control' placeholder='Email' required />
|
<input type='email' name='user[email]' class='form-control' placeholder='Email' value='{{ Input::old('user.email', '') }}' required />
|
||||||
@if($errors->has('user.email'))
|
@if($errors->has('user.email'))
|
||||||
<span class='text-danger'>{{ $errors->first('user.email') }}</span>
|
<span class='text-danger'>{{ $errors->first('user.email') }}</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label class='sr-only'>Password</label>
|
<label class='sr-only'>Password</label>
|
||||||
<input type='password' name='user[password]' class='form-control' placeholder='Password' required />
|
<input type='password' name='user[password]' class='form-control' placeholder='Password' value='{{ Input::old('user.password', '') }}' required />
|
||||||
@if($errors->has('user.password'))
|
@if($errors->has('user.password'))
|
||||||
<span class='text-danger'>{{ $errors->first('user.password') }}</span>
|
<span class='text-danger'>{{ $errors->first('user.password') }}</span>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
Reference in New Issue
Block a user