Fixes double error display on login forms

This commit is contained in:
Dane Everitt 2016-10-29 20:29:26 -04:00
parent 51c07bf1f2
commit d3220fa553
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 40 additions and 32 deletions

View file

@ -155,6 +155,7 @@
<div class="col-md-9">
<div class="row">
<div class="col-md-12" id="tpl_messages">
@section('resp-errors')
@if (count($errors) > 0)
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
@ -166,6 +167,8 @@
</ul>
</div>
@endif
@show
@section('resp-alerts')
@foreach (Alert::getMessages() as $type => $messages)
@foreach ($messages as $message)
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
@ -174,6 +177,7 @@
</div>
@endforeach
@endforeach
@show
</div>
</div>
<div class="row">

View file

@ -260,6 +260,7 @@
<div class="col-md-9">
<div class="row">
<div class="col-md-12" id="tpl_messages">
@section('resp-errors')
@if (count($errors) > 0)
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
@ -271,6 +272,8 @@
</ul>
</div>
@endif
@show
@section('resp-alerts')
@foreach (Alert::getMessages() as $type => $messages)
@foreach ($messages as $message)
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
@ -279,6 +282,7 @@
</div>
@endforeach
@endforeach
@show
</div>
</div>
<div class="row">