Added HTML Helpers from Laravelcollective
This commit is contained in:
parent
0736ecf29f
commit
b5c1f40a45
31 changed files with 614 additions and 220 deletions
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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue