diff options
Diffstat (limited to 'resources/views/pages')
-rw-r--r-- | resources/views/pages/gallery-add.blade.php | 13 |
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> |