2020-06-29 09:34:21 +00:00
|
|
|
@extends("admin.layout.base")
|
|
|
|
@extends("admin.layout.header")
|
|
|
|
|
|
|
|
@section("title")
|
|
|
|
Kontakt - Rediger
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("path")
|
|
|
|
<a href="{{ route('contacts.edit', ['contact' => $contact]) }}" class="text-white">Rediger Kontakt</a> /
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-08-05 07:23:57 +00:00
|
|
|
<style>
|
|
|
|
.ck-editor__main {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script src="https://cdn.ckeditor.com/ckeditor5/21.0.0/classic/ckeditor.js"></script>
|
|
|
|
|
2020-06-29 09:34:21 +00:00
|
|
|
<h1>Rediger Kontakt:</h1>
|
|
|
|
<form method="post" action="{{ route("contacts.update", ['contact' => $contact]) }}">
|
|
|
|
@csrf
|
|
|
|
@method("put")
|
2020-07-27 11:34:45 +00:00
|
|
|
<label for="contactname">Kontakt Navn:</label>
|
|
|
|
<input type="text" name="contactname" id="contactname" placeholder="Navn" value="{{ $contact->contactname }}" required>
|
|
|
|
<label for="title">Titel:</label>
|
|
|
|
<input type="text" name="title" id="title" placeholder="Titel" value="{{ $contact->title }}" required>
|
2020-06-29 09:34:21 +00:00
|
|
|
<label for="email">Email:</label>
|
|
|
|
<input type="email" name="email" id="email" placeholder="x@y.z" value="{{ $contact->email }}" required>
|
|
|
|
<label for="tel">Telefon nr:</label>
|
|
|
|
<input type="tel" name="phone" id="tel" placeholder="12345678" value="{{ $contact->phone }}" pattern="[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{2}" required>
|
2020-08-05 07:43:53 +00:00
|
|
|
<label for="teltimes">Telefon tider: (Forblives blank, hvis der ikke er nogen bestemte tider) - Brug Shift+Enter for at teksten vises lige neden under hinanden på hjemmesiden</label>
|
2020-08-05 07:23:57 +00:00
|
|
|
<textarea name="phonetimes" id="editor">{{ $contact->phonetimes }}</textarea>
|
2020-08-05 07:43:53 +00:00
|
|
|
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
2020-06-29 09:34:21 +00:00
|
|
|
</form>
|
2020-08-05 07:23:57 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
ClassicEditor
|
|
|
|
.create( document.querySelector( '#editor' ), {
|
2020-08-05 07:43:53 +00:00
|
|
|
toolbar: [ 'heading', '|', 'bold', 'italic', 'link' ],
|
2020-08-05 07:23:57 +00:00
|
|
|
heading: {
|
|
|
|
options: [
|
|
|
|
{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
|
|
|
|
{ model: 'heading1', view: 'h3', title: 'Heading 1', class: 'sde-blue' },
|
|
|
|
{ model: 'heading2', view: 'h4', title: 'Heading 2', class: 'sde-blue' }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
} )
|
|
|
|
.catch( error => {
|
|
|
|
console.log( error );
|
|
|
|
} );
|
|
|
|
|
|
|
|
</script>
|
2020-06-29 09:34:21 +00:00
|
|
|
@endsection
|