v0.8.3 - Added uploade images function

This commit is contained in:
2020-08-12 12:28:05 +02:00
parent 9c26526740
commit e080b69d98
14 changed files with 83 additions and 21 deletions
@@ -24,7 +24,7 @@
</style>
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
<h1>Opret Aktivitet:</h1>
<form method="post" action="{{ route("events.store") }}">
<form method="post" action="{{ route("events.store") }}" enctype="multipart/form-data">
@csrf
<label for="name">Event Navn:</label>
<input type="text" name="name" id="name" max="60" required>
@@ -41,6 +41,9 @@
<span class="toggle__text">Opret som nyhed</span>
</span>
</label>
<label id="fileuploadee"for="fileuploade">Baggrundsbillede til nyheden (Valgfri):</label>
<input id="fileuploade" type="file" name="resource">
<input type="submit" class="btn btn-dark text-white" value="Opret">
</form>
<script src="https://cdn.quilljs.com/1.3.6/quill.js"></script>