v0.5.2 - Made the new menuplan, so you now can use CKeditor.
This commit is contained in:
@@ -10,20 +10,26 @@
|
||||
@endsection
|
||||
|
||||
@section("content")
|
||||
<script src="https://cdn.ckeditor.com/ckeditor5/21.0.0/classic/ckeditor.js"></script>
|
||||
<h1>Opret Menuplan:</h1>
|
||||
<form action="{{ action('MenuPlanController@store') }}" method="post">
|
||||
@csrf
|
||||
<label for="week">Uge nr.</label>
|
||||
<input type="number" name="week" id="week" min="1" max="53" placeholder="1" required>
|
||||
<label for="monday">Mandag:</label>
|
||||
<input type="text" name="monday" id="monday" placeholder="Hawaii Pizza" required>
|
||||
<label for="tuesday">Tirsdag:</label>
|
||||
<input type="text" name="tuesday" id="tuesday" placeholder="Pasta Bolognese" required>
|
||||
<label for="wednesday">Onsdag:</label>
|
||||
<input type="text" name="wednesday" id="wednesday" placeholder="Pandekager" required>
|
||||
<label for="thursday">Torsdag:</label>
|
||||
<input type="text" name="thursday" id="thursday" placeholder="Bøf med løg" required>
|
||||
|
||||
<textarea name="menuPlan" id="editor"></textarea>
|
||||
<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>
|
||||
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user