First version almost done

This commit is contained in:
Torsten 2017-06-22 17:00:09 +02:00
parent b5c1f40a45
commit 7a33f5f889
14 changed files with 274 additions and 28 deletions

View file

@ -1,6 +1,7 @@
<footer class="text-muted">
<div class="container text-center">
<div>&nbsp;</div>
<div class="container text-center">
<p>Anfragen aller Art bitte an Volker Geissler.</p>
<p>Tel. 0172xxxxxxx, vg@aol.com</p>

View file

@ -18,7 +18,7 @@
@include('layouts.nav')
<div class="container">
<div class="container" width:800px">
@yield('content')
</div>

View file

@ -6,8 +6,8 @@
<a class="lead" href="/seasons">Saison</a> &nbsp; &nbsp; &nbsp;
<a class="lead" href="/rounds">Runden</a> &nbsp; &nbsp; &nbsp;
<a class="lead" href="/users">Spieler</a> &nbsp; &nbsp; &nbsp;
<a class="lead" href="#">Tipps</a> &nbsp; &nbsp; &nbsp;
<a class="lead" href="/register" >Rangliste</a> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
<a class="lead" href="/tipps">Tipps</a> &nbsp; &nbsp; &nbsp;
<a class="lead" href="#" >Rangliste</a> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
<label class="lead text ml-auto" >Spieler: {{ Auth::user()->name }}</label><a class="lead" href="/logout">(abmelden)</a>
@endif

View file

@ -0,0 +1,34 @@
@extends('layouts.layout')
@section('content')
<div class="col-md-8">
<h1>Spieltipp:</h1>
<div style="float:left;width:250px" class="lead">{{ $game->team1 }} : {{ $game->team2 }}</div>
<div style="float:left;width:150px" >
<form method="POST" action="/tipps/store">
{{ csrf_field() }}
<div class="form-group">
<input style="float:left; width:50px;" type="text" class="lead" id="name" name="score1" value="{{ $tipp->score1 }}" required>
<p style="float:left; width:25px;">&nbsp; : &nbsp;</p>
<input style="float:left; width:50px;" type="text" class="lead" id="name" name="score2" value="{{ $tipp->score2 }}" required>
<label class="lead">Joker: &nbsp;</label>
{{ Form::checkbox('joker', 'yes', $tipp->joker ) }} <!-- name, value, checked -->
<input type="hidden" name="id" value="{{ $tipp->id }}">
<input type="hidden" name="round_id" value="{{ $game->round_id }}">
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Ok</button>
</div>
</form>
</div>
</div>
@endsection

View file

@ -0,0 +1,35 @@
@extends('layouts.layout')
@section('content')
<section class="jumbotron text-center">
<div class="container" style="float:left; width:800px">
@if ($activeSeason)
<label>Saison:{{ $activeSeason->name }}</label>
@endif
<p class="lead">Tipps</p>
@if ($activeSeason)
<div>
@foreach($rounds->reverse() as $round)
<div><label class="text lead">{{ $round->name }} </label></div>
@foreach($round->games as $game)
<img src="/img/joker.png" style="{{ (App\Tipp::getTipp($game->id, $user->id)->joker==true ? 'float:left;width:32px;height:32px' : 'display: none;') }}">
<div style="width:600px"><label class="text" href="/games/edit/{{ $game->id }}">{{ $game->team1 }} : {{ $game->team2 }} [ Anstoss {{ $game->kickoff }} ] </label>
<a href="/tipps/edit/{{App\Tipp::getTipp($game->id,$user->id)->id}}">{{ App\Tipp::getTipp($game->id, $user->id)->score1 }} : {{ App\Tipp::getTipp($game->id, $user->id)->score2 }}</a>
</div>
<label style="float:left;width=30px;">{{ App\Tipp::getScore($game->id,$user->id) }}</label>
<p>&nbsp;</p>
@endforeach
<p>&nbsp;</p>
@endforeach
</div>
@endif
</div>
</section>
@endsection

View file

@ -21,6 +21,7 @@
<div>
<label style="float:left; width:150px" for="name">Zahlung für Saison:</label>
<input style="width:150px" type="text" class="form-control has_datepicker" id="paid" name="paid" value="{{ $paid_date_str }}" >
</div>
<p>&nbsp;</p>
<div>
@ -31,7 +32,9 @@
<div>
<label style="float:left; width:150px;" for="admin">Admin:</label>
{{ Form::checkbox('admin', 'value', $user->admin ) }}
{{ Form::checkbox('admin', 'admin', $user->admin ) }} <!-- name, value, checked -->
<!-- <input style="width:150px" type="checkbox" class="form-control" id="admin" name="admin" value="{{ $user->admin }}" > -->
</div>