tippspiel/pfosten/resources/views/games/edit.blade.php
2017-06-26 17:21:30 +02:00

49 lines
No EOL
2.3 KiB
PHP

@extends('layouts.layout')
@section('content')
<div class="col-md-8">
<h1>Spiel bearbeiten</h1>
<form method="POST" action="/games/store">
{{ csrf_field() }}
<div class="form-group">
<div style="float:left; width:150px">
<input type="text" class="form-control" id="team1" name="team1" value="{{ $game->team1 }}" required>
</div>
<div style="float:left; width:150px">
<input type="text" class="form-control" id="team2" name="team2" value="{{ $game->team2 }}" required>
</div>
<div style="float:left; width:25px">&nbsp;&nbsp;&nbsp;</div>
<div style="float:left; width:40px">
<input type="text" class="form-control" id="score1" name="score1" value="{{ $game->score1==-1?'':$game->score1 }}" required>
</div>
<div style="float:left; width:15px">&nbsp; : &nbsp;</div>
<div style="float:left; width:40px">
<input type="text" class="form-control" id="score2" name="score2" value="{{ $game->score2==-1?'':$game->score2 }}" required>
</div>
<div style="float:left; width:25px">&nbsp;&nbsp;&nbsp;</div>
<!--<div style="float:left; width:175px">-->
<div style="float:left; width:225px">
<label class="lead">Anstoss:</label>
<div class='input-group has_datetimepicker' id='datetimepicker2'>
<input style="float:left;width:150px" type="text" class="form-control" id="kickoff" name="kickoff" value="{{ $kickoff_german }}" required>
<span class="input-group-addon" style="float:left;width:50px;">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<input type="hidden" name="id" value="{{ $game->id }}">
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Ok</button>
</div>
</form>
</div>
@endsection