aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages/editsign.blade.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-01 18:38:02 +0100
committerMateja <mail@matejamaric.com>2020-11-01 18:38:02 +0100
commit8fee1d776d8f2f538968b1d761dfbbfd3e52ae27 (patch)
tree7c958ac82840a278236ec6dda81131e38a52a42e /resources/views/pages/editsign.blade.php
parent0ce5bbcc443b9da12e5233a481f2ef15017ee891 (diff)
downloadyota-laravel-8fee1d776d8f2f538968b1d761dfbbfd3e52ae27.tar.gz
yota-laravel-8fee1d776d8f2f538968b1d761dfbbfd3e52ae27.zip
Editing signs buggy...
Diffstat (limited to 'resources/views/pages/editsign.blade.php')
-rw-r--r--resources/views/pages/editsign.blade.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/resources/views/pages/editsign.blade.php b/resources/views/pages/editsign.blade.php
new file mode 100644
index 0000000..9f1f5ee
--- /dev/null
+++ b/resources/views/pages/editsign.blade.php
@@ -0,0 +1,42 @@
+@extends('layouts.app')
+
+@section('title', 'Edit callsign')
+
+@section('navbar', View::make('inc.special_navbar'))
+
+@section('content')
+ <h3 class="mt-2">Edit Callsign:</h3>
+ @if (session('status'))
+ <div class="alert alert-success">
+ {{ session('status') }}
+ </div>
+ @endif
+ <form action="{{ route('editForm', 1) }}" method="POST">
+ @csrf
+ <div class="form-group">
+ <label for="Sign">Special Callsign:</label>
+ <input type="text" name="sign" value="{{ $data->sign }}" id="Sign" class="form-control">
+ @error('sign')
+ <div class="alert alert-danger mt-2">{{ $message }}</div>
+ @enderror
+ </div>
+ <div class="form-group">
+ <label for="editor">Description:</label>
+ <textarea name="description" id="editor" class="form-control">{{ $data->description }}</textarea>
+ </div>
+ <div class="form-group">
+ <input type="submit" name="submit" value="Edit callsign" class="btn btn-primary">
+ <input type="submit" name="submit" value="Cancel" class="btn btn-secondary">
+ </div>
+ </form>
+@endsection
+
+@section('scripts')
+<script src="https://cdn.ckeditor.com/ckeditor5/23.1.0/classic/ckeditor.js"></script>
+<script>
+ClassicEditor.create(document.querySelector('#editor'))
+ .catch(error => {
+ console.error( error );
+ });
+</script>
+@endsection