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

@ -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