Merge branch 'master' of https://github.com/sebathefox/skolehjem-webapp
Conflicts: skolehjem/resources/views/admin/events/create.blade.php
This commit is contained in:
@@ -17,15 +17,20 @@
|
||||
.toggle__text::before {
|
||||
border-color: black;
|
||||
}
|
||||
.ck-editor__main {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
</style>
|
||||
<h1>Opret Aktivitet:</h1>
|
||||
<form method="post" action="{{ route("events.store") }}">
|
||||
@csrf
|
||||
<label for="name">Navn:</label>
|
||||
<label for="name">Event Navn:</label>
|
||||
<input type="text" name="name" id="name" max="60" required>
|
||||
<label for="description">Beskrivelse:</label>
|
||||
<input type="text" name="description" id="description" max="500" required>
|
||||
<label for="date">Aktivitet dato:</label>
|
||||
<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>
|
||||
<input type="datetime-local" name="date" id="date" required>
|
||||
<label class="toggle">
|
||||
<input class="toggle__input" type="checkbox" name="newsoption">
|
||||
@@ -35,4 +40,15 @@
|
||||
</label>
|
||||
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
||||
</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