2020-06-15 10:29:03 +00:00
|
|
|
@extends("admin.layout.base")
|
|
|
|
@extends("admin.layout.header")
|
|
|
|
|
|
|
|
@section("title")
|
|
|
|
Menuplan - Opret
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("path")
|
2020-06-25 14:16:08 +00:00
|
|
|
<a href="{{ route('menu-plans.create') }}" class="text-white">Opret Menuplan</a> /
|
2020-06-15 10:29:03 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-08-05 12:59:41 +00:00
|
|
|
<script src="https://cdn.ckeditor.com/ckeditor5/21.0.0/classic/ckeditor.js"></script>
|
2020-06-15 10:29:03 +00:00
|
|
|
<h1>Opret Menuplan:</h1>
|
2020-06-26 06:20:43 +00:00
|
|
|
<form action="{{ action('MenuPlanController@store') }}" method="post">
|
2020-06-25 16:43:46 +00:00
|
|
|
@csrf
|
2020-06-30 10:38:02 +00:00
|
|
|
<label for="week">Uge nr.</label>
|
|
|
|
<input type="number" name="week" id="week" min="1" max="53" placeholder="1" required>
|
2020-08-05 12:59:41 +00:00
|
|
|
<textarea name="menuPlan" id="editor"></textarea>
|
2020-06-15 10:29:03 +00:00
|
|
|
<input type="submit" class="btn btn-dark text-white" value="Opret Menuplan">
|
|
|
|
</form>
|
2020-08-05 12:59:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
ClassicEditor
|
|
|
|
.create( document.querySelector( '#editor' ) )
|
|
|
|
.then( editor => {
|
|
|
|
console.log( editor );
|
|
|
|
} )
|
|
|
|
.catch( error => {
|
|
|
|
console.error( error );
|
|
|
|
} );
|
|
|
|
</script>
|
|
|
|
|
2020-06-15 10:29:03 +00:00
|
|
|
@endsection
|