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

62 lines
1.9 KiB
PHP
Raw Normal View History

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")
<style>
.toggle__label::before, .toggle__label::after {
border-color: black;
}
.toggle__text::before {
border-color: black;
}
.tox-notification {
display: none !important;
}
.tox {
border-radius: 4px !important;
margin-bottom: 1rem;
}
</style>
<script src="https://cdn.tiny.cloud/1/ikwmbvigw8ass90tn37xiql6mk1gjoks77t3m6tld60hdjov/tinymce/5/tinymce.min.js" referrerpolicy="origin"></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
<label for="name">Event Navn:</label>
2020-06-22 13:25:39 +00:00
<input type="text" name="name" id="name" max="60" required>
<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>
<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-22 13:25:39 +00:00
<input type="submit" class="btn btn-dark text-white" value="Opret">
</form>
<script>
tinymce.init({
selector: 'textarea',
setup: function (editor) {
editor.on('change', function () {
tinymce.triggerSave();
});
}
});
</script>
2020-06-22 13:25:39 +00:00
@endsection