Public Access
Protect application form management with organizer login
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
1 parent
4bf6014766
commit
af044ab501
11 files changed
+213
-41
No files matched your search
@@ -0,0 +1,28 @@
|
||||
@extends('template')
|
||||
|
||||
@section('title', 'Orga-Login')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-6 mx-auto p-4">
|
||||
<h1 class="h3 mb-3">Orga-Login</h1>
|
||||
|
||||
<form method="POST" action="{{ route('login.store') }}">
|
||||
@csrf
|
||||
<div class="mb-3">
|
||||
<label for="email" class="form-label">E-Mail-Adresse</label>
|
||||
<input id="email" name="email" type="email" class="form-control" value="{{ old('email') }}" autocomplete="username" required autofocus>
|
||||
@error('email')
|
||||
<p class="text-danger mt-2" role="alert">{{ $message }}</p>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Passwort</label>
|
||||
<input id="password" name="password" type="password" class="form-control" autocomplete="current-password" required>
|
||||
@error('password')
|
||||
<p class="text-danger mt-2" role="alert">{{ $message }}</p>
|
||||
@enderror
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Anmelden</button>
|
||||
</form>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -9,10 +9,12 @@
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h1 class="h3 mb-0">{{ $bewerbung->name }} Form</h1>
|
||||
<div>
|
||||
<a href="{{ route('bewerbungen.edit', $bewerbung->id) }}" class="btn btn-sm btn-primary">Bearbeiten</a>
|
||||
<a href="{{ route('bewerbungen.index') }}" class="btn btn-sm btn-outline-secondary">Zur Liste</a>
|
||||
</div>
|
||||
@can('manage-bewerbungen')
|
||||
<div>
|
||||
<a href="{{ route('bewerbungen.edit', $bewerbung->id) }}" class="btn btn-sm btn-primary">Bearbeiten</a>
|
||||
<a href="{{ route('bewerbungen.index') }}" class="btn btn-sm btn-outline-secondary">Zur Liste</a>
|
||||
</div>
|
||||
@endcan
|
||||
</div>
|
||||
|
||||
<p><strong>Aktiv:</strong> {{ $bewerbung->active ? 'Ja' : 'Nein' }}</p>
|
||||
|
||||
@@ -9,10 +9,12 @@
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h1 class="h3 mb-0">{{ $bewerbung->name }} Form</h1>
|
||||
<div>
|
||||
<a href="{{ route('bewerbungen.edit', $bewerbung->id) }}" class="btn btn-sm btn-primary">Bearbeiten</a>
|
||||
<a href="{{ route('bewerbungen.index') }}" class="btn btn-sm btn-outline-secondary">Zur Liste</a>
|
||||
</div>
|
||||
@can('manage-bewerbungen')
|
||||
<div>
|
||||
<a href="{{ route('bewerbungen.edit', $bewerbung->id) }}" class="btn btn-sm btn-primary">Bearbeiten</a>
|
||||
<a href="{{ route('bewerbungen.index') }}" class="btn btn-sm btn-outline-secondary">Zur Liste</a>
|
||||
</div>
|
||||
@endcan
|
||||
</div>
|
||||
|
||||
<p><strong>Aktiv:</strong> {{ $bewerbung->active ? 'Ja' : 'Nein' }}</p>
|
||||
|
||||
@@ -5,7 +5,13 @@
|
||||
<div class="container mt-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h1 class="h3">Bewerbungen</h1>
|
||||
<a href="{{ route('bewerbungen.create') }}" class="btn btn-primary">Neu</a>
|
||||
<div class="d-flex gap-2">
|
||||
<a href="{{ route('bewerbungen.create') }}" class="btn btn-primary">Neu</a>
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-outline-secondary">Abmelden</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(session('success'))
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<p class="lead">Hier findet ihr in Zukunft Infos zu Veranstaltungen, für die wir nach Bands Suchen. Zusätzlich soll in Zukunft auch die Möglichkeit entstehen eure Bands hier zu Presentieren.</p>
|
||||
<div class="d-grid gap-2 d-md-flex justify-content-md-start mb-4 mb-lg-3">
|
||||
<button type="button" class="btn btn-primary btn-lg px-4 me-md-2 fw-bold" data-bs-toggle="modal" data-bs-target="#signupModal">Registrieren</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-lg px-4" data-bs-toggle="modal" data-bs-target="#loginModal">Zum Login</button>
|
||||
<a class="btn btn-outline-secondary btn-lg px-4" href="{{ route('bewerbungen.index') }}">Zur Orga-Verwaltung</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 offset-lg-1 p-0 overflow-hidden shadow-lg">
|
||||
@@ -76,34 +76,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="loginModal" tabindex="-1" aria-labelledby="loginModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h1 class="modal-title fs-5" id="loginModalLabel">Login</h1>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="Login" method="POST" action="./index.php">
|
||||
<div class="mb-3">
|
||||
<input type="text" name="user" class="form-control" placeholder="User" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<input type="password" name="pwd" class="form-control" placeholder="Password" required>
|
||||
</div>
|
||||
<div class="forgot">
|
||||
<a href="./resetpwd.php?u=reset">Passwort Vergessen?</a>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Login</button>
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<footer class="mt-auto">
|
||||
|
||||
Reference in new issue
Block a user