diff options
author | Mateja <mail@matejamaric.com> | 2020-11-06 19:59:52 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-11-06 19:59:52 +0100 |
commit | 7907c1eecc37e5378da0e28838203c70c693ec71 (patch) | |
tree | 9857f84448852867b3cd85aece534478fb05d09e /resources/views | |
parent | 34b559e17e7896ca5b19221187f77c063b68d8eb (diff) | |
download | yota-laravel-7907c1eecc37e5378da0e28838203c70c693ec71.tar.gz yota-laravel-7907c1eecc37e5378da0e28838203c70c693ec71.zip |
Gallery work...
Diffstat (limited to 'resources/views')
-rw-r--r-- | resources/views/inc/navbar.blade.php | 6 | ||||
-rw-r--r-- | resources/views/inc/special_navbar.blade.php | 4 | ||||
-rw-r--r-- | resources/views/pages/gallery-add.blade.php | 13 |
3 files changed, 18 insertions, 5 deletions
diff --git a/resources/views/inc/navbar.blade.php b/resources/views/inc/navbar.blade.php index 60bda7b..332c799 100644 --- a/resources/views/inc/navbar.blade.php +++ b/resources/views/inc/navbar.blade.php @@ -16,12 +16,12 @@ <div class="navbar-nav ml-auto"> @if (Auth::check()) <div class="nav-item dropdown"> - <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> + <span class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Administration - </a> + </span> <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> <a class="dropdown-item" href="{{ route('newsAdd') }}">News</a> - <a class="dropdown-item" href="#">Gallery</a> + <a class="dropdown-item" href="{{ route('galleryAdd') }}">Gallery</a> </div> </div> <a href="{{ route('logout') }}" class="nav-item nav-link">Logout</a> diff --git a/resources/views/inc/special_navbar.blade.php b/resources/views/inc/special_navbar.blade.php index 763a470..69ec1e8 100644 --- a/resources/views/inc/special_navbar.blade.php +++ b/resources/views/inc/special_navbar.blade.php @@ -13,9 +13,9 @@ <div class="navbar-nav ml-auto"> @if (Auth::check()) <div class="nav-item dropdown"> - <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> + <span class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Administration - </a> + </span> <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> <a class="dropdown-item" href="{{ route('addSign') }}">Callsigns</a> <a class="dropdown-item" href="{{ route('reservations') }}">Reservations</a> diff --git a/resources/views/pages/gallery-add.blade.php b/resources/views/pages/gallery-add.blade.php new file mode 100644 index 0000000..2d0ec27 --- /dev/null +++ b/resources/views/pages/gallery-add.blade.php @@ -0,0 +1,13 @@ +@extends('layouts.app') + +@section('title', 'Add image') + +@section('content') + <form action="{{ route('galleryAddForm')}}" method="POST" enctype="multipart/form-data"> + @csrf + <div class="form-group"> + <input type="file" placeholder="Choose images" name="images"/> + </div> + <input type="submit" value="Submit" name="submit" class="btn btn-primary"/> + </form> +@endsection() |