summaryrefslogtreecommitdiff
path: root/resources/views
diff options
context:
space:
mode:
authorhorus2020-10-01 01:15:59 +0200
committerhorus2020-10-01 01:15:59 +0200
commit24583ef2b3e7185f3a3e12cd1566bdada6d2f743 (patch)
treeb3ca7e1bc909e3b4c64d112c2394a7834a014bc7 /resources/views
parente6194704303c4e5ad44c1bb9d6c2e17fe5eb133b (diff)
downloadsenpai-24583ef2b3e7185f3a3e12cd1566bdada6d2f743.tar.gz
add form to change season
Diffstat (limited to 'resources/views')
-rw-r--r--resources/views/list_anime.blade.php45
1 files changed, 38 insertions, 7 deletions
diff --git a/resources/views/list_anime.blade.php b/resources/views/list_anime.blade.php
index 32ad79b..df1971f 100644
--- a/resources/views/list_anime.blade.php
+++ b/resources/views/list_anime.blade.php
@@ -1,15 +1,46 @@
@extends('layouts.app')
@section('content')
+
<div class="container" id="index">
-<div class="jumbotron">
- <h1>{{ $title }}</h1>
- @if ( "airing_anime" == \Request::route()->getName() )
- <p class="lead text-muted">
- @php echo getSeason() @endphp @php echo date("Y") @endphp
- </p>
+<div class="page-header">
+ <div class="row">
+ @if ( "airing_anime" == \Request::route()->getName() || "season" == \Request::route()->getName() )
+ <div class="col-6">
+ @endif
+
+ <h1>{{ $title }}</h1>
+ @if ( "airing_anime" == \Request::route()->getName() )
+ <p class="lead text-muted">
+ {{ getSeason() }} {{ date("Y") }}
+ </p>
+ @endif
+
+ @if ( "airing_anime" == \Request::route()->getName() || "season" == \Request::route()->getName() )
+ </div>
+ @endif
+
+ @if ( "airing_anime" == \Request::route()->getName() || "season" == \Request::route()->getName() )
+ <!-- Change Season -->
+ <div class="col-6">
+ <form id="season_change" action="/changeSeason/" method="get">
+ <div class="form-group">
+ <label for="season_switcher">
+ <h3>Change Season</h3>
+ </label>
+ <select name="season" id="season_switcher" class="custom-select" required>
+ @foreach( getChangeSeasonOptions() as $season )
+ <option value="{{ $season->season_name }}-{{ $season->season_year }}">{{ $season->season_name }} {{ $season->season_year }}</option>
+ @endforeach
+ </select>
+ </div>
+ <button class="btn btn-primary" type="submit">&nbsp; Go! &nbsp;</button>
+ </form>
+ </div>
@endif
+
+ </div>
</div>
<div class="row">
@foreach($all_anime as $anime)
@@ -17,7 +48,7 @@
@once
</div>
- <div class="jumbotron">
+ <div id="continuing" class="jumbotron" style="margin-top: 2rem;">
<h2>Continuing from earlier Seasons</h2>
</div>