2020-06-25 06:12:53 +00:00
|
|
|
@extends("admin.layout.base")
|
|
|
|
@extends("admin.layout.header")
|
|
|
|
|
|
|
|
@section("title")
|
|
|
|
Menuplan - Rediger
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("path")
|
2020-06-29 06:31:36 +00:00
|
|
|
<a href="{{ route('menu-plans.edit', [ "menu_plan" => $menuplan ]) }}" class="text-white">Rediger Menuplan</a> /
|
2020-06-25 06:12:53 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-08-07 08:58:50 +00:00
|
|
|
<style>
|
|
|
|
.toggle__label::before, .toggle__label::after {
|
|
|
|
border-color: black;
|
|
|
|
}
|
|
|
|
.toggle__text::before {
|
|
|
|
border-color: black;
|
|
|
|
}
|
2020-08-07 10:20:15 +00:00
|
|
|
|
|
|
|
.tox-notification {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tox {
|
|
|
|
border-radius: 4px !important;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2020-08-07 08:58:50 +00:00
|
|
|
</style>
|
2020-08-07 10:20:15 +00:00
|
|
|
<script src="https://cdn.tiny.cloud/1/ikwmbvigw8ass90tn37xiql6mk1gjoks77t3m6tld60hdjov/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
|
2020-06-25 06:12:53 +00:00
|
|
|
<h1>Rediger Menuplan:</h1>
|
2020-06-29 06:31:36 +00:00
|
|
|
<form method="post" action="{{ route("menu-plans.update", [ "menu_plan" => $menuplan ]) }}">
|
|
|
|
@csrf
|
|
|
|
@method("PUT")
|
2020-06-30 10:38:02 +00:00
|
|
|
<label for="mandag">Uge:</label>
|
|
|
|
<input type="number" name="week" id="week" min="1" max="53" value="{{ $menuplan->week }}" required>
|
2020-08-07 10:20:15 +00:00
|
|
|
<textarea name="menu" id="editor">{!! $menuplan->menu !!}</textarea>
|
2020-08-07 08:58:50 +00:00
|
|
|
<label class="toggle">
|
|
|
|
<input class="toggle__input" type="checkbox" name="newsoption">
|
|
|
|
<span class="toggle__label">
|
|
|
|
<span class="toggle__text">Opret som nyhed</span>
|
|
|
|
</span>
|
|
|
|
</label>
|
2020-06-30 10:38:02 +00:00
|
|
|
<input type="submit" class="btn btn-dark text-white" value="Rediger Menuplan">
|
2020-06-25 06:12:53 +00:00
|
|
|
</form>
|
2020-08-07 10:20:15 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
tinymce.init({
|
|
|
|
selector: 'textarea',
|
|
|
|
setup: function (editor) {
|
|
|
|
editor.on('change', function () {
|
|
|
|
tinymce.triggerSave();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2020-06-25 06:12:53 +00:00
|
|
|
@endsection
|