This commit is contained in:
KodeStar
2018-02-01 20:29:44 +00:00
parent 49b01bdb75
commit 41850f72df
7 changed files with 28 additions and 6 deletions

View File

@@ -92,6 +92,13 @@ body {
width: 340px;
transition: all .35s ease-in-out;
}
.message-container {
width: 100%;
.alert {
margin: 30px;
text-align: center;
}
}
#app {
&.header {
.appheader {

View File

@@ -28,11 +28,14 @@
</header>
<main>
@if ($message = Session::get('success'))
<div class="message-container">
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
</div>
@endif
@if (count($errors) < 0)
<div class="message-container">
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
@@ -40,6 +43,7 @@
@endforeach
</ul>
</div>
</div>
@endif
@yield('content')

View File

@@ -28,7 +28,9 @@
<td>{{ $app->url }}</td>
<td class="text-center"><a href="{!! route('items.edit', $app->id) !!}" title="Edit {!! $app->title !!}"><i class="fas fa-edit"></i></a></td>
<td class="text-center">
<a href="{!! route('items.destroy', $app->id) !!}" title="Delete {!! $app->title !!}" class="confirm-delete"><i class="fa fa-trash-alt"></i></a>
{!! Form::open(['method' => 'DELETE','route' => ['items.destroy', $app->id],'style'=>'display:inline']) !!}
<button type="submit"><i class="fa fa-trash-alt"></i></button>
{!! Form::close() !!}
</td>
</tr>
@endforeach

View File

@@ -7,7 +7,7 @@
@endforeach
@include('add')
@else
There are currently no Applications, add one here
There are currently no Applications, <a href="{{ route('items.create') }}">add one here</a>
@include('add')
@endif