Ekapp/skolehjem/resources/views/admin/menuplans/create.blade.php

36 lines
1.0 KiB
PHP
Raw Normal View History

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")
<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
<label for="week">Uge nr.</label>
<input type="number" name="week" id="week" min="1" max="53" placeholder="1" required>
<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>
<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