2020-06-22 13:25:39 +00:00
|
|
|
@extends("admin.layout.base")
|
|
|
|
@extends("admin.layout.header")
|
|
|
|
|
|
|
|
@section("title")
|
2020-06-29 12:48:31 +00:00
|
|
|
Aktivitet - Vis
|
2020-06-22 13:25:39 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("path")
|
2020-06-29 12:48:31 +00:00
|
|
|
<a href="{{ route('events.create') }}" class="text-white">Opret Aktivitet</a> /
|
2020-06-22 13:25:39 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-08-06 12:47:22 +00:00
|
|
|
<style>
|
|
|
|
.ck-editor__main {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script src="https://cdn.ckeditor.com/ckeditor5/21.0.0/classic/ckeditor.js"></script>
|
2020-06-29 09:05:07 +00:00
|
|
|
<h1>Opret Aktivitet:</h1>
|
|
|
|
<form method="post" action="{{ route("events.store") }}">
|
2020-06-22 13:25:39 +00:00
|
|
|
@csrf
|
2020-08-06 12:47:22 +00:00
|
|
|
<label for="name">Event Navn:</label>
|
2020-06-22 13:25:39 +00:00
|
|
|
<input type="text" name="name" id="name" max="60" required>
|
2020-08-06 12:47:22 +00:00
|
|
|
<label for="accountable">Event Ansvarlig:</label>
|
|
|
|
<input type="text" name="accountable" id="accountable" required>
|
|
|
|
<label for="description">Event Beskrivelse:</label>
|
|
|
|
<textarea name="description" id="editor"></textarea>
|
|
|
|
<label for="date">Event dato:</label>
|
2020-08-03 12:47:06 +00:00
|
|
|
<input type="datetime-local" name="date" id="date" required>
|
2020-06-22 13:25:39 +00:00
|
|
|
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
|
|
|
</form>
|
|
|
|
|
2020-08-06 12:47:22 +00:00
|
|
|
<script>
|
|
|
|
ClassicEditor
|
|
|
|
.create( document.querySelector( '#editor' ))
|
|
|
|
.then( editor => {
|
|
|
|
console.log( editor );
|
|
|
|
} )
|
|
|
|
.catch( error => {
|
|
|
|
console.error( error );
|
|
|
|
} );
|
|
|
|
</script>
|
2020-06-22 13:25:39 +00:00
|
|
|
@endsection
|