Auth changed to firstname lastname schema
This commit is contained in:
parent
64e4959884
commit
3f17c76403
11 changed files with 45 additions and 35 deletions
|
|
@ -3,8 +3,9 @@
|
|||
<div class="container text-center">
|
||||
|
||||
|
||||
<a class="lead" href="/">Start</a>
|
||||
|
||||
@if (Auth::check())
|
||||
<a class="lead" href="/">Start</a>
|
||||
@if (Auth::user()->admin)
|
||||
<a class="lead" href="/seasons">Saison</a>
|
||||
<a class="lead" href="/rounds">Runden</a>
|
||||
|
|
@ -13,7 +14,7 @@
|
|||
<a class="lead" href="/tipps">Tipps</a>
|
||||
<a class="lead" href="/users/ranking/-1" >Rangliste</a>
|
||||
|
||||
<label class="lead text ml-auto" >Spieler: {{ Auth::user()->fullname }}</label><a class="lead" href="/logout">(abmelden)</a>
|
||||
<label class="lead text ml-auto" >Spieler: {{ Auth::user()->name }}</label><a class="lead" href="/logout">(abmelden)</a>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@
|
|||
<form method="POST" action="/register">
|
||||
{{ csrf_field() }}
|
||||
<div class="form-group">
|
||||
<label for="name">Kurzname(Login):</label>
|
||||
<input type="text" class="form-control" id="name" name="name" required>
|
||||
<label for="firstname">Vorname:</label>
|
||||
<input type="text" class="form-control" id="firstname" name="firstname" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="fullname">Spielername:</label>
|
||||
<input type="text" class="form-control" id="fullname" name="fullname" required>
|
||||
<label for="lastname">Nachname:</label>
|
||||
<input type="text" class="form-control" id="lastname" name="lastname" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Email:</label>
|
||||
|
|
|
|||
|
|
@ -4,14 +4,16 @@
|
|||
<div class="col-md-8">
|
||||
<h1>Anmeldung</h1>
|
||||
|
||||
|
||||
<form method="POST" action="/login">
|
||||
{{ csrf_field() }}
|
||||
<div class="form-group">
|
||||
<label for="name">Login:</label>
|
||||
<input type="text" class="form-control" id="name" name="name" required>
|
||||
<label for="name">Vorname:</label>
|
||||
<input type="text" class="form-control" id="firstname" name="firstname" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">Nachname:</label>
|
||||
<input type="text" class="form-control" id="lastname" name="lastname" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Passwort:</label>
|
||||
<input type="password" class="form-control" id="password" name="password" required>
|
||||
|
|
|
|||
|
|
@ -18,10 +18,15 @@
|
|||
<input type="text" class="form-control" id="name" name="name" value="{{ $user->name }}" required>
|
||||
</div>
|
||||
<div>
|
||||
<label style="float:left; width:150px" for="fullname">Spielername:</label>
|
||||
<input type="text" class="form-control" id="fullname" name="fullname" value="{{ $user->fullname }}" required>
|
||||
<label style="float:left; width:150px" for="firstname">Vorname:</label>
|
||||
<input type="text" class="form-control" id="firstname" name="firstname" value="{{ $user->firstname }}" required>
|
||||
</div>
|
||||
<p> </p>
|
||||
<div>
|
||||
<label style="float:left; width:150px" for="lastname">Nachname:</label>
|
||||
<input type="text" class="form-control" id="lastname" name="lastname" value="{{ $user->lastname }}" required>
|
||||
</div>
|
||||
|
||||
<p> </p>
|
||||
<div>
|
||||
<label style="float:left; width:150px" for="name">Zahlung für Saison:</label>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
</tr>
|
||||
@foreach($users as $user)
|
||||
<tr>
|
||||
<td class="table-bordered"> <a class="text list-unstyled" href="/users/edit/{{$user->id}}">{{ $user->fullname }} </a></td>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@
|
|||
<tr>
|
||||
<td class="table-bordered"> <span class="text list-unstyled" href="#" > {{ $user->rank }} </span></td>
|
||||
<td class="table-bordered"><div style="margin: 0 auto; width: 32px;"><img src="/img/crown.png" style="{{ ($user->dayWinScore == $highestDayScore ? 'float:left;width:32px;height:32px' : 'display: none;') }}"></div></td>
|
||||
<td class="table-bordered"> <a class="text list-unstyled" href="#" style="vertical-align: middle;">{{ $user->fullname }} </a></td>
|
||||
<td class="table-bordered"> <a class="text list-unstyled" href="#" style="vertical-align: middle;">{{ $user->name }} </a></td>
|
||||
<td class="table-bordered" align="center"> {{ $user->totalScore }} </td>
|
||||
<td class="table-bordered" align="center"> {{ $user->dayScore }} </td>
|
||||
<td class="table-bordered" align="center" style="{{App\Tipp::getCol($user->id,$games[0]->id)}}"> {{ $tippDisplay[$user->id][$games[0]->id][0] }} </td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue