Change validation to controllers and partial

This commit is contained in:
Joseph Cohen
2015-01-09 20:21:29 -06:00
parent 996aceadcf
commit f47fb9823e
22 changed files with 117 additions and 208 deletions
@@ -0,0 +1,15 @@
<div class="alerts">
<div class="alert alert-{{ $level }} alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span></button>
@if(isset($title)) <h5>{{ $title }}</h5> @endif
@if(is_array($message))
<ul class="list-unstyled">
@foreach ($message as $msg)
<li>{{ $msg }}</li>
@endforeach
</ul>
@else
{{ $message }}
@endif
</div>
</div>