aboutsummaryrefslogtreecommitdiff
path: root/resources/views
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-01 23:55:13 +0100
committerMateja <mail@matejamaric.com>2020-11-01 23:55:13 +0100
commiteb54ef5a24bc4af0749ad43ccffcbc1ae03aa4b6 (patch)
treebb9ff7cb37880577f664cff543e78b1bfc8dd1f5 /resources/views
parent3c410d2bac3e338ab6d6045577819e292251c066 (diff)
downloadyota-laravel-eb54ef5a24bc4af0749ad43ccffcbc1ae03aa4b6.tar.gz
yota-laravel-eb54ef5a24bc4af0749ad43ccffcbc1ae03aa4b6.zip
Special callsigns finished.
Diffstat (limited to 'resources/views')
-rw-r--r--resources/views/pages/callsigns.blade.php13
-rw-r--r--resources/views/pages/editsign.blade.php2
2 files changed, 11 insertions, 4 deletions
diff --git a/resources/views/pages/callsigns.blade.php b/resources/views/pages/callsigns.blade.php
index 31d7ccf..6c795c4 100644
--- a/resources/views/pages/callsigns.blade.php
+++ b/resources/views/pages/callsigns.blade.php
@@ -5,19 +5,26 @@
@section('navbar', View::make('inc.special_navbar'))
@section('content')
+ <h3>Callsigns Administration:</h3>
+ @if (session('statusE'))
+ <div class="alert alert-success">
+ {{ session('statusE') }}
+ </div>
+ @endif
@if (count($data) > 0)
- <h3>Callsigns Administration:</h3>
<div class="p-0 mt-3 col-lg-6 table-responsive">
<table class="table table-bordered">
@foreach ($data as $row)
<tr>
<td class="align-middle">{{ $row->sign }}</td>
- <td><a href="{{ route('edit', $row->id) }}" class="btn btn-warning">Edit</a></td>
- <td><button class="btn btn-danger">Delete</button></td>
+ <td><a href="{{ route('editSign', $row->id) }}" class="btn btn-warning">Edit</a></td>
+ <td><a href="{{ route('deleteSign', $row->id) }}" class="btn btn-danger">Delete</a></td>
</tr>
@endforeach
</table>
</div>
+ @else
+ <strong>There are currently no callsigns.</strong>
@endif
<h3 class="mt-4">Add Callsign:</h3>
diff --git a/resources/views/pages/editsign.blade.php b/resources/views/pages/editsign.blade.php
index 305bcee..0183441 100644
--- a/resources/views/pages/editsign.blade.php
+++ b/resources/views/pages/editsign.blade.php
@@ -11,7 +11,7 @@
{{ session('status') }}
</div>
@endif
- <form action="{{ route('editForm', request()->route()->parameter('id')) }}" method="POST">
+ <form action="{{ route('editSignForm', request()->route()->parameter('id')) }}" method="POST">
@csrf
<div class="form-group">
<label for="Sign">Special Callsign:</label>