First version almost done
This commit is contained in:
parent
b5c1f40a45
commit
7a33f5f889
14 changed files with 274 additions and 28 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue