Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 3a80f56

Browse files
committed
clean up a few things.
1 parent 6ac01e6 commit 3a80f56

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

resources/views/tasks.blade.php

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,14 @@
99
</div>
1010

1111
<div class="panel-body">
12-
@if (count($errors) > 0)
13-
<!-- Form Error List -->
14-
<div class="alert alert-danger">
15-
<strong>Whoops! Something went wrong!</strong>
16-
17-
<br><br>
18-
19-
<ul>
20-
@foreach ($errors->all() as $error)
21-
<li>{{ $error }}</li>
22-
@endforeach
23-
</ul>
24-
</div>
25-
@endif
12+
<!-- Display Validation Errors -->
13+
@include('common.errors')
2614

2715
<!-- New Task Form -->
2816
<form action="/task" method="POST" class="form-horizontal">
2917
{{ csrf_field() }}
3018

19+
<!-- Task Name -->
3120
<div class="form-group">
3221
<label for="task" class="col-sm-3 control-label">Task</label>
3322

@@ -36,6 +25,7 @@
3625
</div>
3726
</div>
3827

28+
<!-- Add Task Button -->
3929
<div class="form-group">
4030
<div class="col-sm-offset-3 col-sm-6">
4131
<button type="submit" class="btn btn-default">

0 commit comments

Comments
 (0)