aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-07 00:10:15 +0100
committerMateja <mail@matejamaric.com>2020-11-07 00:10:15 +0100
commite4fec1b5386c19a7c0bfb28b850862159c8710dd (patch)
tree21b6d41bda84fc85aaab996bdc2bf1bdb76d1cca /resources/views/pages
parent7907c1eecc37e5378da0e28838203c70c693ec71 (diff)
downloadyota-laravel-e4fec1b5386c19a7c0bfb28b850862159c8710dd.tar.gz
yota-laravel-e4fec1b5386c19a7c0bfb28b850862159c8710dd.zip
Work on gallery...
Diffstat (limited to 'resources/views/pages')
-rw-r--r--resources/views/pages/gallery-add.blade.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/resources/views/pages/gallery-add.blade.php b/resources/views/pages/gallery-add.blade.php
index 2d0ec27..868f212 100644
--- a/resources/views/pages/gallery-add.blade.php
+++ b/resources/views/pages/gallery-add.blade.php
@@ -5,8 +5,19 @@
@section('content')
<form action="{{ route('galleryAddForm')}}" method="POST" enctype="multipart/form-data">
@csrf
+ @if ($errors->any())
+ <div class="alert alert-danger">
+ <ul>
+ @foreach ($errors->all() as $error)
+ <li>{{ $error }}</li>
+ @endforeach
+ </ul>
+ </div>
+ @endif
<div class="form-group">
- <input type="file" placeholder="Choose images" name="images"/>
+ <label for="img">Choose images:</label>
+ <br>
+ <input type="file" name="images[]" id="img" accept="image/*" multiple required>
</div>
<input type="submit" value="Submit" name="submit" class="btn btn-primary"/>
</form>