This commit is contained in:
chrosey
2017-09-13 07:52:34 +02:00
parent a1f16c37f4
commit 2340b0226b
24621 changed files with 2912161 additions and 149 deletions
+92
View File
@@ -0,0 +1,92 @@
@extends('layouts.app')
@section('title', 'Neuer Benutzer')
@section('content')
{!! Form::model($benutzer, ['route' => 'benutzer.store', 'class' => "container"]) !!}
<div class="row">
<div class="form-group col-md-6">
{!! Form::label('anzeigename',
'Angezeigter Name',
['class'=> 'col-form-label'])
!!}
{!! Form::text('anzeigename',
$benutzer->anzeigename,
['class'=>"form-control",
'aria-describedby' => "anzeigenameHelp"])
!!}
<small id="anzeigenameHelp" class="form-text text-muted">Der Name, der für alle sichtbar ist.</small>
</div>
<div class="form-group col-md-6">
{!! Form::label('name',
'Username',
['class'=> 'col-form-label'])
!!}
{!! Form::text('name',
$benutzer->name,
['class'=>"form-control",
'aria-describedby' => "usernameHelp"])
!!}
<small id="usernameHelp" class="form-text text-muted">Der Name, mit dem sich der Nutzer anmeldet.</small>
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
{!! Form::label('email',
'Email',
['class'=> 'col-form-label'])
!!}
{!! Form::email('email',
$benutzer->email,
['class'=>"form-control",
'aria-describedby' => "emailHelp"])
!!}
<small id="emailHelp" class="form-text text-muted">Emailadresse des Benutzers (für Passwortprobleme oder Benachrichtigungen).</small>
</div>
<div class="form-group col-md-6">
{!! Form::label('telefon',
'Telefon',
['class'=> 'col-form-label'])
!!}
{!! Form::text('telefon',
$benutzer->telefon,
['class'=>"form-control",
'aria-describedby' => "telefonHelp"])
!!}
<small id="telefonHelp" class="form-text text-muted">Telefonische Erreichbarkeit des Benutzers.</small>
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
{!! Form::label('password',
'Passwort',
['class'=> 'col-form-label'])
!!}
<div class="input-group">
{!! Form::password('password',
['class'=>"form-control",
'aria-describedby' => "passwordHelp"])
!!}
<span class="input-group-btn">
<button id="rndPassword" type="button" class="btn btn-secondary">Generieren</button>
</span>
</div>
<small id="passwordHelp" class="form-text text-muted">Passwort des Benutzers (muss nach der ersten Anmeldung geändert werden).</small>
</div>
<div class="form-group col-md-6">
</div>
</div>
{!! Form::submit('Erstellen', ['class' => "btn btn-primary"]) !!}
{!! Form::close() !!}
@endsection
@section('scripts')
<script type="text/javascript">
$('#rndPassword').click(function(){
var s = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+#-=!$&?";
var N = 16;
var p = Array(N).join().split(',').map(function() { return s.charAt(Math.floor(Math.random() * s.length)); }).join('');
$('#password').val(p.substring(8))[0].type = "text";
})
</script>
@endsection
+92
View File
@@ -0,0 +1,92 @@
@extends('layouts.app')
@section('title', 'Neuer Benutzer')
@section('content')
{!! Form::model($benutzer, ['route' => 'benutzer.store', 'class' => "container"]) !!}
<div class="row">
<div class="form-group col-md-6">
{!! Form::label('anzeigename',
'Angezeigter Name',
['class'=> 'col-form-label'])
!!}
{!! Form::text('anzeigename',
$benutzer->anzeigename,
['class'=>"form-control",
'aria-describedby' => "anzeigenameHelp"])
!!}
<small id="anzeigenameHelp" class="form-text text-muted">Der Name, der für alle sichtbar ist.</small>
</div>
<div class="form-group col-md-6">
{!! Form::label('name',
'Username',
['class'=> 'col-form-label'])
!!}
{!! Form::text('name',
$benutzer->name,
['class'=>"form-control",
'aria-describedby' => "usernameHelp"])
!!}
<small id="usernameHelp" class="form-text text-muted">Der Name, mit dem sich der Nutzer anmeldet.</small>
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
{!! Form::label('email',
'Email',
['class'=> 'col-form-label'])
!!}
{!! Form::email('email',
$benutzer->email,
['class'=>"form-control",
'aria-describedby' => "emailHelp"])
!!}
<small id="emailHelp" class="form-text text-muted">Emailadresse des Benutzers (für Passwortprobleme oder Benachrichtigungen).</small>
</div>
<div class="form-group col-md-6">
{!! Form::label('telefon',
'Telefon',
['class'=> 'col-form-label'])
!!}
{!! Form::text('telefon',
$benutzer->telefon,
['class'=>"form-control",
'aria-describedby' => "telefonHelp"])
!!}
<small id="telefonHelp" class="form-text text-muted">Telefonische Erreichbarkeit des Benutzers.</small>
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
{!! Form::label('password',
'Passwort',
['class'=> 'col-form-label'])
!!}
<div class="input-group">
{!! Form::password('password',
['class'=>"form-control",
'aria-describedby' => "passwordHelp"])
!!}
<span class="input-group-btn">
<button id="rndPassword" type="button" class="btn btn-secondary">Generieren</button>
</span>
</div>
<small id="passwordHelp" class="form-text text-muted">Passwort des Benutzers (muss nach der ersten Anmeldung geändert werden).</small>
</div>
<div class="form-group col-md-6">
</div>
</div>
{!! Form::submit('Erstellen', ['class' => "btn btn-primary"]) !!}
{!! Form::close() !!}
@endsection
@section('scripts')
<script type="text/javascript">
$('#rndPassword').click(function(){
var s = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+#-=!$&?";
var N = 16;
var p = Array(N).join().split(',').map(function() { return s.charAt(Math.floor(Math.random() * s.length)); }).join('');
$('#password').val(p.substring(8))[0].type = "text";
})
</script>
@endsection
+36
View File
@@ -0,0 +1,36 @@
@extends('layouts.app')
@section('title', 'Benutzer')
@section('content')
<a class="btn btn-link" href="{{ route('benutzer.create') }}">Benutzer hinzufügen</a>
<table class="table-hover table">
<thead>
<tr>
<th class="text-center">Name</th>
<th class="text-center">Anmeldung</th>
<th class="text-center">Arbeitszeit</th>
<th></th>
</tr>
</thead>
@foreach ($benutzer as $b)
<tr class="clickable-row" data-href="{{ route('benutzer.show', [$b]) }}">
<td >{{ $b->anzeigename }}</td>
<td>{{ $b->created_at->diffForHumans() }}</td>
<td class="text-center">
TODO
</td>
<td class="row">
<a class="btn btn-link my-0 py-0" href="{{ route('benutzer.edit', [$b]) }}">Bearbeiten</a>
<a class="btn btn-link my-0 py-0" data-toggle="modal" href="#confirmDeletionModal" data-token="{{csrf_token()}}" data-url="{{route('benutzer.destroy', $b)}}" data-identifier="{{$b->anzeigename}}">Löschen</button>
</td>
</tr>
@endforeach
</table>
@endsection
@section('modals')
@include('shared.modals.confirmDeletion', [])
@endsection
@@ -0,0 +1,8 @@
@extends('layouts.app')
@section('title', 'Profil')
@section('content')
<div class="row">
<h2 class="display-2">Dein Profil</h2>
</div>
@endsection
+30
View File
@@ -0,0 +1,30 @@
@extends('layouts.app')
@section('title', 'Benutzer')
@section('content')
<h2>{{ $anzeigename }}</h2>
<hr/>
<dl class="row">
<dt class="col-md-2">
Benutzername
</dt>
<dd class="col-md-10">
{{ $name }}
</dd>
<dt class="col-md-2">
E-Mail
</dt>
<dd class="col-md-10">
{{ $email }}
</dd>
<dt class="col-md-2">
Telefon
</dt>
<dd class="col-md-10">
{{ $telefon }}
</dd>
</dl>
<hr/>
<a class="btn btn-link" href="{{ route('veranstaltung.edit', ['id' => $id]) }}">Bearbeiten</a>
<a class="btn btn-link" href="{{ route('veranstaltung.index') }}">Zurück zur Liste</a>
@endsection