commit
Showing
1 changed file
with
8 additions
and
10 deletions
| ... | @@ -2,23 +2,21 @@ | ... | @@ -2,23 +2,21 @@ |
| 2 | @extends('app') | 2 | @extends('app') |
| 3 | @section('content') | 3 | @section('content') |
| 4 | 4 | ||
| 5 | <form action="{{route('addentry', [])}}" method="post" enctype="multipart/form-data"> | 5 | |
| 6 | |||
| 7 | |||
| 8 | <form action="add" method="post" enctype="multipart/form-data"> | ||
| 6 | <input type="file" name="filefield"> | 9 | <input type="file" name="filefield"> |
| 7 | <input type="submit"> | 10 | <input type="submit"> |
| 8 | </form> | 11 | </form> |
| 9 | 12 | ||
| 10 | <h1> Pictures list</h1> | 13 | <h1> Pictures list</h1> |
| 14 | |||
| 11 | <div class="row"> | 15 | <div class="row"> |
| 12 | <ul class="thumbnails"> | 16 | |
| 17 | <ul> | ||
| 13 | @foreach($entries as $entry) | 18 | @foreach($entries as $entry) |
| 14 | <div class="col-md-2"> | 19 | <li>{{entry->filename}}</li> |
| 15 | <div class="thumbnail"> | ||
| 16 | <img src="{{route('getentry', $entry->filename)}}" alt="ALT NAME" class="img-responsive" /> | ||
| 17 | <div class="caption"> | ||
| 18 | <p>{{$entry->original_filename}}</p> | ||
| 19 | </div> | ||
| 20 | </div> | ||
| 21 | </div> | ||
| 22 | @endforeach | 20 | @endforeach |
| 23 | </ul> | 21 | </ul> |
| 24 | </div> | 22 | </div> | ... | ... |
-
Please register or sign in to post a comment