2020-06-22 13:25:39 +00:00
|
|
|
@extends("admin.layout.base")
|
|
|
|
@extends("admin.layout.header")
|
|
|
|
|
|
|
|
@section("title")
|
|
|
|
Events - Vis
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("path")
|
2020-06-30 06:52:11 +00:00
|
|
|
<a href="{{route("events.edit", ["event" => $event])}}" class="text-white">Vis Events</a> /
|
2020-06-22 13:25:39 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-08-07 07:47:23 +00:00
|
|
|
<style>
|
|
|
|
.toggle__label::before, .toggle__label::after {
|
|
|
|
border-color: black;
|
|
|
|
}
|
|
|
|
.toggle__text::before {
|
|
|
|
border-color: black;
|
|
|
|
}
|
2020-08-07 12:11:13 +00:00
|
|
|
|
|
|
|
.tox-notification {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tox {
|
|
|
|
border-radius: 4px !important;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2020-08-07 07:47:23 +00:00
|
|
|
</style>
|
2020-08-07 12:11:13 +00:00
|
|
|
<script src="https://cdn.tiny.cloud/1/ikwmbvigw8ass90tn37xiql6mk1gjoks77t3m6tld60hdjov/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
|
2020-06-29 10:53:08 +00:00
|
|
|
<h1>Rediger Link:</h1>
|
|
|
|
<form method="post" action="{{route("events.update", ["event" => $event])}}">
|
|
|
|
@csrf
|
|
|
|
@method("PUT")
|
2020-06-30 06:52:11 +00:00
|
|
|
<label for="event_title">Event Titel:</label>
|
|
|
|
<input value="{{$event->name}}" type="text" name="name" id="event_title" required>
|
2020-08-06 12:47:22 +00:00
|
|
|
<label for="accountable">Event Ansvarlig:</label>
|
|
|
|
<input value="{{$event->accountable}}" type="text" name="accountable" id="accountable" required>
|
2020-06-30 06:52:11 +00:00
|
|
|
<label for="description">Beskrivelse</label>
|
2020-08-07 12:11:13 +00:00
|
|
|
<textarea type="text" name="description" id="description" required>{!! $event->description !!}</textarea>
|
2020-06-30 06:52:11 +00:00
|
|
|
<label for="date">Beskrivelse</label>
|
2020-08-03 12:47:06 +00:00
|
|
|
<input value="{{$event->date}}" type="datetime-local" name="date" id="date" required>
|
2020-08-07 07:47:23 +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-29 10:53:08 +00:00
|
|
|
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
|
|
|
</form>
|
2020-08-07 12:11:13 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
tinymce.init({
|
|
|
|
selector: 'textarea',
|
|
|
|
setup: function (editor) {
|
|
|
|
editor.on('change', function () {
|
|
|
|
tinymce.triggerSave();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2020-06-22 13:25:39 +00:00
|
|
|
@endsection
|