First version almost done
This commit is contained in:
parent
b5c1f40a45
commit
7a33f5f889
14 changed files with 274 additions and 28 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<footer class="text-muted">
|
||||
<div class="container text-center">
|
||||
<div> </div>
|
||||
|
||||
<div class="container text-center">
|
||||
<p>Anfragen aller Art bitte an Volker Geissler.</p>
|
||||
<p>Tel. 0172xxxxxxx, vg@aol.com</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
@include('layouts.nav')
|
||||
|
||||
<div class="container">
|
||||
<div class="container" width:800px">
|
||||
@yield('content')
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
<a class="lead" href="/seasons">Saison</a>
|
||||
<a class="lead" href="/rounds">Runden</a>
|
||||
<a class="lead" href="/users">Spieler</a>
|
||||
<a class="lead" href="#">Tipps</a>
|
||||
<a class="lead" href="/register" >Rangliste</a>
|
||||
<a class="lead" href="/tipps">Tipps</a>
|
||||
<a class="lead" href="#" >Rangliste</a>
|
||||
|
||||
<label class="lead text ml-auto" >Spieler: {{ Auth::user()->name }}</label><a class="lead" href="/logout">(abmelden)</a>
|
||||
@endif
|
||||
|
|
|
|||
34
pfosten/resources/views/tipps/edit.blade.php
Normal file
34
pfosten/resources/views/tipps/edit.blade.php
Normal 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;"> : </p>
|
||||
<input style="float:left; width:50px;" type="text" class="lead" id="name" name="score2" value="{{ $tipp->score2 }}" required>
|
||||
|
||||
<label class="lead">Joker: </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
|
||||
35
pfosten/resources/views/tipps/index.blade.php
Normal file
35
pfosten/resources/views/tipps/index.blade.php
Normal 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> </p>
|
||||
@endforeach
|
||||
<p> </p>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</section>
|
||||
@endsection
|
||||
|
|
@ -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> </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>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue