Added HTML Helpers from Laravelcollective
This commit is contained in:
parent
0736ecf29f
commit
b5c1f40a45
31 changed files with 614 additions and 220 deletions
43
pfosten/resources/views/games/edit.blade.php
Normal file
43
pfosten/resources/views/games/edit.blade.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
@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"> </div>
|
||||
<div style="float:left; width:40px">
|
||||
<input type="text" class="form-control" id="score1" name="score1" value="{{ $game->score1 }}" required>
|
||||
</div>
|
||||
<div style="float:left; width:15px"> : </div>
|
||||
<div style="float:left; width:40px">
|
||||
<input type="text" class="form-control" id="score2" name="score2" value="{{ $game->score2}}" required>
|
||||
</div>
|
||||
<div style="float:left; width:25px"> </div>
|
||||
<!--<div style="float:left; width:175px">-->
|
||||
<div style="float:left; width:225px">
|
||||
<!-- <input type="datetime-local" class="form-control" id="kickoff" name="kickoff" value="{{ $game->kickoff}}" required> -->
|
||||
<input type="text" class="has_datepicker" id="kickoff" name="kickoff" value="{{ $game->kickoff }}" required>
|
||||
|
||||
</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
|
||||
|
|
@ -5,4 +5,14 @@
|
|||
<p>Tel. 0172xxxxxxx, vg@aol.com</p>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="/js/bootstrap-datetimepicker.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(".has_datepicker").datetimepicker({format: 'yyyy-mm-dd hh:ii'});
|
||||
</script>
|
||||
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -1,29 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<link rel="icon" href="../../favicon.ico">
|
||||
<title>Hoschis Vollpfosten</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<link rel="icon" href="../../favicon.ico">
|
||||
<title>Hoschis Vollpfosten</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="/css/bootstrap-datetimepicker.min.css">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="/css/album.css" rel="stylesheet">
|
||||
</head>
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="/css/album.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body>
|
||||
|
||||
@include('layouts.nav')
|
||||
@include('layouts.nav')
|
||||
|
||||
<div class="container">
|
||||
@yield('content')
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
@yield('content')
|
||||
</div>
|
||||
@include('layouts.footer')
|
||||
|
||||
|
||||
@include('layouts.footer')
|
||||
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
@if (Auth::check())
|
||||
<a class="lead" href="/seasons">Saison</a>
|
||||
<a class="lead" href="/rounds">Runden</a>
|
||||
<a class="lead" href="#">Spieler</a>
|
||||
<a class="lead" href="/users">Spieler</a>
|
||||
<a class="lead" href="#">Tipps</a>
|
||||
<a class="lead" href="/register" >Rangliste</a>
|
||||
|
||||
|
|
|
|||
32
pfosten/resources/views/main.blade.php
Normal file
32
pfosten/resources/views/main.blade.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<section class="jumbotron text-center">
|
||||
<div class="container">
|
||||
<h1 class="jumbotron-heading">Hoschis Vollpfosten</h1>
|
||||
<p class="lead text-muted">Eine Tippgemeinschaft unter Freunden.</p>
|
||||
<div><p></p><p></p><p></p></div>
|
||||
|
||||
@if (!Auth::check())
|
||||
<div>
|
||||
<a href="/login" class="btn btn-primary">Anmelden</a>
|
||||
</div>
|
||||
<div><p></p><p></p><p></p></div>
|
||||
</div>
|
||||
<a href="/register" class="btn btn-primary">Registrieren</a>
|
||||
</div>
|
||||
@endif
|
||||
@if (Auth::check())
|
||||
|
||||
<div class="lead"> </div>
|
||||
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
|
||||
@endif
|
||||
|
||||
</section>
|
||||
|
||||
@endsection
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head><title></title></head>
|
||||
<body><h1>Hello World</h1></body>
|
||||
</html>
|
||||
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
@section('content')
|
||||
<div class="col-md-8">
|
||||
<h1>Runde erstellen</h1>
|
||||
@if($currentSeason==null)
|
||||
<h1>Bitte zuerst eine Saison erstellen</h1>
|
||||
@endif
|
||||
<h1>Runde erstellen für Saison:{{ $currentSeason->name }}</h1>
|
||||
|
||||
|
||||
<form method="POST" action="/rounds/store">
|
||||
|
|
@ -12,6 +15,87 @@
|
|||
<input type="text" class="form-control" id="name" name="name" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group" >
|
||||
<label class="lead">Spiel 1</label>
|
||||
<span class="form-group" style="float:right;width:400px;">
|
||||
|
||||
<label for="game1_team1">Team 1:</label>
|
||||
<input type="text" class="form-control" id="game1_team1" name="game1_team1" required>
|
||||
|
||||
<label for="game1_team2">Team 2:</label>
|
||||
<input type="text" class="form-control" id="game1_team2" name="game1_team2" required>
|
||||
|
||||
<label for="game1_kickoff">Anstoss:</label>
|
||||
<input type="datetime-local" class="form-control" id="game1_kickoff" name="game1_kickoff" required>
|
||||
|
||||
</span>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
</div>
|
||||
|
||||
<div class="form-group" >
|
||||
<label class="lead">Spiel 2</label>
|
||||
<span class="form-group" style="float:right;width:400px;">
|
||||
|
||||
<label for="game2_team1">Team 1:</label>
|
||||
<input type="text" class="form-control" id="game2_team1" name="game2_team1" required>
|
||||
|
||||
<label for="game1_team1">Team 2:</label>
|
||||
<input type="text" class="form-control" id="game2_team2" name="game2_team2" required>
|
||||
|
||||
<label for="game2_kickoff">Anstoss:</label>
|
||||
<input type="datetime-local" class="form-control" id="game2_kickoff" name="game2_kickoff" required>
|
||||
</span>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
</div>
|
||||
|
||||
<div class="form-group" >
|
||||
<label class="lead">Spiel 3</label>
|
||||
<span class="form-group" style="float:right;width:400px;">
|
||||
|
||||
<label for="game3_team1">Team 1:</label>
|
||||
<input type="text" class="form-control" id="game3_team1" name="game3_team1" required>
|
||||
|
||||
<label for="game3_team2">Team 2:</label>
|
||||
<input type="text" class="form-control" id="game3_team2_name" name="game3_team2" required>
|
||||
|
||||
<label for="game3_kickoff">Anstoss:</label>
|
||||
<input type="datetime-local" class="form-control" id="game3_kickoff" name="game3_kickoff" required>
|
||||
</span>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
</div>
|
||||
|
||||
<div class="form-group" >
|
||||
<label class="lead">Spiel 4</label>
|
||||
<span class="form-group" style="float:right;width:400px;">
|
||||
|
||||
<label for="game4_team1">Team 1:</label>
|
||||
<input type="text" class="form-control" id="game4_team1" name="game4_team1" required>
|
||||
|
||||
<label for="game4_team2">Team 2:</label>
|
||||
<input type="text" class="form-control" id="game4_team2" name="game4_team2" required>
|
||||
|
||||
<label for="game4_kickoff">Anstoss:</label>
|
||||
<input type="datetime-local" class="form-control" id="game4_kickoff" name="game4_kickoff" required>
|
||||
</span>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary">Erstellen</button>
|
||||
</div>
|
||||
|
|
|
|||
27
pfosten/resources/views/rounds/editname.blade.php
Normal file
27
pfosten/resources/views/rounds/editname.blade.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-8">
|
||||
|
||||
<h1>Name der Runde:</h1>
|
||||
|
||||
|
||||
<form method="POST" action="/rounds/storename">
|
||||
{{ csrf_field() }}
|
||||
<div class="form-group">
|
||||
<label for="name">Name:</label>
|
||||
<input type="text" class="form-control" id="name" name="name" value="{{ $round->name }}" required>
|
||||
<input type="hidden" name="round_id" value="{{ $round->id }}">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary">Ok</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
|
@ -5,24 +5,28 @@
|
|||
<div class="container">
|
||||
|
||||
@if ($activeSeason)
|
||||
<label>Aktive Saison:{{ $activeSeason->name }}</label>
|
||||
<label>Saison:{{ $activeSeason->name }}</label>
|
||||
@endif
|
||||
|
||||
<div class="lead">Runden Liste</div>
|
||||
<div class="lead">Runden</div>
|
||||
<div><a href="/rounds/create" class="btn btn-primary">Runde hinzufügen</a></div>
|
||||
<p> </p>
|
||||
|
||||
@if ($activeSeason)
|
||||
<div>
|
||||
<ul>
|
||||
|
||||
@foreach($rounds as $round)
|
||||
<li class="text list-unstyled">{{ $round->name }}</li>
|
||||
@foreach($rounds->reverse() as $round)
|
||||
<div><a class="text lead" href="/rounds/editname/{{ $round->id }}">{{ $round->name }} </a></div>
|
||||
@foreach($round->games as $game)
|
||||
<div><a class="text" href="/games/edit/{{ $game->id }}">{{ $game->team1 }} : {{ $game->team2 }} [ Anstoss {{ $game->kickoff }} ] </a></div>
|
||||
@endforeach
|
||||
</ul>
|
||||
<p> </p>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div><a href="/rounds/create" class="btn btn-primary">Neue anlegen</a></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@
|
|||
@section('content')
|
||||
<section class="jumbotron text-center">
|
||||
<div class="container">
|
||||
|
||||
<div class="lead">Saison Liste</div>
|
||||
@if ($activeSeason)
|
||||
<div class="lead">Saison: {{ $activeSeason->name }}</div>
|
||||
@endif
|
||||
|
||||
@if ($activeSeason)
|
||||
<div>
|
||||
<ul>
|
||||
|
||||
@foreach($seasons as $season)
|
||||
<li class="text list-unstyled">{{ $season->name }}</li>
|
||||
@endforeach
|
||||
|
|
@ -17,15 +17,7 @@
|
|||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div> <a href="/seasons/create" class="btn btn-primary">Neue anlegen</a></div>
|
||||
|
||||
@if ($activeSeason)
|
||||
<div class="container">
|
||||
<label>Aktive Saison:{{ $activeSeason->name }}</label>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div><a href="/seasons/create" class="btn btn-primary">Neue anlegen</a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
53
pfosten/resources/views/users/edit.blade.php
Normal file
53
pfosten/resources/views/users/edit.blade.php
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-8">
|
||||
<h1>Spieler bearbeiten</h1>
|
||||
<a style="float:right;" href="#" class="btn btn-primary">Spielerkonto löschen</a>
|
||||
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
|
||||
<form method="POST" action="/users/store" id="playerform">
|
||||
{{ csrf_field() }}
|
||||
<div class="form-group">
|
||||
|
||||
<div>
|
||||
<label style="float:left; width:150px" for="name">Name:</label>
|
||||
<input type="text" class="form-control" id="name" name="name" value="{{ $user->name }}" required>
|
||||
</div>
|
||||
<p> </p>
|
||||
<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>
|
||||
<label style="float:left; width:150px" for="name">Email:</label>
|
||||
<input style="width:150px" type="text" class="form-control" id="email" name="email" value="{{ $user->email }}" required>
|
||||
</div>
|
||||
<p> </p>
|
||||
<div>
|
||||
<label style="float:left; width:150px;" for="admin">Admin:</label>
|
||||
|
||||
{{ Form::checkbox('admin', 'value', $user->admin ) }}
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden" name="id" value="{{ $user->id }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<span>
|
||||
</span><button type="submit" class="btn btn-primary" style="float:none; width:100px">Ok</button>
|
||||
</div>
|
||||
</form>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
|
@ -3,37 +3,47 @@
|
|||
@section('content')
|
||||
<section class="jumbotron text-center">
|
||||
<div class="container">
|
||||
<h1 class="jumbotron-heading">Hoschis Vollpfosten</h1>
|
||||
<p class="lead text-muted">Eine Tippgemeinschaft unter Freunden.</p>
|
||||
<div><p></p><p></p><p></p></div>
|
||||
|
||||
@if (!Auth::check())
|
||||
<div>
|
||||
<a href="/login" class="btn btn-primary">Anmelden</a>
|
||||
</div>
|
||||
<div><p></p><p></p><p></p></div>
|
||||
</div>
|
||||
<a href="/register" class="btn btn-primary">Registrieren</a>
|
||||
</div>
|
||||
@endif
|
||||
@if (Auth::check())
|
||||
<div class="lead">Spieler:</div>
|
||||
|
||||
<div class="lead"> Spielerliste:</div>
|
||||
<p> </p>
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
@foreach($users as $user)
|
||||
<li class="text list-unstyled">{{ $user->name }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<!--
|
||||
<div>
|
||||
<a href="/logout" class="btn btn-primary">Abmelden</a>
|
||||
</div>
|
||||
-->
|
||||
@endif
|
||||
<div>
|
||||
<table class="table-bordered">
|
||||
<tr class="table-bordered">
|
||||
<td class="table-bordered">Name</td>
|
||||
<td class="table-bordered"> Saison bezahlt </td>
|
||||
<td class="table-bordered">Status</td>
|
||||
</tr>
|
||||
@foreach($users as $user)
|
||||
<tr>
|
||||
<td class="table-bordered"> <a class="text list-unstyled" href="/users/edit/{{$user->id}}">{{ $user->name }} </a></td>
|
||||
<td class="table-bordered">{{ App\User::is_season_paid($user->id) }}</td>
|
||||
<td class="table-bordered"> {{ ($user->admin ? "Administrator":"Spieler") }} </td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
@endsection
|
||||
@endsection
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head><title></title></head>
|
||||
<body><h1>User: {{$userObject->name}} </h1>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Laravel</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
html, body {
|
||||
background-color: #fff;
|
||||
color: #636b6f;
|
||||
font-family: 'Raleway', sans-serif;
|
||||
font-weight: 100;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.full-height {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.position-ref {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.top-right {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 18px;
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 84px;
|
||||
}
|
||||
|
||||
.links > a {
|
||||
color: #636b6f;
|
||||
padding: 0 25px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: .1rem;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.m-b-md {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex-center position-ref full-height">
|
||||
@if (Route::has('login'))
|
||||
<div class="top-right links">
|
||||
@if (Auth::check())
|
||||
<a href="{{ url('/home') }}">Home</a>
|
||||
@else
|
||||
<a href="{{ url('/login') }}">Login</a>
|
||||
<a href="{{ url('/register') }}">Register</a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="content">
|
||||
<div class="title m-b-md">
|
||||
Laracast
|
||||
</div>
|
||||
|
||||
<div class="links">
|
||||
<a href="https://laravel.com/docs">Documentation</a>
|
||||
<a href="https://laracasts.com">Laracasts</a>
|
||||
<a href="https://laravel-news.com">News</a>
|
||||
<a href="https://forge.laravel.com">Forge</a>
|
||||
<a href="https://github.com/laravel/laravel">GitHub</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue