v0.8.4a - Added last support for images uploade
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</style>
|
||||
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
|
||||
<h1>Opret Vejledning</h1>
|
||||
<form method="post" action="{{ route("guides.store") }}">
|
||||
<form method="post" action="{{ route("guides.store") }}" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<label for="title">Titel på guiden</label>
|
||||
<input type="text" name="name" id="title" required>
|
||||
@@ -36,6 +36,8 @@
|
||||
<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>
|
||||
|
||||
|
||||
@@ -37,9 +37,15 @@
|
||||
@if(!$guides->isEmpty())
|
||||
@foreach($guides as $guide)
|
||||
<div class="card">
|
||||
<div class="header">
|
||||
<h3>{{ $guide->name}}</h3>
|
||||
@if($guide->resource_id !== null)
|
||||
<div class="header" style="background-size: cover; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $guide->resource_id)->first()->filename) }}');">
|
||||
<h3 style="text-shadow: 2px 2px 2px #00078A;">{{ $guide->name}}</h3>
|
||||
</div>
|
||||
@else
|
||||
<div class="header">
|
||||
<h3>{{ $guide->name}}</h3>
|
||||
</div>
|
||||
@endif
|
||||
<div class="container">
|
||||
{!! \App\Helpers::closetags(substr($guide->guide_articles, 0, 300)) !!}
|
||||
<a style="width: 33%; margin: 0; padding: 0; text-align: center; font-weight: 700;" class="sde-blue" href="{{route("guides.show", ["guide" => $guide->id ])}}">Læs mere</a>
|
||||
|
||||
Reference in New Issue
Block a user