Compare commits
37 Commits
21683284b0
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
6d1286057a
|
|||
|
dc7cb715cc
|
|||
|
a1e9aa6b8a
|
|||
|
59305be5a6
|
|||
|
1019ef076d
|
|||
|
ac6c1cee80
|
|||
|
222dc6d274
|
|||
|
b48c689d31
|
|||
|
9cac0294cd
|
|||
|
3e5c99c3dd
|
|||
|
77b14e753e
|
|||
|
02684d2063
|
|||
| 7b37f66e86 | |||
| 15a1ea61c6 | |||
| 67ed8f6059 | |||
|
2abcf6be4f
|
|||
|
0ba3158bb4
|
|||
| 6706c7e764 | |||
|
43fd3b3b96
|
|||
|
e9213dfe18
|
|||
|
d93d3bd1d1
|
|||
|
b34bfb0a47
|
|||
|
4c94066bf9
|
|||
|
e5d970333f
|
|||
|
1a7c94ebf3
|
|||
|
aa47532e5f
|
|||
|
44eb81e99a
|
|||
| 7c3da000f9 | |||
| 04cdf3d307 | |||
|
e7adae9762
|
|||
|
7729aba416
|
|||
|
429bdcb124
|
|||
|
a99b8eb9c1
|
|||
| ba2dcb98e2 | |||
| 8f23a058dd | |||
| b33532cfcf | |||
| 58ed95abbf |
59
README.md
@@ -1,58 +1 @@
|
||||
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
|
||||
</p>
|
||||
|
||||
## About Laravel
|
||||
|
||||
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
|
||||
|
||||
- [Simple, fast routing engine](https://laravel.com/docs/routing).
|
||||
- [Powerful dependency injection container](https://laravel.com/docs/container).
|
||||
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
|
||||
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
|
||||
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
|
||||
- [Robust background job processing](https://laravel.com/docs/queues).
|
||||
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
|
||||
|
||||
Laravel is accessible, powerful, and provides tools required for large, robust applications.
|
||||
|
||||
## Learning Laravel
|
||||
|
||||
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
|
||||
|
||||
In addition, [Laracasts](https://laracasts.com) contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
|
||||
|
||||
You can also watch bite-sized lessons with real-world projects on [Laravel Learn](https://laravel.com/learn), where you will be guided through building a Laravel application from scratch while learning PHP fundamentals.
|
||||
|
||||
## Agentic Development
|
||||
|
||||
Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install [Laravel Boost](https://laravel.com/docs/ai) to supercharge your AI workflow:
|
||||
|
||||
```bash
|
||||
composer require laravel/boost --dev
|
||||
|
||||
php artisan boost:install
|
||||
```
|
||||
|
||||
Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices.
|
||||
|
||||
## Contributing
|
||||
|
||||
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
|
||||
|
||||
## Security Vulnerabilities
|
||||
|
||||
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
|
||||
|
||||
## License
|
||||
|
||||
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
||||
# C3Gov Website
|
||||
|
||||
@@ -25,7 +25,7 @@ class BlogController extends Controller
|
||||
$blog->save();
|
||||
return ['messageStatus' => 'success', 'errorMessage' => ''];
|
||||
} catch (\Illuminate\Database\QueryException $e) {
|
||||
return ['messageStatus' => 'danger', 'errorMessage' => $e->getMessage()];
|
||||
return ['messageStatus' => 'danger', 'errorMessage' => __("controller_messages.BlogController.error_occurred", ["error" => $e->getMessage()])];
|
||||
}
|
||||
}
|
||||
abort(404);
|
||||
@@ -43,7 +43,7 @@ class BlogController extends Controller
|
||||
$blog->save();
|
||||
return ['messageStatus' => 'success', 'errorMessage' => ''];
|
||||
} catch (\Illuminate\Database\QueryException $e) {
|
||||
return ['messageStatus' => 'failure', 'errorMessage' => $e->getMessage()];
|
||||
return ['messageStatus' => 'failure', 'errorMessage' => __("controller_messages.BlogController.error_occurred", ["error" => $e->getMessage()])];
|
||||
}
|
||||
}
|
||||
abort(404);
|
||||
@@ -58,7 +58,7 @@ class BlogController extends Controller
|
||||
}
|
||||
return ['messageStatus' => 'success', 'errorMessage' => ''];
|
||||
} catch(\Exception $e){
|
||||
return ['messageStatus' => 'failure', 'errorMessage' => $e->getMessage()];
|
||||
return ['messageStatus' => 'failure', 'errorMessage' => __("controller_messages.BlogController.error_occurred", ["error" => $e->getMessage()])];
|
||||
}
|
||||
}
|
||||
abort(404);
|
||||
|
||||
79
app/Http/Controllers/EventController.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\ChaosEvents;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class EventController extends Controller
|
||||
{
|
||||
public static function eventsPaginated(){
|
||||
return ChaosEvents::paginate(10);
|
||||
}
|
||||
|
||||
public function addEvent(Request $request) {
|
||||
if(Auth::check()){
|
||||
$name = $request->input('name');
|
||||
$shortname = $request->input('shortname');
|
||||
$from_date_internal = $request->input('from_date_internal');
|
||||
$to_date_internal = $request->input('to_date_internal');
|
||||
$from_date_visible = $request->input('from_date_visible');
|
||||
$to_date_visible = $request->input('to_date_visible');
|
||||
$active = $request->input('active');
|
||||
|
||||
try {
|
||||
|
||||
$event = new ChaosEvents();
|
||||
$event->name = $name;
|
||||
$event->shortname = $shortname;
|
||||
$event->from_date_internal = $from_date_internal;
|
||||
$event->to_date_internal = $to_date_internal;
|
||||
$event->from_date_visible = $from_date_visible;
|
||||
$event->to_date_visible = $to_date_visible;
|
||||
$event->active = $active;
|
||||
|
||||
$event->save();
|
||||
return ['messageStatus' => 'success', 'errorMessage' => ''];
|
||||
} catch (\Illuminate\Database\QueryException $e) {
|
||||
return ['messageStatus' => 'failure', 'errorMessage' => __("controller_messages.EventController.error_occurred", ["error" => $e->getMessage()])];
|
||||
}
|
||||
}
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function deleteEvent(Request $request) {
|
||||
if(Auth::check()){
|
||||
try {
|
||||
$event = ChaosEvents::find($request->input('id'));
|
||||
if ($event) {
|
||||
$event->delete();
|
||||
return ['messageStatus' => 'success', 'errorMessage' => ''];
|
||||
} else {
|
||||
return ['messageStatus' => 'failure', 'errorMessage' => __("controller_messages.EventController.error_occurred", ["error" => "Event not found"])];
|
||||
}
|
||||
} catch (\Illuminate\Database\QueryException $e) {
|
||||
return ['messageStatus' => 'failure', 'errorMessage' => __("controller_messages.EventController.error_occurred", ["error" => $e->getMessage()])];
|
||||
}
|
||||
}
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function setActivity(Request $request) {
|
||||
if(Auth::check()) {
|
||||
try {
|
||||
$event = ChaosEvents::find($request->input('id'));
|
||||
if ($event) {
|
||||
$event->active = $request->input('active');
|
||||
$event->save();
|
||||
return ['messageStatus' => 'success', 'errorMessage' => ''];
|
||||
} else {
|
||||
return ['messageStatus' => 'failure', 'errorMessage' => __("controller_messages.EventController.error_occurred", ["error" => "Event not found"])];
|
||||
}
|
||||
} catch (\Illuminate\Database\QueryException $e) {
|
||||
return ['messageStatus' => 'failure', 'errorMessage' => __("controller_messages.EventController.error_occurred", ["error" => $e->getMessage()])];
|
||||
}
|
||||
}
|
||||
abort(404);
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ class LoginController extends Controller
|
||||
// messageStatus success|failure|not permitted
|
||||
|
||||
|
||||
$json = ["messageStatus" => "failure", "errorMessage" => "idk"];
|
||||
$json = ["messageStatus" => "failure", "errorMessage" => __("controller_messages.LoginController.unknown_error")];
|
||||
|
||||
$mail = $request->input('mail');
|
||||
$username = $request->input('username');
|
||||
@@ -24,14 +24,14 @@ class LoginController extends Controller
|
||||
$token = $request->input('token');
|
||||
|
||||
if(preg_match('/@c3gov\.de$/', $mail) != 1){
|
||||
return ["messageStatus" => "not permitted", "errorMessage" => ""];
|
||||
return ["messageStatus" => "not permitted", "errorMessage" => __("controller_messages.LoginController.not_permitted")];
|
||||
}
|
||||
|
||||
$rt = RegisterToken::where('token', $token)->first();
|
||||
if($rt) {
|
||||
$u = User::whereEmail($mail)->first();
|
||||
if($u) {
|
||||
return ["messageStatus" => "failure", "errorMessage" => "Diese elektronische Postadresse wird bereits verwendet."];
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.LoginController.email_in_use")];
|
||||
}
|
||||
try {
|
||||
$u = new User();
|
||||
@@ -43,10 +43,10 @@ class LoginController extends Controller
|
||||
|
||||
$rt->delete();
|
||||
} catch (\Exception $e) {
|
||||
return ["messageStatus" => "failure", "errorMessage" => $e->getMessage()];
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.LoginController.unknown_error_with_details", ["error" => $e->getMessage()])];
|
||||
}
|
||||
} else {
|
||||
return ["messageStatus" => "failure", "errorMessage" => "Machen Sie die Musik aus."];
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.LoginController.invalid_token")];
|
||||
}
|
||||
|
||||
return ["messageStatus" => "success", "errorMessage" => ""];
|
||||
@@ -64,10 +64,10 @@ class LoginController extends Controller
|
||||
Auth::login($u);
|
||||
return ["messageStatus" => "success", "errorMessage" => ""];
|
||||
} else {
|
||||
return ["messageStatus" => "failure", "errorMessage" => "Falsch. Einfach nur falsch."];
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.LoginController.wrong_credentials")];
|
||||
}
|
||||
} else {
|
||||
return ["messageStatus" => "failure", "errorMessage" => "Falsch. Einfach nur falsch."];
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.LoginController.wrong_credentials")];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
195
app/Http/Controllers/PreApplicationController.php
Normal file
@@ -0,0 +1,195 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use App\Mail\PreApplicationMail;
|
||||
use App\Models\ChaosEvents;
|
||||
use App\Models\PreApplications;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Dompdf\Dompdf;
|
||||
|
||||
class PreApplicationController extends Controller
|
||||
{
|
||||
|
||||
private function generateReferenceNumber($eventId, $passportType, $firstName){
|
||||
$reference_number = null;
|
||||
|
||||
$ce = ChaosEvents::find($eventId);
|
||||
$free_reference_number = false;
|
||||
$counter = 1;
|
||||
while(!$free_reference_number){
|
||||
$reference_number = $ce->shortname . strtoupper($passportType) . '-' . strtoupper($firstName[0]) . Carbon::now()->format('ymd') . sprintf("%04d", $counter++);
|
||||
$free_reference_number = !PreApplications::where('reference_number', $reference_number)->exists();
|
||||
}
|
||||
return $reference_number;
|
||||
}
|
||||
|
||||
public function send(Request $request){
|
||||
$event = $request->input('district_region');
|
||||
|
||||
$ce = ChaosEvents::where('id', $event)->where('to_date_internal', '>=', today())->where('from_date_internal', '<=', today())->first();
|
||||
if($ce){
|
||||
|
||||
$passport_type = $request->input('passport_type');
|
||||
if(!in_array($passport_type, ['d', 'k'])){
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.PreApplicationController.wrong_passport_type")];
|
||||
}
|
||||
|
||||
$first_name = $request->input('first_name');
|
||||
$last_name = $request->input('last_name');
|
||||
$location = $request->input('location');
|
||||
|
||||
$email = $request->input('mail');
|
||||
|
||||
if(!filter_var($email, FILTER_VALIDATE_EMAIL)){
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.PreApplicationController.invalid_email_format")];
|
||||
}
|
||||
|
||||
switch($passport_type){
|
||||
case 'd':
|
||||
$max_characters = 17;
|
||||
break;
|
||||
case 'k':
|
||||
$max_characters = 25;
|
||||
break;
|
||||
default:
|
||||
$max_characters = 0;
|
||||
}
|
||||
|
||||
$fn = preg_match('/^[a-zA-Z0-9\s]{1,' . $max_characters . '}$/', $first_name);
|
||||
$ln = preg_match('/^[a-zA-Z0-9\s]{,' . $max_characters . '}$/', $last_name);
|
||||
$loc = preg_match('/^[a-zA-Z0-9\s]{,' . $max_characters . '}$/', $location);
|
||||
|
||||
//Log::debug('fn: ' . var_export($fn, true) . ' ln: ' . var_export($ln, true) . ' loc: ' . var_export($loc, true) . '');
|
||||
|
||||
if($fn && $ln && $loc){
|
||||
try{
|
||||
$pa = new PreApplications();
|
||||
$pa->first_name = $first_name;
|
||||
$pa->last_name = $last_name;
|
||||
$pa->location = $location;
|
||||
$pa->passport_type = $passport_type;
|
||||
$pa->reference_number = $this->generateReferenceNumber($event, $passport_type, $first_name);
|
||||
$pa->event_id = $event;
|
||||
$pa->email = $email;
|
||||
$pa->save();
|
||||
} catch(\Exception $e){
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.PreApplicationController.already_submitted")];
|
||||
}
|
||||
|
||||
Mail::to($email)
|
||||
->send(new PreApplicationMail($pa, App::getLocale()));
|
||||
|
||||
return ["messageStatus" => "success", "errorMessage" => __('controller_messages.PreApplicationController.success')];
|
||||
} else {
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.PreApplicationController.invalid_characters")];
|
||||
}
|
||||
}
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.PreApplicationController.event_not_found")];
|
||||
}
|
||||
|
||||
public static function applicationsPaginated(){
|
||||
return PreApplications::paginate(50);
|
||||
}
|
||||
|
||||
public function addApplication(Request $request){
|
||||
if(Auth::check()){
|
||||
try {
|
||||
$pa = new PreApplications();
|
||||
$pa->first_name = $request->input('first_name');
|
||||
$pa->last_name = $request->input('last_name');
|
||||
$pa->location = $request->input('location');
|
||||
$pa->notes = $request->input('notes');
|
||||
$pa->passport_type = $request->input('passport_type');
|
||||
$pa->event_id = $request->input('district_region');
|
||||
$pa->email = $request->input('mail');
|
||||
|
||||
$pa->reference_number = $this->generateReferenceNumber($request->input('district_region'), $request->input('passport_type'), $request->input('first_name'));
|
||||
|
||||
$pa->save();
|
||||
return ["messageStatus" => "success", "errorMessage" => ""];
|
||||
}
|
||||
catch(\Exception $e){
|
||||
return ["messageStatus" => "failure", "errorMessage" => $e->getMessage()];
|
||||
}
|
||||
}
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function deleteApplication(Request $request){
|
||||
if(Auth::check()){
|
||||
try {
|
||||
$pa = PreApplications::find($request->input('id'));
|
||||
if ($pa) {
|
||||
$pa->delete();
|
||||
return ["messageStatus" => "success", "errorMessage" => ""];
|
||||
} else {
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.PreApplicationController.application_not_found")];
|
||||
}
|
||||
} catch(\Exception $e){
|
||||
return ["messageStatus" => "failure", "errorMessage" => $e->getMessage()];
|
||||
}
|
||||
}
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function editApplication(Request $request){
|
||||
if(Auth::check()){
|
||||
try {
|
||||
$pa = PreApplications::find($request->input('id'));
|
||||
if ($pa) {
|
||||
$pa->first_name = $request->input('first_name');
|
||||
$pa->last_name = $request->input('last_name');
|
||||
$pa->location = $request->input('location');
|
||||
$pa->notes = $request->input('notes');
|
||||
$pa->email = $request->input('mail');
|
||||
$pa->passport_type = $request->input('passport_type');
|
||||
$pa->save();
|
||||
return ["messageStatus" => "success", "errorMessage" => ""];
|
||||
}
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.PreApplicationController.application_not_found")];
|
||||
} catch(\Exception $e){
|
||||
return ["messageStatus" => "failure", "errorMessage" => $e->getMessage()];
|
||||
}
|
||||
}
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function generatePDF(Request $request){
|
||||
if(Auth::check()){
|
||||
if(!$request->has('event_id')){
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.PreApplicationController.event_id_missing")];
|
||||
}
|
||||
|
||||
$event = ChaosEvents::find($request->input('event_id'));
|
||||
|
||||
if(!$event){
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.PreApplicationController.event_not_found")];
|
||||
}
|
||||
if($event->active == 0 || $event->to_date_internal < today()){
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.PreApplicationController.event_not_active")];
|
||||
}
|
||||
|
||||
|
||||
$options = new \Dompdf\Options();
|
||||
$options->set('isRemoteEnabled', true);
|
||||
$options->set('isHtml5ParserEnabled', true);
|
||||
$options->set('chroot', public_path());
|
||||
$dompdf = new Dompdf($options);
|
||||
$dompdf->setPaper('A4', 'portrait');
|
||||
|
||||
$applications = PreApplications::where('event_id', $request->input('event_id'))->get();
|
||||
$dompdf->loadHtml(view('pdf.pre_application', ['applications' => $applications, 'event' => $event]));
|
||||
|
||||
$dompdf->render();
|
||||
|
||||
$dompdf->stream('Voranträge_' . $event->shortname . '_' . $event->from_date_visible->format('Y') . '.pdf', ['Attachment' => 0]);
|
||||
exit;
|
||||
}
|
||||
abort(404);
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ class TickerController extends Controller
|
||||
}
|
||||
return ["messageStatus" => "success", "errorMessage" => ""];
|
||||
} catch(\Exception $e){
|
||||
return ["messageStatus" => "failure", "errorMessage" => $e->getMessage()];
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.TickerController.error_occurred", ["error" => $e->getMessage()])];
|
||||
}
|
||||
|
||||
}
|
||||
@@ -38,7 +38,7 @@ class TickerController extends Controller
|
||||
$ticker->save();
|
||||
return ["messageStatus" => "success", "errorMessage" => ""];
|
||||
} catch(\Exception $e){
|
||||
return ["messageStatus" => "failure", "errorMessage" => $e->getMessage()];
|
||||
return ["messageStatus" => "failure", "errorMessage" => __("controller_messages.TickerController.error_occurred", ["error" => $e->getMessage()])];
|
||||
}
|
||||
}
|
||||
abort(404);
|
||||
|
||||
@@ -9,19 +9,6 @@ use Illuminate\Support\Facades\Auth;
|
||||
class WebsiteController extends Controller
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->setLang($_COOKIE['lang'] ?? 'de');
|
||||
}
|
||||
|
||||
private function setLang($lang)
|
||||
{
|
||||
if (!in_array($lang, ['de', 'en'])) {
|
||||
$lang = 'de';
|
||||
}
|
||||
|
||||
App::setLocale($lang);
|
||||
}
|
||||
|
||||
//
|
||||
public function index(Request $request)
|
||||
@@ -33,6 +20,10 @@ class WebsiteController extends Controller
|
||||
return view('content.about');
|
||||
}
|
||||
|
||||
public function documents(Request $request){
|
||||
return view('content.documents');
|
||||
}
|
||||
|
||||
public function contact(Request $request){
|
||||
return view('content.contact');
|
||||
}
|
||||
@@ -54,7 +45,7 @@ class WebsiteController extends Controller
|
||||
}
|
||||
|
||||
|
||||
// c3gov-Stuffs
|
||||
// C3Gov-Stuffs
|
||||
|
||||
public function showRegister()
|
||||
{
|
||||
@@ -81,4 +72,23 @@ class WebsiteController extends Controller
|
||||
}
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function editApplications(){
|
||||
if(Auth::check()){
|
||||
return response()
|
||||
->view('application.edit', ['applications' => PreApplicationController::applicationsPaginated()])
|
||||
->header('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
|
||||
}
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function editEvents(){
|
||||
if(Auth::check()){
|
||||
return response()
|
||||
->view('events.edit', ['events' => EventController::eventsPaginated()])
|
||||
->header('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
|
||||
}
|
||||
abort(404);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
38
app/Http/Middleware/ForceCsrfOnLocalhost.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Foundation\Http\Middleware\PreventRequestForgery as Middleware;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ForceCsrfOnLocalhost extends Middleware
|
||||
{
|
||||
/**
|
||||
* Determine if the request has a valid origin based on the Sec-Fetch-Site header.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return bool
|
||||
*/
|
||||
protected function hasValidOrigin($request)
|
||||
{
|
||||
// If it's localhost, we want to skip origin verification and fall back to token verification
|
||||
if ($this->isLocalhost($request)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return parent::hasValidOrigin($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the request is from localhost.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return bool
|
||||
*/
|
||||
protected function isLocalhost($request)
|
||||
{
|
||||
$host = $request->getHost();
|
||||
|
||||
return in_array($host, ['localhost', '127.0.0.1', '::1']) || str_ends_with($host, '.localhost');
|
||||
}
|
||||
}
|
||||
28
app/Http/Middleware/SetLocale.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class SetLocale
|
||||
{
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
$lang = $request->cookie('lang', 'de');
|
||||
if (!in_array($lang, ['de', 'en'])) {
|
||||
$lang = 'de';
|
||||
}
|
||||
|
||||
App::setLocale($lang);
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
74
app/Mail/PreApplicationMail.php
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use AllowDynamicProperties;
|
||||
use App;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Mail\Mailables\Attachment;
|
||||
use Illuminate\Mail\Mailables\Content;
|
||||
use Illuminate\Mail\Mailables\Envelope;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class PreApplicationMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*/
|
||||
public function __construct(protected App\Models\PreApplications $pa, protected string $lang = 'de')
|
||||
{
|
||||
//
|
||||
$this->locale($this->lang);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the message envelope.
|
||||
*/
|
||||
public function envelope(): Envelope
|
||||
{
|
||||
return new Envelope(
|
||||
subject: __('mail.preapplication.subject'),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the message content definition.
|
||||
*/
|
||||
public function content(): Content
|
||||
{
|
||||
return new Content(
|
||||
view: 'mail.preapplication',
|
||||
with: ['pa' => $this->pa],
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the attachments for the message.
|
||||
*
|
||||
* @return array<int, Attachment>
|
||||
*/
|
||||
public function attachments(): array
|
||||
{
|
||||
$langFb = match ($this->locale) {
|
||||
'de' => 'dk',
|
||||
'en' => 'ek',
|
||||
default => 'dk',
|
||||
};
|
||||
|
||||
$langDonation = match ($this->locale) {
|
||||
'de' => '',
|
||||
'en' => '_en',
|
||||
};
|
||||
|
||||
return [
|
||||
Attachment::fromPath(public_path('Dokumente/c3gov_fb5' . $langFb . '.pdf'))
|
||||
->withMime('application/pdf'),
|
||||
Attachment::fromPath(public_path('Dokumente/C3GovSpGV' . $langDonation . '.pdf'))
|
||||
->withMime('application/pdf'),
|
||||
];
|
||||
}
|
||||
}
|
||||
29
app/Models/ChaosEvents.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ChaosEvents extends Model
|
||||
{
|
||||
protected $table = 'chaos_events';
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'from_date_internal' => 'date',
|
||||
'to_date_internal' => 'date',
|
||||
'from_date_visible' => 'date',
|
||||
'to_date_visible' => 'date',
|
||||
];
|
||||
}
|
||||
|
||||
public function preApplications() {
|
||||
return $this->hasMany('App\Models\PreApplications', 'event_id');
|
||||
}
|
||||
|
||||
public static function getActiveEvents(){
|
||||
return self::where('active', 1)->where('to_date_internal', '>=', today())
|
||||
->where('from_date_internal', '<=', today())->orderBy('to_date_internal')->get();
|
||||
}
|
||||
}
|
||||
15
app/Models/PreApplications.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PreApplications extends Model
|
||||
{
|
||||
protected $table = 'pre_applications';
|
||||
|
||||
public function event(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
{
|
||||
return $this->belongsTo('App\Models\ChaosEvents','event_id');
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Foundation\Configuration\Exceptions;
|
||||
use Illuminate\Foundation\Configuration\Middleware;
|
||||
use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance;
|
||||
|
||||
return Application::configure(basePath: dirname(__DIR__))
|
||||
->withRouting(
|
||||
@@ -11,7 +12,10 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
health: '/up',
|
||||
)
|
||||
->withMiddleware(function (Middleware $middleware): void {
|
||||
//
|
||||
$middleware->web(replace: [
|
||||
\Illuminate\Foundation\Http\Middleware\PreventRequestForgery::class => \App\Http\Middleware\ForceCsrfOnLocalhost::class,
|
||||
]);
|
||||
$middleware->append(\App\Http\Middleware\SetLocale::class);
|
||||
})
|
||||
->withExceptions(function (Exceptions $exceptions): void {
|
||||
//
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": "^8.3",
|
||||
"dompdf/dompdf": "v3.1.5",
|
||||
"laravel/framework": "^13.0",
|
||||
"laravel/tinker": "^3.0"
|
||||
},
|
||||
@@ -48,6 +49,11 @@
|
||||
"Composer\\Config::disableProcessTimeout",
|
||||
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1 --timeout=0\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite --kill-others"
|
||||
],
|
||||
"dev-bind": [
|
||||
"Composer\\Config::disableProcessTimeout",
|
||||
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve --host=0.0.0.0\" \"php artisan queue:listen --tries=1 --timeout=0\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite --kill-others"
|
||||
],
|
||||
|
||||
"test": [
|
||||
"@php artisan config:clear --ansi",
|
||||
"@php artisan test"
|
||||
|
||||
447
composer.lock
generated
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "41c3f2f807c63a47595eaa4e14742655",
|
||||
"content-hash": "574a1d636a4f2db2df7b156d94d141bb",
|
||||
"packages": [
|
||||
{
|
||||
"name": "brick/math",
|
||||
@@ -377,6 +377,161 @@
|
||||
],
|
||||
"time": "2024-02-05T11:56:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "dompdf/dompdf",
|
||||
"version": "v3.1.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/dompdf.git",
|
||||
"reference": "f11ead23a8a76d0ff9bbc6c7c8fd7e05ca328496"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/dompdf/zipball/f11ead23a8a76d0ff9bbc6c7c8fd7e05ca328496",
|
||||
"reference": "f11ead23a8a76d0ff9bbc6c7c8fd7e05ca328496",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"dompdf/php-font-lib": "^1.0.0",
|
||||
"dompdf/php-svg-lib": "^1.0.0",
|
||||
"ext-dom": "*",
|
||||
"ext-mbstring": "*",
|
||||
"masterminds/html5": "^2.0",
|
||||
"php": "^7.1 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-gd": "*",
|
||||
"ext-json": "*",
|
||||
"ext-zip": "*",
|
||||
"mockery/mockery": "^1.3",
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"symfony/process": "^4.4 || ^5.4 || ^6.2 || ^7.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-gd": "Needed to process images",
|
||||
"ext-gmagick": "Improves image processing performance",
|
||||
"ext-imagick": "Improves image processing performance",
|
||||
"ext-zlib": "Needed for pdf stream compression"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Dompdf\\": "src/"
|
||||
},
|
||||
"classmap": [
|
||||
"lib/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-2.1"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "The Dompdf Community",
|
||||
"homepage": "https://github.com/dompdf/dompdf/blob/master/AUTHORS.md"
|
||||
}
|
||||
],
|
||||
"description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter",
|
||||
"homepage": "https://github.com/dompdf/dompdf",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/dompdf/issues",
|
||||
"source": "https://github.com/dompdf/dompdf/tree/v3.1.5"
|
||||
},
|
||||
"time": "2026-03-03T13:54:37+00:00"
|
||||
},
|
||||
{
|
||||
"name": "dompdf/php-font-lib",
|
||||
"version": "1.0.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/php-font-lib.git",
|
||||
"reference": "a6e9a688a2a80016ac080b97be73d3e10c444c9a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/php-font-lib/zipball/a6e9a688a2a80016ac080b97be73d3e10c444c9a",
|
||||
"reference": "a6e9a688a2a80016ac080b97be73d3e10c444c9a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": "^7.1 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11 || ^12"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"FontLib\\": "src/FontLib"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-2.1-or-later"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "The FontLib Community",
|
||||
"homepage": "https://github.com/dompdf/php-font-lib/blob/master/AUTHORS.md"
|
||||
}
|
||||
],
|
||||
"description": "A library to read, parse, export and make subsets of different types of font files.",
|
||||
"homepage": "https://github.com/dompdf/php-font-lib",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/php-font-lib/issues",
|
||||
"source": "https://github.com/dompdf/php-font-lib/tree/1.0.2"
|
||||
},
|
||||
"time": "2026-01-20T14:10:26+00:00"
|
||||
},
|
||||
{
|
||||
"name": "dompdf/php-svg-lib",
|
||||
"version": "1.0.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/php-svg-lib.git",
|
||||
"reference": "8259ffb930817e72b1ff1caef5d226501f3dfeb1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/8259ffb930817e72b1ff1caef5d226501f3dfeb1",
|
||||
"reference": "8259ffb930817e72b1ff1caef5d226501f3dfeb1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": "^7.1 || ^8.0",
|
||||
"sabberworm/php-css-parser": "^8.4 || ^9.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Svg\\": "src/Svg"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-3.0-or-later"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "The SvgLib Community",
|
||||
"homepage": "https://github.com/dompdf/php-svg-lib/blob/master/AUTHORS.md"
|
||||
}
|
||||
],
|
||||
"description": "A library to read, parse and export to PDF SVG files.",
|
||||
"homepage": "https://github.com/dompdf/php-svg-lib",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/php-svg-lib/issues",
|
||||
"source": "https://github.com/dompdf/php-svg-lib/tree/1.0.2"
|
||||
},
|
||||
"time": "2026-01-02T16:01:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "dragonmantank/cron-expression",
|
||||
"version": "v3.6.0",
|
||||
@@ -2022,6 +2177,73 @@
|
||||
],
|
||||
"time": "2026-03-08T20:05:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "masterminds/html5",
|
||||
"version": "2.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Masterminds/html5-php.git",
|
||||
"reference": "fcf91eb64359852f00d921887b219479b4f21251"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fcf91eb64359852f00d921887b219479b4f21251",
|
||||
"reference": "fcf91eb64359852f00d921887b219479b4f21251",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-dom": "*",
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.7-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Masterminds\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Matt Butcher",
|
||||
"email": "technosophos@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Matt Farina",
|
||||
"email": "matt@mattfarina.com"
|
||||
},
|
||||
{
|
||||
"name": "Asmir Mustafic",
|
||||
"email": "goetas@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "An HTML5 parser and serializer.",
|
||||
"homepage": "http://masterminds.github.io/html5-php",
|
||||
"keywords": [
|
||||
"HTML5",
|
||||
"dom",
|
||||
"html",
|
||||
"parser",
|
||||
"querypath",
|
||||
"serializer",
|
||||
"xml"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/Masterminds/html5-php/issues",
|
||||
"source": "https://github.com/Masterminds/html5-php/tree/2.10.0"
|
||||
},
|
||||
"time": "2025-07-25T09:04:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "monolog/monolog",
|
||||
"version": "3.10.0",
|
||||
@@ -3297,6 +3519,86 @@
|
||||
},
|
||||
"time": "2025-12-14T04:43:48+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sabberworm/php-css-parser",
|
||||
"version": "v9.3.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/MyIntervals/PHP-CSS-Parser.git",
|
||||
"reference": "88dbd0f7f91abbfe4402d0a3071e9ff4d81ed949"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/88dbd0f7f91abbfe4402d0a3071e9ff4d81ed949",
|
||||
"reference": "88dbd0f7f91abbfe4402d0a3071e9ff4d81ed949",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-iconv": "*",
|
||||
"php": "^7.2.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
|
||||
"thecodingmachine/safe": "^1.3 || ^2.5 || ^3.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"php-parallel-lint/php-parallel-lint": "1.4.0",
|
||||
"phpstan/extension-installer": "1.4.3",
|
||||
"phpstan/phpstan": "1.12.32 || 2.1.32",
|
||||
"phpstan/phpstan-phpunit": "1.4.2 || 2.0.8",
|
||||
"phpstan/phpstan-strict-rules": "1.6.2 || 2.0.7",
|
||||
"phpunit/phpunit": "8.5.52",
|
||||
"rawr/phpunit-data-provider": "3.3.1",
|
||||
"rector/rector": "1.2.10 || 2.2.8",
|
||||
"rector/type-perfect": "1.0.0 || 2.1.0",
|
||||
"squizlabs/php_codesniffer": "4.0.1",
|
||||
"thecodingmachine/phpstan-safe-rule": "1.2.0 || 1.4.1"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "for parsing UTF-8 CSS"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "9.4.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/Rule/Rule.php",
|
||||
"src/RuleSet/RuleContainer.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Sabberworm\\CSS\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Raphael Schweikert"
|
||||
},
|
||||
{
|
||||
"name": "Oliver Klee",
|
||||
"email": "github@oliverklee.de"
|
||||
},
|
||||
{
|
||||
"name": "Jake Hotson",
|
||||
"email": "jake.github@qzdesign.co.uk"
|
||||
}
|
||||
],
|
||||
"description": "Parser for CSS Files written in PHP",
|
||||
"homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser",
|
||||
"keywords": [
|
||||
"css",
|
||||
"parser",
|
||||
"stylesheet"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/MyIntervals/PHP-CSS-Parser/issues",
|
||||
"source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v9.3.0"
|
||||
},
|
||||
"time": "2026-03-03T17:31:43+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/clock",
|
||||
"version": "v8.0.0",
|
||||
@@ -5666,6 +5968,149 @@
|
||||
],
|
||||
"time": "2026-02-15T10:53:29+00:00"
|
||||
},
|
||||
{
|
||||
"name": "thecodingmachine/safe",
|
||||
"version": "v3.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thecodingmachine/safe.git",
|
||||
"reference": "705683a25bacf0d4860c7dea4d7947bfd09eea19"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/thecodingmachine/safe/zipball/705683a25bacf0d4860c7dea4d7947bfd09eea19",
|
||||
"reference": "705683a25bacf0d4860c7dea4d7947bfd09eea19",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^8.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"php-parallel-lint/php-parallel-lint": "^1.4",
|
||||
"phpstan/phpstan": "^2",
|
||||
"phpunit/phpunit": "^10",
|
||||
"squizlabs/php_codesniffer": "^3.2"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"lib/special_cases.php",
|
||||
"generated/apache.php",
|
||||
"generated/apcu.php",
|
||||
"generated/array.php",
|
||||
"generated/bzip2.php",
|
||||
"generated/calendar.php",
|
||||
"generated/classobj.php",
|
||||
"generated/com.php",
|
||||
"generated/cubrid.php",
|
||||
"generated/curl.php",
|
||||
"generated/datetime.php",
|
||||
"generated/dir.php",
|
||||
"generated/eio.php",
|
||||
"generated/errorfunc.php",
|
||||
"generated/exec.php",
|
||||
"generated/fileinfo.php",
|
||||
"generated/filesystem.php",
|
||||
"generated/filter.php",
|
||||
"generated/fpm.php",
|
||||
"generated/ftp.php",
|
||||
"generated/funchand.php",
|
||||
"generated/gettext.php",
|
||||
"generated/gmp.php",
|
||||
"generated/gnupg.php",
|
||||
"generated/hash.php",
|
||||
"generated/ibase.php",
|
||||
"generated/ibmDb2.php",
|
||||
"generated/iconv.php",
|
||||
"generated/image.php",
|
||||
"generated/imap.php",
|
||||
"generated/info.php",
|
||||
"generated/inotify.php",
|
||||
"generated/json.php",
|
||||
"generated/ldap.php",
|
||||
"generated/libxml.php",
|
||||
"generated/lzf.php",
|
||||
"generated/mailparse.php",
|
||||
"generated/mbstring.php",
|
||||
"generated/misc.php",
|
||||
"generated/mysql.php",
|
||||
"generated/mysqli.php",
|
||||
"generated/network.php",
|
||||
"generated/oci8.php",
|
||||
"generated/opcache.php",
|
||||
"generated/openssl.php",
|
||||
"generated/outcontrol.php",
|
||||
"generated/pcntl.php",
|
||||
"generated/pcre.php",
|
||||
"generated/pgsql.php",
|
||||
"generated/posix.php",
|
||||
"generated/ps.php",
|
||||
"generated/pspell.php",
|
||||
"generated/readline.php",
|
||||
"generated/rnp.php",
|
||||
"generated/rpminfo.php",
|
||||
"generated/rrd.php",
|
||||
"generated/sem.php",
|
||||
"generated/session.php",
|
||||
"generated/shmop.php",
|
||||
"generated/sockets.php",
|
||||
"generated/sodium.php",
|
||||
"generated/solr.php",
|
||||
"generated/spl.php",
|
||||
"generated/sqlsrv.php",
|
||||
"generated/ssdeep.php",
|
||||
"generated/ssh2.php",
|
||||
"generated/stream.php",
|
||||
"generated/strings.php",
|
||||
"generated/swoole.php",
|
||||
"generated/uodbc.php",
|
||||
"generated/uopz.php",
|
||||
"generated/url.php",
|
||||
"generated/var.php",
|
||||
"generated/xdiff.php",
|
||||
"generated/xml.php",
|
||||
"generated/xmlrpc.php",
|
||||
"generated/yaml.php",
|
||||
"generated/yaz.php",
|
||||
"generated/zip.php",
|
||||
"generated/zlib.php"
|
||||
],
|
||||
"classmap": [
|
||||
"lib/DateTime.php",
|
||||
"lib/DateTimeImmutable.php",
|
||||
"lib/Exceptions/",
|
||||
"generated/Exceptions/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"description": "PHP core functions that throw exceptions instead of returning FALSE on error",
|
||||
"support": {
|
||||
"issues": "https://github.com/thecodingmachine/safe/issues",
|
||||
"source": "https://github.com/thecodingmachine/safe/tree/v3.4.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/OskarStark",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/shish",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/silasjoisten",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/staabm",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2026-02-04T18:08:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "tijsverkoyen/css-to-inline-styles",
|
||||
"version": "v2.4.0",
|
||||
|
||||
@@ -65,7 +65,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'timezone' => 'UTC',
|
||||
'timezone' => 'Europe/Berlin',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('chaos_events', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('shortname');
|
||||
$table->date('from_date_internal');
|
||||
$table->date('to_date_internal');
|
||||
$table->date('from_date_visible');
|
||||
$table->date('to_date_visible');
|
||||
$table->boolean('active')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('chaos_events');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('pre_applications', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('reference_number')->unique();
|
||||
$table->string('email')->unique();
|
||||
$table->string('passport_type');
|
||||
$table->bigInteger('event_id')->unsigned();
|
||||
$table->foreign('event_id')->references('id')->on('chaos_events')->onDelete('cascade');
|
||||
$table->string('first_name');
|
||||
$table->string('last_name')->nullable();
|
||||
$table->string('location')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('pre_applications');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('pre_applications', function (Blueprint $table) {
|
||||
$table->text('notes')->nullable()->before('created_at');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('pre_applications', function (Blueprint $table) {
|
||||
$table->dropColumn('notes');
|
||||
});
|
||||
}
|
||||
};
|
||||
172
lang/de/app.php
@@ -2,10 +2,14 @@
|
||||
|
||||
return [
|
||||
'subtitle' => 'Ihr Amt für Reisepass-Angelegenheiten in der Bezirksregion CCC.',
|
||||
'logo' => 'Offizielles Logo des c3gov',
|
||||
'banner' => 'Banner. Abgebildet ist die c3gov-Verwaltungsvorschrift, ein Junghacker*innen-Pass und ein Hacker*innen-Reisepass.',
|
||||
'logo' => 'Offizielles Logo des C3Gov',
|
||||
'banner' => 'Banner. Abgebildet ist die C3Gov-Verwaltungsvorschrift, ein Junghacker*innen-Pass und ein Hacker*innen-Reisepass.',
|
||||
'fediverse' => 'C3Gov im Fediversum',
|
||||
'signed_in_as' => 'Angemeldet als:',
|
||||
'guest' => 'Gastkonto',
|
||||
'news_alt' => 'Neuigkeiten',
|
||||
'progress_flag' => 'LGBTQIA+ Progress-Flagge',
|
||||
'lead_by' => 'Eine von Transgender-Wesen geführte Bezirksregierungsbehörde',
|
||||
'language' => [
|
||||
'en' => 'English',
|
||||
'de' => 'Deutsch',
|
||||
@@ -13,10 +17,21 @@ return [
|
||||
'nav' => [
|
||||
'about' => 'Über uns',
|
||||
'services' => 'Dienstleistungen',
|
||||
'documents' => 'Dokumente',
|
||||
'news' => 'Neuigkeiten',
|
||||
'contact' => 'Kontakt',
|
||||
'imprint' => 'Impressum',
|
||||
'apply' => 'Jetzt beantragen',
|
||||
'editTicker' => 'Ticker bearbeiten',
|
||||
'editNews' => 'Neuigkeiten bearbeiten',
|
||||
'editApplications' => 'Anträge bearbeiten',
|
||||
'events' => 'C3Gov-Termine',
|
||||
'logout' => 'Abmelden',
|
||||
'login' => 'Anmelden',
|
||||
'register' => 'Registrieren'
|
||||
],
|
||||
'index' => [
|
||||
'welcome' => 'Willkommen auf der Internetpräsenz des C3Gov'
|
||||
],
|
||||
'about' => [
|
||||
'subtitle' => 'Unbeschwertes Einreisen in die stationären sowie temporären CCC Bezirksregionen',
|
||||
@@ -26,9 +41,48 @@ return [
|
||||
'text4' => 'Um unsere Internetpräsenz zu erweitern, können Sie uns jetzt auch im Fediversum besuchen.',
|
||||
'text5' => 'Klicken Sie dafür auf diesen Verweis:',
|
||||
'insertvideo' => '*Hier Werbefilm einfügen*'
|
||||
],
|
||||
'documents' => [
|
||||
'description' => 'Hier finden Sie sowohl unsere Verwaltungsvorschrift und deren Anlagen, sowie jegliche Formblätter für die Ausstellung von Reisepässen.',
|
||||
'verwaltungsvorschrift' => 'Verwaltungsvorschrift',
|
||||
'donation' => 'Spendengebührenverordnung',
|
||||
'fb1' => [
|
||||
'name' => 'Formblatt 1',
|
||||
'description' => 'Antrag auf Erstausstellung eines Hacker*innen-Reisepasses'
|
||||
],
|
||||
'fb1k' => [
|
||||
'name' => 'Formblatt 1k',
|
||||
'description' => 'Antrag auf Erstausstellung eines Junghackerpasses'
|
||||
],
|
||||
'fb2' => [
|
||||
'name' => 'Formblatt 2',
|
||||
'description' => 'Antrag auf Ersatz- oder Zweitausstellungen eines Hacker*innen-Reisepasses'
|
||||
],
|
||||
'fb2k' => [
|
||||
'name' => 'Formblatt 2k',
|
||||
'description' => 'Antrag auf Ersatz- oder Zweitausstellungen eines Junghackerpasses'
|
||||
],
|
||||
'fb3' => [
|
||||
'name' => 'Formblatt 3',
|
||||
'description' => 'Antrag auf Nachlegitimisierung eines Reisepasses durch das C3Gov'
|
||||
],
|
||||
'fb5' => [
|
||||
'name' => 'Formblatt 5',
|
||||
'description' => 'Voranmeldung zur Beantragung eines Reisepasses'
|
||||
],
|
||||
'fb7' => [
|
||||
'name' => 'Formblatt 7',
|
||||
'description' => 'Beschwerdeformular nach §7 Abs. 2 C3GovVerwV'
|
||||
]
|
||||
],
|
||||
'services' => [
|
||||
'title' => 'Unsere Dienstleistungen im Überblick',
|
||||
'alt' => [
|
||||
'first_issue' => 'Erstausstellung eines Reisepasses',
|
||||
'rejected' => 'Abgelehnter Antrag',
|
||||
'replacement' => 'Ersatzpass',
|
||||
'stamps' => 'Offizielle Stempel',
|
||||
],
|
||||
'topic1' => [
|
||||
'title' => 'Ausstellung von Reisepässen',
|
||||
'content' => 'Unser Team kümmert sich um die Ausstellung der Reisepässe.
|
||||
@@ -54,5 +108,117 @@ return [
|
||||
'title' => 'Anwesenheitsbestätigung',
|
||||
'content' => 'Sollten Sie eine Bestätigung Ihres Besuchs benötigen, stellen wir Ihnen diese selbstverständlich in Papierform aus.'
|
||||
]
|
||||
]
|
||||
],
|
||||
'imprint' => [
|
||||
'title' => 'Impressum',
|
||||
'alt' => 'Ernsthaftigkeit',
|
||||
'content' => 'Hiermit weisen wir darauf hin, dass es sich bei dieser Plattform um ein Projekt des Chaos Computer Club Essen handelt, welche keine rechtlich geltenden Dokumente ausstellt.
|
||||
<br />Es handelt sich weder um echte Dienstleistungen im gewerblichen Sinne, noch um geschäftsmäßige Dienste.
|
||||
<br />Aus diesem Grund entfällt die Impressumspflicht.
|
||||
<br /><br />Dennoch geben wir freiwillig Kontaktinformationen an:'
|
||||
],
|
||||
'contact' => [
|
||||
'title' => 'Kontakt',
|
||||
'alt' => 'Kontakt',
|
||||
'content' => 'Schreiben Sie uns im <a href="https://chaos.social/@c3gov">Fediversum</a>
|
||||
<br />oder per elektronischer Post an: <a href="mailto:Dezernat7Zustaendigkeit@C3Gov.De">Dezernat7Zustaendigkeit@C3Gov.De</a>'
|
||||
],
|
||||
'preapplication' => [
|
||||
'title' => 'Vorantrag auf Reisepass gem. § 5 C3GovVerwV',
|
||||
'content' => 'Bitte wählen Sie eine (temporäre) Bezirksregion aus, um Ihren Vorantrag auf einen Reisepass zu stellen.
|
||||
<br />Nachdem Sie den Vorantrag abgeschickt haben, erhalten Sie eine Bestätigung via elektronischer Post.',
|
||||
'noevent' => 'Es sind derzeit keine Termine verfügbar.',
|
||||
'region' => 'Bezirksregion',
|
||||
'time_ends' => 'Frist endet am',
|
||||
'passport_type' => 'Reisepass-Typ',
|
||||
'passport' => [
|
||||
'standard' => 'Hacker*innen-Reisepass',
|
||||
'kid' => 'Junghackerpass',
|
||||
],
|
||||
'mail' => 'Elektronische Postadresse',
|
||||
'firstname' => 'Vorname (Nick)',
|
||||
'lastname' => 'Nachname (optional)',
|
||||
'location' => 'Hackspace / Ort (optional)',
|
||||
'notes' => 'Notizen',
|
||||
'reference_number' => 'Bearbeitungsnummer',
|
||||
'created_at' => 'Eingereicht am',
|
||||
'actions' => 'Aktionen',
|
||||
'apply' => 'Vorantrag abschicken',
|
||||
'edit' => [
|
||||
'title' => 'Anträge bearbeiten',
|
||||
'description' => 'Hier können Sie Anträge bearbeiten oder löschen.',
|
||||
'add' => 'Antrag hinzufügen',
|
||||
'save' => 'Speichern',
|
||||
'delete' => 'Löschen',
|
||||
'generated' => 'Wird generiert',
|
||||
'download' => [
|
||||
'title' => 'Voranträge herunterladen',
|
||||
'description' => 'Hier können Sie alle Voranträge eines Bezirksregion-Termines als PDF herunterladen.',
|
||||
'button' => 'PDF generieren'
|
||||
]
|
||||
]
|
||||
],
|
||||
'common' => [
|
||||
'error_occurred' => 'Es ist ein Fehler geschehen: ',
|
||||
'not_permitted' => 'Sie sind nicht berechtigt diese Funktion zu nutzen.',
|
||||
],
|
||||
'login' => [
|
||||
'password_mismatch' => 'Ihr Kennwort stimmt nicht überein.',
|
||||
'registration_success' => 'Sie wurden erfolgreich registriert.',
|
||||
'login_success' => 'Sie wurden erfolgreich angemeldet.',
|
||||
'title' => 'Anmelden',
|
||||
'please_login' => 'Bitte melden Sie sich gefälligst an!',
|
||||
'email' => 'Elektronische Postadresse:',
|
||||
'email_title' => 'Nur echte Adressen der elektronischen Post verwenden!',
|
||||
'password' => 'Kennwort:',
|
||||
'logged_in' => 'Sie sind angemeldet.',
|
||||
'logout' => 'Abmelden',
|
||||
'register_title' => 'Registrieren',
|
||||
'please_register' => 'Bitte registrieren Sie sich.',
|
||||
'username' => 'Name/Nick:',
|
||||
'password_repeat' => 'Kennwort wiederholen:',
|
||||
'registration_token' => 'Registrierungsnummer:',
|
||||
],
|
||||
'blog' => [
|
||||
'confirm_save' => 'Eintrag wirklich speichern?',
|
||||
'confirm_delete' => 'Eintrag wirklich löschen?',
|
||||
'add_post' => 'Post hinzufügen',
|
||||
'edit_delete_posts' => 'Posts ändern/löschen',
|
||||
'published' => 'Veröffentlichen?',
|
||||
'language' => 'Sprache',
|
||||
'title' => 'Titel',
|
||||
'content' => 'Inhalt',
|
||||
'add' => 'Hinzufügen',
|
||||
'save' => 'Speichern',
|
||||
'delete' => 'Löschen',
|
||||
'created_by' => 'Erstellt von',
|
||||
'created_at' => 'Erstellt am',
|
||||
'updated_at' => 'Verändert am',
|
||||
'title_placeholder' => 'Titel eingeben...',
|
||||
'content_placeholder' => 'Text/HTML eingeben...',
|
||||
],
|
||||
'ticker' => [
|
||||
'title' => 'Ticker bearbeiten',
|
||||
'description' => 'Hier kann der Ticker verändert werden.',
|
||||
'active_messages' => 'Aktive Tickernachrichten:',
|
||||
'delete_selected' => 'Ausgewählte Tickernachricht löschen',
|
||||
'create_message' => 'Tickernachricht erstellen:',
|
||||
'add' => 'Tickernachricht hinzufügen',
|
||||
'delete_success' => 'Löschen erfolgreich!',
|
||||
'insert_success' => 'Einfügen erfolgreich!',
|
||||
],
|
||||
'events' => [
|
||||
'description' => 'Hier können Sie Termine hinzufügen oder löschen.',
|
||||
'add' => 'Termin hinzufügen',
|
||||
'delete' => 'Termin löschen',
|
||||
'active' => 'Termin aktiviert (sichtbar)',
|
||||
'name' => 'Terminname',
|
||||
'list' => 'Termine',
|
||||
'setActivity' => 'Aktiv-Status ändern',
|
||||
'shortname' => 'Namenscode',
|
||||
'from_date_internal' => 'Fristanfang',
|
||||
'to_date_internal' => 'Fristende',
|
||||
'from_date_visible' => 'Terminstart',
|
||||
'to_date_visible' => 'Terminende',
|
||||
]
|
||||
];
|
||||
|
||||
28
lang/de/controller_messages.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'LoginController' => [
|
||||
'not_permitted' => 'Diese Aktion ist nicht zugelassen.',
|
||||
'email_in_use' => 'Diese elektronische Postadresse wird bereits verwendet.',
|
||||
'invalid_token' => 'Machen Sie die Musik aus.',
|
||||
'wrong_credentials' => 'Falsch. Einfach nur falsch.',
|
||||
'unknown_error' => 'Ein unbekannter Fehler ist aufgetreten.',
|
||||
'unknown_error_with_details' => 'Ein unbekannter Fehler ist aufgetreten: :error',
|
||||
],
|
||||
'PreApplicationController' => [
|
||||
'success' => 'Antrag erfolgreich abgeschickt. Bitte überprüfen Sie Ihr elektronisches Postfach.',
|
||||
'already_submitted' => 'Sie haben bereits einen Antrag abgeschickt.',
|
||||
'wrong_passport_type' => 'Falscher Reisepass-Typ',
|
||||
'invalid_email_format' => 'Ungültiges E-Mail-Format',
|
||||
'failed_to_process' => 'Fehler beim Verarbeiten des Antrages: :error',
|
||||
'invalid_characters' => 'Ungültige Zeichen im Namen oder Ort',
|
||||
'event_not_found' => 'Chaos-Event nicht gefunden',
|
||||
'application_not_found' => 'Antrag nicht gefunden',
|
||||
],
|
||||
'BlogController' => [
|
||||
'error_occurred' => 'Ein Fehler ist beim Verarbeiten des Blogs aufgetreten: :error',
|
||||
],
|
||||
'TickerController' => [
|
||||
'error_occurred' => 'Ein Fehler ist beim Verarbeiten des Tickers aufgetreten: :error',
|
||||
],
|
||||
];
|
||||
12
lang/de/mail.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'preapplication' => [
|
||||
'subject' => 'Ihr Vorantrag auf einen Reisepass',
|
||||
'body1' => "Hallo,<br /><br />Ihr Vorantrag wurde erfolgreich eingereicht.<br />Ihre Bearbeitungsnummer lautet: ",
|
||||
'body2' => "<br /><br />Folgende Daten wurden übermittelt:<br />",
|
||||
'body3' => "<br /><br />Bitte heben Sie diese E-Mail unbedingt auf.<br />Wenn möglich, drucken Sie das Formblatt 5, welches sich im E-Mail-Anhang befindet, aus. Tragen Sie Ihre Bearbeitungsnummer ein und bringen Sie es bei Abholung mit.",
|
||||
'body4' => "<br /><br />Wir bitten ebenfalls um die Beachtung der Spendengebührenverordnung, welche sich ebenfalls im Anhang befindet.",
|
||||
'signature' => "Mit freundlichen Grüßen,<br /><br /><br />Ihr C3Gov - Ihre Behörde in der Bezirksregion CCC"
|
||||
]
|
||||
];
|
||||
172
lang/en/app.php
@@ -2,10 +2,14 @@
|
||||
|
||||
return [
|
||||
'subtitle' => 'Your office for passport document affairs within the district region CCC.',
|
||||
'logo' => 'Official logo of the c3gov',
|
||||
'banner' => 'Banner. The c3gov laws are seen on a sheet of paper, and two different hacker passports.',
|
||||
'logo' => 'Official logo of the C3Gov',
|
||||
'banner' => 'Banner. The C3Gov laws are seen on a sheet of paper, and two different hacker passports.',
|
||||
'fediverse' => 'C3Gov on Fediverse',
|
||||
'signed_in_as' => 'Signed in as:',
|
||||
'guest' => 'Guest account',
|
||||
'news_alt' => 'News',
|
||||
'progress_flag' => 'LGBTQIA+ Progress Flag',
|
||||
'lead_by' => 'A district government authority run by transgender beings',
|
||||
'language' => [
|
||||
'en' => 'English',
|
||||
'de' => 'Deutsch',
|
||||
@@ -14,9 +18,20 @@ return [
|
||||
'about' => 'About us',
|
||||
'services' => 'Services',
|
||||
'news' => 'News',
|
||||
'documents' => 'Documents',
|
||||
'contact' => 'Contact',
|
||||
'imprint' => 'Imprint',
|
||||
'apply' => 'Apply now',
|
||||
'editTicker' => 'Edit ticker',
|
||||
'editNews' => 'Edit news',
|
||||
'editApplications' => 'Edit applications',
|
||||
'events' => 'C3Gov appointments',
|
||||
'logout' => 'Logout',
|
||||
'login' => 'Log in',
|
||||
'register' => 'Register'
|
||||
],
|
||||
'index' => [
|
||||
'welcome' => 'Welcome to the Internet presence of the C3Gov'
|
||||
],
|
||||
'about' => [
|
||||
'subtitle' => 'Hassle-Free Entry into CCC\'s Permanent and Temporary District Regions',
|
||||
@@ -26,9 +41,48 @@ return [
|
||||
'text4' => 'To expand our online presence, you can now also visit us on the Fediverse.',
|
||||
'text5' => 'To do so, click on this link:',
|
||||
'insertvideo' => '*Insert promotional video here*'
|
||||
],
|
||||
'documents' => [
|
||||
'description' => 'Here you can find our administration regulations and their attachments as well as any forms concerning the issuance of travel documents.',
|
||||
'verwaltungsvorschrift' => 'Administration Regulations',
|
||||
'donation' => 'Donation Fee Regulations',
|
||||
'fb1' => [
|
||||
'name' => 'Form 1',
|
||||
'description' => 'Application for the initial issuance of a hacker passport'
|
||||
],
|
||||
'fb1k' => [
|
||||
'name' => 'Form 1k',
|
||||
'description' => 'Antrag auf Erstausstellung eines Junghacker*innen-Reisepasses'
|
||||
],
|
||||
'fb2' => [
|
||||
'name' => 'Form 2',
|
||||
'description' => 'Application for the replacement or reissuance of a hacker passport'
|
||||
],
|
||||
'fb2k' => [
|
||||
'name' => 'Form 2k (German only!)',
|
||||
'description' => 'Antrag auf Ersatz- oder Zweitausstellungen eines Junghacker*innen-Reisepasses'
|
||||
],
|
||||
'fb3' => [
|
||||
'name' => 'Form 3',
|
||||
'description' => 'Application for the retroactive validation of a hacker passport'
|
||||
],
|
||||
'fb5' => [
|
||||
'name' => 'Form 5',
|
||||
'description' => 'Pre-registration for a passport application'
|
||||
],
|
||||
'fb7' => [
|
||||
'name' => 'Form 7',
|
||||
'description' => 'Complaint Form in accordance with §7 (2) C3GovVerwV'
|
||||
]
|
||||
],
|
||||
'services' => [
|
||||
'title' => 'Our Services',
|
||||
'alt' => [
|
||||
'first_issue' => 'First issue of a passport',
|
||||
'rejected' => 'Rejected application',
|
||||
'replacement' => 'Replacement passport',
|
||||
'stamps' => 'Official stamps',
|
||||
],
|
||||
'topic1' => [
|
||||
'title' => 'Issuance of Hacker Passports',
|
||||
'content' => 'Our team handles the issuance of travel documents.
|
||||
@@ -54,5 +108,117 @@ return [
|
||||
'title' => 'Certification of Attendance',
|
||||
'content' => 'Should you require certification of your visit, we will of course provide you with an official document.'
|
||||
]
|
||||
]
|
||||
],
|
||||
'imprint' => [
|
||||
'title' => 'Imprint',
|
||||
'alt' => 'Serious business',
|
||||
'content' => 'We hereby inform you that this platform is a project of the Chaos Computer Club Essen and does not issue any legally binding documents.
|
||||
<br />It does not constitute genuine commercial services or business-related services.
|
||||
<br />Therefore, the legal requirement to provide an imprint does not apply.
|
||||
<br /><br />However, we are happy to provide you with contact information:'
|
||||
],
|
||||
'contact' => [
|
||||
'title' => 'Contact',
|
||||
'alt' => 'Contact',
|
||||
'content' => 'Write us over in the <a href="https://chaos.social/@c3gov">fediverse</a>
|
||||
<br />or via email to: <a href="mailto:Dezernat7Zustaendigkeit@C3Gov.De">Dezernat7Zustaendigkeit@C3Gov.De</a>'
|
||||
],
|
||||
'preapplication' => [
|
||||
'title' => 'Pre-application for Passport according to § 5 C3GovVerwV',
|
||||
'content' => 'Please select a (temporary) district region to submit your pre-application for a passport.
|
||||
<br />After you have submitted the pre-application, you will receive a confirmation by e-mail.',
|
||||
'noevent' => 'Currently, there are no open appointment slots available.',
|
||||
'region' => 'District region',
|
||||
'time_ends' => 'Time ends on',
|
||||
'passport_type' => 'Passport type',
|
||||
'passport' => [
|
||||
'standard' => 'Hacker Passport',
|
||||
'kid' => 'Junghackerpass [German only]',
|
||||
],
|
||||
'mail' => 'E-mail address',
|
||||
'firstname' => 'First name (Nickname)',
|
||||
'lastname' => 'Last name (optional)',
|
||||
'location' => 'Hackspace / Location (optional)',
|
||||
'notes' => 'Notes',
|
||||
'reference_number' => 'Reference number',
|
||||
'created_at' => 'Submitted at',
|
||||
'actions' => 'Actions',
|
||||
'apply' => 'Submit pre-application',
|
||||
'edit' => [
|
||||
'title' => 'Edit applications',
|
||||
'description' => 'Here you can edit or delete applications.',
|
||||
'add' => 'Add application',
|
||||
'save' => 'Save',
|
||||
'delete' => 'Delete',
|
||||
'generated' => 'Generated',
|
||||
'download' => [
|
||||
'title' => 'Download pre-applications',
|
||||
'description' => 'Here you can download all pre-applications of a district region appointment as a PDF.',
|
||||
'button' => 'Generate PDF'
|
||||
]
|
||||
]
|
||||
],
|
||||
'common' => [
|
||||
'error_occurred' => 'An error occurred: ',
|
||||
'not_permitted' => 'You are not authorized to use this function.',
|
||||
],
|
||||
'login' => [
|
||||
'password_mismatch' => 'Your password does not match.',
|
||||
'registration_success' => 'You have been successfully registered.',
|
||||
'login_success' => 'You have been successfully logged in.',
|
||||
'title' => 'Log in',
|
||||
'please_login' => 'Please log in!',
|
||||
'email' => 'Electronic email address:',
|
||||
'email_title' => 'Only use real electronic mail addresses!',
|
||||
'password' => 'Password:',
|
||||
'logged_in' => 'You are logged in.',
|
||||
'logout' => 'Log out',
|
||||
'register_title' => 'Register',
|
||||
'please_register' => 'Please register.',
|
||||
'username' => 'Name/Nick:',
|
||||
'password_repeat' => 'Repeat password:',
|
||||
'registration_token' => 'Registration token:',
|
||||
],
|
||||
'blog' => [
|
||||
'confirm_save' => 'Do you really want to save this entry?',
|
||||
'confirm_delete' => 'Do you really want to delete this entry?',
|
||||
'add_post' => 'Add post',
|
||||
'edit_delete_posts' => 'Change/delete posts',
|
||||
'published' => 'Published?',
|
||||
'language' => 'Language',
|
||||
'title' => 'Title',
|
||||
'content' => 'Content',
|
||||
'add' => 'Add',
|
||||
'save' => 'Save',
|
||||
'delete' => 'Delete',
|
||||
'created_by' => 'Created by',
|
||||
'created_at' => 'Created at',
|
||||
'updated_at' => 'Updated at',
|
||||
'title_placeholder' => 'Enter title...',
|
||||
'content_placeholder' => 'Enter text/HTML...',
|
||||
],
|
||||
'ticker' => [
|
||||
'title' => 'Edit ticker',
|
||||
'description' => 'Here the ticker can be modified.',
|
||||
'active_messages' => 'Active ticker messages:',
|
||||
'delete_selected' => 'Delete selected ticker message',
|
||||
'create_message' => 'Create ticker message:',
|
||||
'add' => 'Add ticker message',
|
||||
'delete_success' => 'Deleted successfully!',
|
||||
'insert_success' => 'Inserted successfully!',
|
||||
],
|
||||
'events' => [
|
||||
'description' => 'Here you can add or delete appointments.',
|
||||
'add' => 'Add appointment',
|
||||
'delete' => 'Delete appointment',
|
||||
'active' => 'Appointment active (visible)',
|
||||
'name' => 'Name of appointment',
|
||||
'list' => 'Appointments',
|
||||
'setActivity' => 'Change activity status',
|
||||
'shortname' => 'Shortcode',
|
||||
'from_date_internal' => 'Start date for pre-applications',
|
||||
'to_date_internal' => 'End date for pre-applications',
|
||||
'from_date_visible' => 'Start date of appointment',
|
||||
'to_date_visible' => 'End date of appointment',
|
||||
]
|
||||
];
|
||||
|
||||
28
lang/en/controller_messages.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'LoginController' => [
|
||||
'not_permitted' => 'This action is not permitted.',
|
||||
'email_in_use' => 'This email address is already in use.',
|
||||
'invalid_token' => 'Invalid token.',
|
||||
'wrong_credentials' => 'Wrong credentials.',
|
||||
'unknown_error' => 'An unknown error occurred.',
|
||||
'unknown_error_with_details' => 'An unknown error occurred: :error',
|
||||
],
|
||||
'PreApplicationController' => [
|
||||
'success' => 'Application submitted successfully. Please check your email inbox.',
|
||||
'already_submitted' => 'You have already submitted an application.',
|
||||
'wrong_passport_type' => 'Wrong passport type',
|
||||
'invalid_email_format' => 'Invalid email format',
|
||||
'failed_to_process' => 'Failed to process application: :error',
|
||||
'invalid_characters' => 'Invalid characters in name or location',
|
||||
'event_not_found' => 'Chaos event not found',
|
||||
'application_not_found' => 'Application not found'
|
||||
],
|
||||
'BlogController' => [
|
||||
'error_occurred' => 'An error occurred while processing the blog: :error',
|
||||
],
|
||||
'TickerController' => [
|
||||
'error_occurred' => 'An error occurred while processing the ticker: :error',
|
||||
],
|
||||
];
|
||||
12
lang/en/mail.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'preapplication' => [
|
||||
'subject' => 'Your pre-applicaction for issuing a hacker passport',
|
||||
'body1' => "Hello,<br /><br />Your preliminary application has been successfully submitted.<br />Your reference number is:",
|
||||
'body2' => "<br /><br />The following data has been submitted:<br />",
|
||||
'body3' => "<br /><br />Please keep this email for your records. <br />If possible, print out form 5, which is attached to the email. Fill in your reference number and bring it with you when you pick up your hacker passport.",
|
||||
'body4' => "<br /><br />We also ask you to observe the donation regulation, which is also attached.",
|
||||
'signature' => "Sincerely,<br /><br /><br />Your C3Gov – Your government authority in the CCC district region"
|
||||
]
|
||||
];
|
||||
16
public/Bilder/ProgressFlag.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="762" viewBox="0 0 6000 3810" style="--vh: 16.59px;">
|
||||
<path fill="#6d2380" d="M0 0h6000v3810H0z"/>
|
||||
<path fill="#2c58a4" d="M0 0h6000v3175H0z"/>
|
||||
<path fill="#78b82a" d="M0 0h6000v2540H0z"/>
|
||||
<path fill="#efe524" d="M0 0h6000v1905H0z"/>
|
||||
<path fill="#f28917" d="M0 0h6000v1270H0z"/>
|
||||
<path fill="#e22016" d="M0 0h6000v635H0z"/>
|
||||
<path d="M0 0h1577l1764 1905-1764 1905H0z"/>
|
||||
<path fill="#945516" d="M0 0h1209l1764 1905-1764 1905H0z"/>
|
||||
<path fill="#7bcce5" d="M0 0h844l1764 1905L844 3810H0z"/>
|
||||
<path fill="#f4aec8" d="M0 0h477l1764 1905L477 3810H0z"/>
|
||||
<path fill="#fff" d="M0 0h111l1763 1905L111 3810H0z"/>
|
||||
<path fill="#fdd817" d="m0 278 1507 1627L0 3532z"/>
|
||||
<circle cx="556" cy="1905" r="404" fill="none" stroke="#66338b" stroke-width="95"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 893 B |
BIN
public/Bilder/abgelehnt.jpg
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 286 KiB After Width: | Height: | Size: 300 KiB |
BIN
public/Bilder/ernsthaft.jpg
Normal file
|
After Width: | Height: | Size: 1.7 MiB |
BIN
public/Bilder/ersatz.jpg
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
public/Bilder/erstausstellung.jpg
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
BIN
public/Bilder/fedicsgovnetscape.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
public/Bilder/fedicsgovnetscapepress.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
public/Bilder/kontakt.jpg
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
BIN
public/Bilder/neuigkeiten.jpg
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
BIN
public/Bilder/verwvstempel.jpg
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
BIN
public/Bilder/voranmeldung.jpg
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
9
public/css/application/edit.css
Normal file
@@ -0,0 +1,9 @@
|
||||
.notes-input {
|
||||
width: 100%;
|
||||
min-width: 150px;
|
||||
height: 4em;
|
||||
}
|
||||
.first-name-input, .last-name-input, .location-input {
|
||||
width: 100%;
|
||||
min-width: 80px;
|
||||
}
|
||||
@@ -16,8 +16,3 @@
|
||||
.blogEdit textarea {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.blogEdit select {
|
||||
font-size: 1em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
23
public/css/imprint/imprint.css
Normal file
@@ -0,0 +1,23 @@
|
||||
@keyframes fadeAndScale {
|
||||
0% {
|
||||
opacity: 0;
|
||||
/*transform: scale(1);*/
|
||||
}
|
||||
100% {
|
||||
opacity: 0.25;
|
||||
/*transform: scale(1);*/
|
||||
}
|
||||
}
|
||||
.funny-gift {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
object-fit: cover;
|
||||
z-index: 9999;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
animation: fadeAndScale 20s linear forwards;
|
||||
animation-delay: 2s;
|
||||
}
|
||||
@@ -9,6 +9,12 @@ html, body {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
select {
|
||||
font-size: 1em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
|
||||
*, *:before, *:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
@@ -18,6 +24,7 @@ html, body {
|
||||
height: 3vh;
|
||||
min-height: 24px;
|
||||
flex-shrink: 0;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.header {
|
||||
@@ -102,6 +109,13 @@ html, body {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.content-img {
|
||||
width: 33%;
|
||||
height: 150px;
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.navbar ul {
|
||||
list-style-type: none;
|
||||
padding: 10px;
|
||||
@@ -124,6 +138,10 @@ html, body {
|
||||
background-color: #bbb;
|
||||
}
|
||||
|
||||
.navbar-no-hover-effect a:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.header {
|
||||
flex-direction: column;
|
||||
@@ -166,18 +184,50 @@ html, body {
|
||||
|
||||
.eingabemaske {
|
||||
border: 5px inset;
|
||||
font-size: 1.2em;
|
||||
padding: 0.5em;
|
||||
overflow-x: auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (min-width: 1025px) {
|
||||
.eingabemaske {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.eingabemaske {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.eingabemaske input, .eingabemaske select, .eingabemaske textarea, .eingabemaske button {
|
||||
font-size: 0.9em;
|
||||
padding: 0.2em;
|
||||
}
|
||||
}
|
||||
|
||||
.eingabemaske table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.eingabemaske table, th, td {
|
||||
border: 4px outset;
|
||||
}
|
||||
|
||||
.eingabemaske th, .eingabemaske td {
|
||||
padding: 0.3em;
|
||||
}
|
||||
|
||||
.eingabemaske input {
|
||||
font-size: 1em;
|
||||
padding: 0.5em;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.eingabemaske input[type=checkbox] {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.eingabemaske button {
|
||||
@@ -211,4 +261,46 @@ nav {
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.split-left {
|
||||
float: left;
|
||||
width: 50%;
|
||||
}
|
||||
.split-right {
|
||||
float: left;
|
||||
width: 50%;
|
||||
border-left: 1px dotted #000;
|
||||
padding-left: 30px;
|
||||
}
|
||||
.content::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.progress-flag {
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.apply-button {
|
||||
font-size: 2.5em;
|
||||
padding: 20px 40px;
|
||||
border: 5px solid cyan;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
animation: blink 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0%, 100% {
|
||||
background-color: white;
|
||||
color: #4b0600;
|
||||
}
|
||||
50% {
|
||||
background-color: cyan;
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
.split-left {
|
||||
float: left;
|
||||
width: 21%;
|
||||
}
|
||||
.split-right {
|
||||
float: left;
|
||||
width: 50%;
|
||||
border-left: 1px dotted #000;
|
||||
padding-left: 30px;
|
||||
}
|
||||
@@ -17,7 +17,7 @@ function addBlog(){
|
||||
|
||||
console.log(b);
|
||||
|
||||
if(window.confirm('Eintrag wirklich speichern?')){
|
||||
if(window.confirm(i18n.blog.confirm_save)){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/intern/nachrichten/add",
|
||||
@@ -34,7 +34,7 @@ function addBlog(){
|
||||
}
|
||||
},
|
||||
error:function(r, a, e){
|
||||
alert(e);
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -48,7 +48,7 @@ function editBlog(blogId){
|
||||
b.published = $('#blogPublished_'+blogId).is(":checked") ? "1" : "0";
|
||||
b.language = $('#blogLanguage_'+blogId).val();
|
||||
|
||||
if(window.confirm('Eintrag wirklich speichern?')){
|
||||
if(window.confirm(i18n.blog.confirm_save)){
|
||||
$.ajax({
|
||||
type: "PUT",
|
||||
url: "/intern/nachrichten/edit",
|
||||
@@ -62,7 +62,7 @@ function editBlog(blogId){
|
||||
}
|
||||
},
|
||||
error:function(r, a, e){
|
||||
alert(e);
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -72,7 +72,7 @@ function deleteBlog(blogId){
|
||||
let b = {};
|
||||
b.id = blogId;
|
||||
|
||||
if(window.confirm('Eintrag wirklich löschen?')){
|
||||
if(window.confirm(i18n.blog.confirm_delete)){
|
||||
$.ajax({
|
||||
type:"DELETE",
|
||||
url:"/intern/nachrichten/delete",
|
||||
@@ -82,14 +82,13 @@ function deleteBlog(blogId){
|
||||
if(r.messageStatus === "success"){
|
||||
$('#blogDelete_' + blogId).closest('.blogEdit').fadeOut(300, function() {
|
||||
$(this).remove();
|
||||
location.reload();
|
||||
});
|
||||
} else {
|
||||
alert(r.errorMessage);
|
||||
}
|
||||
},
|
||||
error:function(r, a, e){
|
||||
alert(e);
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
87
public/js/events/events.js
Normal file
@@ -0,0 +1,87 @@
|
||||
function addEvent(){
|
||||
let data = {};
|
||||
data.name = $("#name").val();
|
||||
data.shortname = $("#shortname").val();
|
||||
data.from_date_internal = $("#from_date_internal").val();
|
||||
data.to_date_internal = $("#to_date_internal").val();
|
||||
data.from_date_visible = $("#from_date_visible").val();
|
||||
data.to_date_visible = $("#to_date_visible").val();
|
||||
data.active = $("#active").is(":checked") ? "1" : "0";
|
||||
|
||||
if(window.confirm(i18n.blog.confirm_save)) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/intern/events/hinzufuegen',
|
||||
data: data,
|
||||
dataType: 'json',
|
||||
success: function (r) {
|
||||
if (r.messageStatus === "success") {
|
||||
$('#name').val("");
|
||||
$('#shortname').val("");
|
||||
$('#from_date_internal').val("");
|
||||
$('#to_date_internal').val("");
|
||||
$('#from_date_visible').val("");
|
||||
$('#to_date_visible').val("");
|
||||
$('#active').prop('checked', false);
|
||||
location.reload();
|
||||
} else {
|
||||
alert(r.errorMessage);
|
||||
}
|
||||
},
|
||||
error: function (r, a, e) {
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function setActivity(id) {
|
||||
let data = {};
|
||||
data.id = id;
|
||||
data.active = $("#active_" + id).is(":checked") ? "1" : "0";
|
||||
|
||||
if(window.confirm(i18n.blog.confirm_save)) {
|
||||
$.ajax({
|
||||
type: 'PATCH',
|
||||
url: '/intern/events/setActivity',
|
||||
data: data,
|
||||
dataType: 'json',
|
||||
success: function (r) {
|
||||
if (r.messageStatus === "success") {
|
||||
location.reload();
|
||||
} else {
|
||||
alert(r.errorMessage);
|
||||
}
|
||||
},
|
||||
error: function (r, a, e) {
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function deleteEvent(id) {
|
||||
let data = {};
|
||||
data.id = id;
|
||||
|
||||
if(window.confirm(i18n.blog.confirm_delete)) {
|
||||
$.ajax({
|
||||
type: 'DELETE',
|
||||
url: '/intern/events/loeschen',
|
||||
data: data,
|
||||
dataType: 'json',
|
||||
success: function (r) {
|
||||
if (r.messageStatus === "success") {
|
||||
$('#delete_' + id).closest('#eingabemaske_' + id).fadeOut(300, function () {
|
||||
$(this).remove();
|
||||
});
|
||||
} else {
|
||||
alert(r.errorMessage);
|
||||
}
|
||||
},
|
||||
error: function (r, a, e) {
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -11,19 +11,19 @@ function login(){
|
||||
success: function(d){
|
||||
switch(d.messageStatus){
|
||||
case "success":
|
||||
setzeFehlermeldung("success", "Sie wurden erfolgreich angemeldet.");
|
||||
setzeFehlermeldung("success", i18n.login.login_success);
|
||||
location.reload();
|
||||
break;
|
||||
case "failure":
|
||||
setzeFehlermeldung("failure", "Es ist ein Fehler geschehen: " + d.errorMessage);
|
||||
setzeFehlermeldung("failure", i18n.common.error_occurred + d.errorMessage);
|
||||
break;
|
||||
case "not permitted":
|
||||
setzeFehlermeldung("failure", "Sie sind nicht berechtigt diese Funktion zu nutzen.");
|
||||
setzeFehlermeldung("failure", i18n.common.not_permitted);
|
||||
break;
|
||||
}
|
||||
},
|
||||
error: function(d, status, errorThrown) {
|
||||
setzeFehlermeldung("failure", "Es ist ein Fehler geschehen: " + errorThrown);
|
||||
setzeFehlermeldung("failure", i18n.common.error_occurred + errorThrown);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ function abschicken(){
|
||||
|
||||
if(data.password !== $("#password_repeat").val()) {
|
||||
|
||||
setzeFehlermeldung("failure", "Ihr Kennwort stimmt nicht überein.");
|
||||
setzeFehlermeldung("failure", i18n.login.password_mismatch);
|
||||
for(let i=0; i<Math.random() * 10; i++){
|
||||
alert("Ihr Kennwort stimmt nicht überein.");
|
||||
alert(i18n.login.password_mismatch);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -21,18 +21,18 @@ function abschicken(){
|
||||
success: function(d){
|
||||
switch(d.messageStatus){
|
||||
case "success":
|
||||
setzeFehlermeldung("success", "Sie wurden erfolgreich registriert.")
|
||||
setzeFehlermeldung("success", i18n.login.registration_success)
|
||||
break;
|
||||
case "failure":
|
||||
setzeFehlermeldung("failure", "Es ist ein Fehler geschehen: " + d.errorMessage);
|
||||
setzeFehlermeldung("failure", i18n.common.error_occurred + d.errorMessage);
|
||||
break;
|
||||
case "not permitted":
|
||||
setzeFehlermeldung("failure", "Sie sind nicht berechtigt diese Funktion zu nutzen.");
|
||||
setzeFehlermeldung("failure", i18n.common.not_permitted);
|
||||
break;
|
||||
}
|
||||
},
|
||||
error: function(d, status, errorThrown) {
|
||||
setzeFehlermeldung("failure", "Es ist ein Fehler geschehen: " + errorThrown);
|
||||
setzeFehlermeldung("failure", i18n.common.error_occurred + errorThrown);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
131
public/js/preapplication/edit.js
Normal file
@@ -0,0 +1,131 @@
|
||||
$(function() {
|
||||
$('select[autocomplete="off"]').each(function() {
|
||||
let selectedValue = $(this).find('option[selected]').val();
|
||||
if (selectedValue) {
|
||||
$(this).val(selectedValue);
|
||||
}
|
||||
});
|
||||
|
||||
function updateMaxlengths(element) {
|
||||
const row = $(element).closest('tr');
|
||||
const passportType = row.find('.passport-type-select').val();
|
||||
|
||||
let maxLength;
|
||||
switch (passportType) {
|
||||
case 'd':
|
||||
maxLength = 17;
|
||||
break;
|
||||
case 'k':
|
||||
maxLength = 25;
|
||||
break;
|
||||
default:
|
||||
maxLength = 17;
|
||||
}
|
||||
|
||||
row.find('.first-name-input, .last-name-input, .location-input').attr('maxlength', maxLength);
|
||||
}
|
||||
|
||||
$('.passport-type-select').each(function() {
|
||||
updateMaxlengths(this);
|
||||
});
|
||||
|
||||
$(document).on('change', '.passport-type-select', function() {
|
||||
updateMaxlengths(this);
|
||||
});
|
||||
});
|
||||
|
||||
function addApplication(){
|
||||
|
||||
let data = {};
|
||||
data.district_region = $('#region_new').val();
|
||||
data.passport_type = $('#passport_type_new').val();
|
||||
data.mail = $('#mail_new').val();
|
||||
data.first_name = $('#first_name_new').val();
|
||||
data.last_name = $('#last_name_new').val();
|
||||
data.location = $('#location_new').val();
|
||||
data.notes = $('#notes_new').val();
|
||||
|
||||
console.log(data);
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/intern/antraege/hinzufuegen",
|
||||
data: data,
|
||||
dataType: "json",
|
||||
success:function(r){
|
||||
if(r.messageStatus === "success"){
|
||||
$('#mail_new').val("");
|
||||
$('#first_name_new').val("");
|
||||
$('#last_name_new').val("");
|
||||
$('#location_new').val("");
|
||||
$('#notes_new').val("");
|
||||
location.reload();
|
||||
} else {
|
||||
alert(r.errorMessage);
|
||||
}
|
||||
},
|
||||
error:function(r, a, e){
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function deleteApplication(applicationId){
|
||||
let data = {};
|
||||
data.id = applicationId;
|
||||
|
||||
console.log(data);
|
||||
|
||||
if(window.confirm(i18n.blog.confirm_delete)){
|
||||
$.ajax({
|
||||
type: "DELETE",
|
||||
url: "/intern/antraege/loeschen",
|
||||
data: data,
|
||||
dataType: "json",
|
||||
success:function(r){
|
||||
if(r.messageStatus === "success"){
|
||||
$('#application_' + applicationId).fadeOut(300, function() {
|
||||
$(this).remove();
|
||||
});
|
||||
} else {
|
||||
alert(r.errorMessage);
|
||||
}
|
||||
},
|
||||
error:function(r, a, e){
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function editApplication(applicationId){
|
||||
let data = {};
|
||||
data.id = applicationId;
|
||||
data.first_name = $('#first_name_'+applicationId).val();
|
||||
data.last_name = $('#last_name_'+applicationId).val();
|
||||
data.location = $('#location_'+applicationId).val();
|
||||
data.notes = $('#notes_'+applicationId).val();
|
||||
data.mail = $('#mail_'+applicationId).val();
|
||||
data.passport_type = $('#passport_type_'+applicationId).val();
|
||||
|
||||
console.log(data);
|
||||
|
||||
if(window.confirm(i18n.blog.confirm_save)){
|
||||
$.ajax({
|
||||
type: "PUT",
|
||||
url: "/intern/antraege/bearbeiten",
|
||||
data: data,
|
||||
dataType: "json",
|
||||
success:function(r){
|
||||
if(r.messageStatus === "success"){
|
||||
location.reload();
|
||||
} else {
|
||||
alert(r.errorMessage);
|
||||
}
|
||||
},
|
||||
error:function(r, a, e){
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
67
public/js/preapplication/preapplication.js
Normal file
@@ -0,0 +1,67 @@
|
||||
$(function() {
|
||||
$('select[autocomplete="off"]').each(function() {
|
||||
let selectedValue = $(this).find('option[selected]').val();
|
||||
if (selectedValue) {
|
||||
$(this).val(selectedValue);
|
||||
}
|
||||
});
|
||||
|
||||
function updateMaxlengths() {
|
||||
const passportType = $('#passport_type').val();
|
||||
|
||||
let maxLength;
|
||||
switch (passportType) {
|
||||
case 'd':
|
||||
maxLength = 17;
|
||||
break;
|
||||
case 'k':
|
||||
maxLength = 25;
|
||||
break;
|
||||
default:
|
||||
maxLength = 17;
|
||||
}
|
||||
|
||||
$('#firstname, #lastname, #location').attr('maxlength', maxLength);
|
||||
}
|
||||
|
||||
updateMaxlengths();
|
||||
|
||||
$('#passport_type, #district_region').on('change', function() {
|
||||
updateMaxlengths();
|
||||
});
|
||||
});
|
||||
|
||||
function vorantragAbschicken(){
|
||||
|
||||
let data = {};
|
||||
data.district_region = $('#district_region').val();
|
||||
data.passport_type = $('#passport_type').val();
|
||||
data.mail = $('#mail').val();
|
||||
data.first_name = $('#firstname').val();
|
||||
data.last_name = $('#lastname').val();
|
||||
data.location = $('#location').val();
|
||||
|
||||
console.log(data);
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/vorbeantragen/absenden",
|
||||
data: data,
|
||||
dataType: "json",
|
||||
success:function(r){
|
||||
if(r.messageStatus === "success"){
|
||||
$('#mail').val("");
|
||||
$('#firstname').val("");
|
||||
$('#lastname').val("");
|
||||
$('#location').val("");
|
||||
alert(r.errorMessage);
|
||||
} else {
|
||||
alert(r.errorMessage);
|
||||
}
|
||||
},
|
||||
error:function(r, a, e){
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
@@ -14,7 +14,7 @@ function remove(lang){
|
||||
success: function (d) {
|
||||
switch(d.messageStatus){
|
||||
case "success":
|
||||
setzeFehlermeldung(d.messageStatus, "Löschen erfolgreich!");
|
||||
setzeFehlermeldung(d.messageStatus, i18n.ticker.delete_success);
|
||||
location.reload();
|
||||
break;
|
||||
case "failure":
|
||||
@@ -23,7 +23,7 @@ function remove(lang){
|
||||
}
|
||||
},
|
||||
error: function (d, status, error) {
|
||||
setzeFehlermeldung("failure", error);
|
||||
setzeFehlermeldung("failure", i18n.common.error_occurred + error);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -42,7 +42,7 @@ function insert(lang){
|
||||
success: function (d) {
|
||||
switch(d.messageStatus){
|
||||
case "success":
|
||||
setzeFehlermeldung(d.messageStatus, "Einfügen erfolgreich!");
|
||||
setzeFehlermeldung(d.messageStatus, i18n.ticker.insert_success);
|
||||
location.reload();
|
||||
break;
|
||||
case "failure":
|
||||
@@ -51,7 +51,7 @@ function insert(lang){
|
||||
}
|
||||
},
|
||||
error: function (d, status, error) {
|
||||
setzeFehlermeldung("failure", error);
|
||||
setzeFehlermeldung("failure", i18n.common.error_occurred + error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,7 +1,66 @@
|
||||
@php use App\Models\ChaosEvents; @endphp
|
||||
@extends('layout.app')
|
||||
@section('scripts')
|
||||
<script>
|
||||
const i18n = {
|
||||
common: {
|
||||
error_occurred: "{{ __('app.common.error_occurred') }}"
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="{{ asset('/js/preapplication/preapplication.js') }}"></script>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1>{{ __('app.preapplication.title') }}</h1>
|
||||
|
||||
<p>{!! __('app.preapplication.content') !!}</p>
|
||||
|
||||
@if (ChaosEvents::getActiveEvents()->count() > 0)
|
||||
<div class="eingabemaske">
|
||||
<table class="eingabetabelle">
|
||||
<tr>
|
||||
<td>{{ __('app.preapplication.region') }}:</td>
|
||||
<td><select name="district_region" id="district_region">
|
||||
@foreach(ChaosEvents::getActiveEvents() as $event)
|
||||
<option value="{{ $event->id }}">{{ $event->name }} ({{ $event->from_date_visible->format('Y-m-d') }} - {{ $event->to_date_visible->format('Y-m-d') . ") - " . __('app.preapplication.time_ends') . ": " . $event->to_date_internal->format('Y-m-d')}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.preapplication.passport_type') }}:</td>
|
||||
<td>
|
||||
<select name="passport_type" id="passport_type">
|
||||
<option value="d">{{ __('app.preapplication.passport.standard') }}</option>
|
||||
<option value="k">{{ __('app.preapplication.passport.kid') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.preapplication.mail') }}:</td>
|
||||
<td><input type="text" id="mail" name="mail" placeholder="{{ __('app.preapplication.mail') }}" required></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.preapplication.firstname') }}:</td>
|
||||
<td><input type="text" id="firstname" name="firstname" placeholder="{{ __('app.preapplication.firstname') }}" required></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.preapplication.lastname') }}:</td>
|
||||
<td><input type="text" id="lastname" name="lastname" placeholder="{{ __('app.preapplication.lastname') }}" required></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.preapplication.location') }}:</td>
|
||||
<td><input type="text" id="location" name="location" placeholder="{{ __('app.preapplication.location') }}" required></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<button id="apply" onclick="vorantragAbschicken()">{{ __('app.preapplication.apply') }}</button>
|
||||
|
||||
</div>
|
||||
|
||||
@else
|
||||
<p><b>{{ __('app.preapplication.noevent') }}</b></p>
|
||||
@endif
|
||||
|
||||
@endsection
|
||||
|
||||
106
resources/views/application/edit.blade.php
Normal file
@@ -0,0 +1,106 @@
|
||||
@php
|
||||
use App\Models\ChaosEvents;
|
||||
@endphp
|
||||
|
||||
@extends('layout.app')
|
||||
|
||||
@section('scripts')
|
||||
<link rel="stylesheet" href="{{ asset('/css/application/edit.css') }}">
|
||||
<script>
|
||||
const i18n = {
|
||||
common: {
|
||||
error_occurred: "{{ __('app.common.error_occurred') }}"
|
||||
},
|
||||
blog: {
|
||||
confirm_save: "{{ __('app.blog.confirm_save') }}",
|
||||
confirm_delete: "{{ __('app.blog.confirm_delete') }}"
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="{{ asset('/js/preapplication/edit.js') }}"></script>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1>{{ __('app.preapplication.edit.download.title') }}</h1>
|
||||
<p>{{ __('app.preapplication.edit.download.description') }}</p>
|
||||
<div class="eingabemaske">
|
||||
<form action="{{ route('generatePDF') }}" method="GET">
|
||||
<label for="event_id">{{ __('app.preapplication.region') }}:</label>
|
||||
<select id="event_id" name="event_id">
|
||||
@foreach(ChaosEvents::all() as $event)
|
||||
<option value="{{ $event->id }}">{{ $event->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<br /><br />
|
||||
<button type="submit">{{ __('app.preapplication.edit.download.button') }}</button>
|
||||
</form>
|
||||
</div>
|
||||
<br /><br />
|
||||
|
||||
<h1>{{ __("app.preapplication.edit.title") }}</h1>
|
||||
<p>{{ __("app.preapplication.edit.description") }}</p>
|
||||
|
||||
<b>{{ __('app.preapplication.passport_type') }}:</b><br />
|
||||
d = {{ __('app.preapplication.passport.standard') }}<br />
|
||||
k = {{ __('app.preapplication.passport.kid') }}
|
||||
<br /><br />
|
||||
|
||||
<div class="eingabemaske">
|
||||
<table class="eingabetabelle">
|
||||
<tr>
|
||||
<th>{{ __('app.preapplication.region') }}</th>
|
||||
<th>{{ __('app.preapplication.reference_number') }}</th>
|
||||
<th>{{ __('app.preapplication.firstname') }}</th>
|
||||
<th>{{ __('app.preapplication.lastname') }}</th>
|
||||
<th>{{ __('app.preapplication.location') }}</th>
|
||||
<th>{{ __('app.preapplication.notes') }}</th>
|
||||
<th>{{ __('app.preapplication.mail') }}</th>
|
||||
<th>{{ __('app.preapplication.passport_type') }}</th>
|
||||
<th>{{ __('app.preapplication.created_at') }}</th>
|
||||
<th>{{ __('app.preapplication.actions') }}</th>
|
||||
</tr>
|
||||
@foreach($applications as $appl)
|
||||
<tr id="application_{{ $appl->id }}">
|
||||
<td>{{ $appl->event()->first()->name }}</td>
|
||||
<td>{{ $appl->reference_number }}</td>
|
||||
<td><input id="first_name_{{ $appl->id }}" class="first-name-input" type="text" value="{{ $appl->first_name }}"></td>
|
||||
<td><input id="last_name_{{ $appl->id }}" class="last-name-input" type="text" value="{{ $appl->last_name }}"></td>
|
||||
<td><input id="location_{{ $appl->id }}" class="location-input" type="text" value="{{ $appl->location }}"></td>
|
||||
<td><textarea id="notes_{{ $appl->id }}" class="notes-input">{{ $appl->notes }}</textarea></td>
|
||||
<td><input id="mail_{{ $appl->id }}" type="text" value="{{ $appl->email }}"></td>
|
||||
<td>
|
||||
<select id="passport_type_{{ $appl->id }}" class="passport-type-select">
|
||||
<option value="d"{{ ( $appl->passport_type == "d" ? " selected" : "" ) }}>d</option>
|
||||
<option value="k"{{ ( $appl->passport_type == "k" ? " selected" : "" ) }}>k</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>{{ $appl->created_at }}</td>
|
||||
<td><button onclick="editApplication({{ $appl->id }})">{{ __('app.preapplication.edit.save') }}</button><button id="applicationDelete_{{ $appl->id }}" onclick="deleteApplication({{ $appl->id }})">{{ __('app.preapplication.edit.delete') }}</button></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td>
|
||||
<select id="region_new">
|
||||
@foreach(ChaosEvents::getActiveEvents() as $region)
|
||||
<option value="{{ $region->id }}">{{ $region->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td>{{ __('app.preapplication.edit.generated') }}</td>
|
||||
<td><input id="first_name_new" class="first-name-input" type="text"></td>
|
||||
<td><input id="last_name_new" class="last-name-input" type="text"></td>
|
||||
<td><input id="location_new" class="location-input" type="text"></td>
|
||||
<td><textarea id="notes_new" class="notes-input"></textarea></td>
|
||||
<td><input id="mail_new" type="text"></td>
|
||||
<td><select id="passport_type_new" class="passport-type-select">
|
||||
<option value="d">d</option>
|
||||
<option value="k">k</option>
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
<td><button onclick="addApplication()">{{ __('app.preapplication.edit.add') }}</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@@ -1,59 +1,70 @@
|
||||
@extends('layout.app')
|
||||
@section('scripts')
|
||||
<script>
|
||||
const i18n = {
|
||||
common: {
|
||||
error_occurred: "{{ __('app.common.error_occurred') }}"
|
||||
},
|
||||
blog: {
|
||||
confirm_save: "{{ __('app.blog.confirm_save') }}",
|
||||
confirm_delete: "{{ __('app.blog.confirm_delete') }}"
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<link rel="stylesheet" href="{{ asset("css/blog/edit.css") . "?rnd=" . rand(0, 1000000000) }}">
|
||||
<script src="{{ asset('/js/blog/blog.js') }}"></script>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
<h2>Post hinzufügen</h2>
|
||||
<h2>{{ __('app.blog.add_post') }}</h2>
|
||||
<div class="blogEdit">
|
||||
Veröffentlichen? <input type="checkbox" id="blogPublished_new" checked><br /><br />
|
||||
{{ __('app.blog.published') }} <input type="checkbox" id="blogPublished_new" checked><br /><br />
|
||||
|
||||
Sprache:
|
||||
{{ __('app.blog.language') }}:
|
||||
<select id="blogLanguage_new" name="language" autocomplete="off">
|
||||
<option value="de">Deutsch</option>
|
||||
<option value="en">Englisch</option>
|
||||
<option value="de">{{ __('app.language.de') }}</option>
|
||||
<option value="en">{{ __('app.language.en') }}</option>
|
||||
</select><br /><br />
|
||||
|
||||
<label for="blogTitle_new">Titel:<br />
|
||||
</label><input id="blogTitle_new" type="text" value="" placeholder="Titel eingeben...">
|
||||
<label for="blogTitle_new">{{ __('app.blog.title') }}:<br />
|
||||
</label><input id="blogTitle_new" type="text" value="" placeholder="{{ __('app.blog.title_placeholder') }}">
|
||||
<br /><br />
|
||||
|
||||
<label for="blogBody_new">Inhalt:</label><br />
|
||||
<textarea cols="64" rows="8" maxlength="2000" id="blogBody_new" placeholder="Text/HTML eingeben..."></textarea>
|
||||
<label for="blogBody_new">{{ __('app.blog.content') }}:</label><br />
|
||||
<textarea cols="64" rows="8" maxlength="2000" id="blogBody_new" placeholder="{{ __('app.blog.content_placeholder') }}"></textarea>
|
||||
<br />
|
||||
<br />
|
||||
<button onclick="addBlog()" id="blogEdit_new">Hinzufügen</button><br /><br />
|
||||
<button onclick="addBlog()" id="blogEdit_new">{{ __('app.blog.add') }}</button><br /><br />
|
||||
|
||||
</div>
|
||||
|
||||
<h2>Posts ändern/löschen</h2>
|
||||
<h2>{{ __('app.blog.edit_delete_posts') }}</h2>
|
||||
<br />
|
||||
|
||||
@foreach($blogs as $blog)
|
||||
<div class="blogEdit">
|
||||
<b>Erstellt von: {{$blog->byUser()->first()->name}} - Erstellt am: {{ $blog->created_at }} - Verändert am: {{ $blog->updated_at }}</b><br /><br />
|
||||
<b>{{ __('app.blog.created_by') }}: {{$blog->byUser()->first()->name}} - {{ __('app.blog.created_at') }}: {{ $blog->created_at }} - {{ __('app.blog.updated_at') }}: {{ $blog->updated_at }}</b><br /><br />
|
||||
|
||||
Veröffentlicht: <input type="checkbox" id="blogPublished_{{$blog->id}}"{{ $blog->published ? " checked" : "" }}><br /><br />
|
||||
{{ __('app.blog.published') }} <input type="checkbox" id="blogPublished_{{$blog->id}}"{{ $blog->published ? " checked" : "" }}><br /><br />
|
||||
|
||||
Sprache:
|
||||
{{ __('app.blog.language') }}:
|
||||
<select id="blogLanguage_{{ $blog->id }}" name="language" autocomplete="off">
|
||||
<option value="de"{{ ($blog->language == "de" ? " selected" : "") }}>Deutsch</option>
|
||||
<option value="en"{{ ($blog->language == "en" ? " selected" : "") }}>Englisch</option>
|
||||
<option value="de"{{ ($blog->language == "de" ? " selected" : "") }}>{{ __('app.language.de') }}</option>
|
||||
<option value="en"{{ ($blog->language == "en" ? " selected" : "") }}>{{ __('app.language.en') }}</option>
|
||||
</select><br /><br />
|
||||
|
||||
<button onclick="deleteBlog({{ $blog->id }})" id="blogDelete_{{ $blog->id }}">Löschen</button><br /><br />
|
||||
<button onclick="deleteBlog({{ $blog->id }})" id="blogDelete_{{ $blog->id }}">{{ __('app.blog.delete') }}</button><br /><br />
|
||||
|
||||
<label for="blogTitle_{{ $blog->id }}">Titel:<br />
|
||||
<label for="blogTitle_{{ $blog->id }}">{{ __('app.blog.title') }}:<br />
|
||||
</label><input id="blogTitle_{{ $blog->id }}" type="text" value="{{ $blog->title }}">
|
||||
<br /><br />
|
||||
|
||||
<label for="blogBody_{{$blog->id}}">Inhalt:</label><br />
|
||||
<label for="blogBody_{{$blog->id}}">{{ __('app.blog.content') }}:</label><br />
|
||||
<textarea cols="64" rows="8" maxlength="2000" id="blogBody_{{$blog->id}}">{!! $blog->body !!}</textarea>
|
||||
<br />
|
||||
<br />
|
||||
<button onclick="editBlog({{ $blog->id }})" id="blogEdit_{{ $blog->id }}">Speichern</button><br /><br />
|
||||
<button onclick="editBlog({{ $blog->id }})" id="blogEdit_{{ $blog->id }}">{{ __('app.blog.save') }}</button><br /><br />
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<img class="content-img" src="{{ asset('/Bilder/abgelehnt.jpg') }}" alt="{{ __('app.services.alt.rejected') }}">
|
||||
<h2>{{ __('app.nav.about') }}</h2>
|
||||
|
||||
<h1>{{ __('app.about.subtitle') }}</h1>
|
||||
|
||||
@@ -3,5 +3,8 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
<img class="content-img" src="{{ asset('Bilder/kontakt.jpg') }}" alt="{{ __('app.contact.alt') }}" />
|
||||
<h1>{{ __('app.contact.title') }}</h1>
|
||||
<br />
|
||||
{!! __('app.contact.content') !!}
|
||||
@endsection
|
||||
|
||||
39
resources/views/content/documents.blade.php
Normal file
@@ -0,0 +1,39 @@
|
||||
@extends('layout.app')
|
||||
|
||||
@section('scripts')
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1>{{ __('app.nav.documents') }}</h1>
|
||||
<h2>{{ __('app.documents.description') }}</h2>
|
||||
|
||||
<h3>{{ __('app.documents.verwaltungsvorschrift') }}</h3>
|
||||
<a href="{{ asset('Dokumente/C3GovVerwV.pdf') }}">{{ __('app.documents.verwaltungsvorschrift') }} C3GovVerwV Deutsch (PDF)</a><br />
|
||||
<a href="{{ asset('Dokumente/C3GovVerwV_en.pdf') }}">{{ __('app.documents.verwaltungsvorschrift') }} C3GovVerwV English (PDF)</a><br /><br />
|
||||
|
||||
<h3>{{ __('app.documents.donation') }}</h3>
|
||||
<a href="{{ asset('Dokumente/C3GovSpGV.pdf') }}">{{ __('app.documents.donation') }} Deutsch (PDF)</a><br />
|
||||
<a href="{{ asset('Dokumente/C3GovSpGV_en.pdf') }}">{{ __('app.documents.donation') }} English (PDF)</a><br /><br />
|
||||
|
||||
<h3>{{ __('app.documents.fb1.name') }}</h3>
|
||||
<a href="{{ asset('Dokumente/c3gov_fb1d.pdf') }}">{{ __('app.documents.fb1.description') }} Deutsch (PDF)</a><br />
|
||||
<a href="{{ asset('Dokumente/c3gov_fb1e.pdf') }}">{{ __('app.documents.fb1.description') }} English (PDF)</a><br />
|
||||
<a href="{{ asset('Dokumente/c3gov_fb1k.pdf') }}">{{ __('app.documents.fb1k.description') }} Deutsch (PDF)</a><br /><br />
|
||||
|
||||
<h3>{{ __('app.documents.fb2.name') }}</h3>
|
||||
<a href="{{ asset('Dokumente/c3gov_fb2d.pdf') }}">{{ __('app.documents.fb2.description') }} Deutsch (PDF)</a><br />
|
||||
<a href="{{ asset('Dokumente/c3gov_fb2e.pdf') }}">{{ __('app.documents.fb2.description') }} English (PDF)</a><br />
|
||||
<a href="{{ asset('Dokumente/c3gov_fb2k.pdf') }}">{{ __('app.documents.fb2k.description') }} Deutsch (PDF)</a><br /><br />
|
||||
|
||||
<h3>{{ __('app.documents.fb3.name') }}</h3>
|
||||
<a href="{{ asset('Dokumente/c3gov_fb3d.pdf') }}">{{ __('app.documents.fb3.description') }} Deutsch (PDF)</a><br />
|
||||
<a href="{{ asset('Dokumente/c3gov_fb3e.pdf') }}">{{ __('app.documents.fb3.description') }} English (PDF)</a><br /><br />
|
||||
|
||||
<h3>{{ __('app.documents.fb5.name') }}</h3>
|
||||
<a href="{{ asset('Dokumente/c3gov_fb5dk.pdf') }}">{{ __('app.documents.fb5.description') }} Deutsch (PDF)</a><br />
|
||||
<a href="{{ asset('Dokumente/c3gov_fb5ek.pdf') }}">{{ __('app.documents.fb5.description') }} English (PDF)</a><br /><br />
|
||||
|
||||
<h3>{{ __('app.documents.fb7.name') }}</h3>
|
||||
<a href="{{ asset('Dokumente/c3gov_fb7d.pdf') }}">{{ __('app.documents.fb7.description') }} Deutsch (PDF)</a><br />
|
||||
<a href="{{ asset('Dokumente/c3gov_fb7e.pdf') }}">{{ __('app.documents.fb7.description') }} English (PDF)</a><br /><br />
|
||||
@endsection
|
||||
@@ -1,7 +1,20 @@
|
||||
@extends('layout.app')
|
||||
@section('scripts')
|
||||
<link rel="stylesheet" href="{{ asset('/css/imprint/imprint.css') }}">
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
<img class="content-img" src="{{ asset('/Bilder/ernsthaft.jpg') }}" alt="{{ __('app.imprint.alt') }}">
|
||||
<img src="{{ asset('/Bilder/deutsch.gif') }}" class="funny-gift" alt="funny">
|
||||
<h1>{{ __('app.imprint.title') }}</h1>
|
||||
<br />
|
||||
<p>{!! __('app.imprint.content') !!}</p>
|
||||
<br />
|
||||
Chaos Computer Club Essen / foobar e.V.<br />
|
||||
C3Gov<br />
|
||||
Sibyllastr. 9<br />
|
||||
45136 Essen<br />
|
||||
Germany<br />
|
||||
<br />
|
||||
<br />
|
||||
@endsection
|
||||
|
||||
@@ -1,5 +1,37 @@
|
||||
@extends('layout.app')
|
||||
|
||||
@section('content')
|
||||
<h1>Guten Tag.</h1>
|
||||
<h1>{{ __('app.index.welcome') }}</h1>
|
||||
|
||||
<div style="text-align: center;">
|
||||
<a href="{{ route('apply') }}"><button class="apply-button">{{ __('app.nav.apply') }}!!!!</button></a>
|
||||
</div>
|
||||
<br /><br />
|
||||
|
||||
<div class="split-left">
|
||||
<h2 style="text-align: center;">{{ __('app.nav.about') }}</h2>
|
||||
<a href="{{ route('about') }}"><img class="content-img" src="{{ asset('/Bilder/verwvstempel.jpg') }}" alt="{{ __('app.services.alt.stamp') }}"></a>
|
||||
<br />
|
||||
|
||||
<h2 style="text-align: center;">{{ __('app.nav.news') }}</h2>
|
||||
<a href="{{ route('news') }}"><img class="content-img" src="{{ asset('/Bilder/neuigkeiten.jpg') }}" alt="{{ __('app.news_alt') }}"></a>
|
||||
<br />
|
||||
|
||||
<h2 style="text-align: center;">{{ __('app.nav.documents') }}</h2>
|
||||
<a href="{{ route('documents') }}"><img class="content-img" src="{{ asset('/Bilder/verwvstempel.jpg') }}" alt="{{ __('app.nav.documents') }}"></a>
|
||||
<br />
|
||||
</div>
|
||||
<div class="split-right">
|
||||
<h2 style="text-align: center;">{{ __('app.nav.services') }}</h2>
|
||||
<a href="{{ route('services') }}"><img class="content-img" src="{{ asset('/Bilder/abgelehnt.jpg') }}" alt="{{ __('app.services.alt.rejected') }}"></a>
|
||||
<br />
|
||||
|
||||
<h2 style="text-align: center;">{{ __('app.nav.contact') }}</h2>
|
||||
<a href="{{ route('contact') }}"><img class="content-img" src="{{ asset('/Bilder/kontakt.jpg') }}" alt="{{ __('app.nav.contact') }}"></a>
|
||||
<br />
|
||||
|
||||
<h2 style="text-align: center;">{{ __('app.nav.imprint') }}</h2>
|
||||
<a href="{{ route('imprint') }}"><img class="content-img" src="{{ asset('/Bilder/ernsthaft.jpg') }}" alt="{{ __('app.nav.imprint') }}"></a>
|
||||
<br />
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<img class="content-img" src="{{ asset('Bilder/neuigkeiten.jpg') }}" alt="{{ __('app.news_alt') }}">
|
||||
<h1>{{ __('app.nav.news') }}</h1>
|
||||
@foreach($blogs as $blog)
|
||||
<h2>{{ $blog->title }}</h2>
|
||||
|
||||
@@ -5,15 +5,22 @@
|
||||
@section('content')
|
||||
<h1>{{ __('app.services.title') }}</h1>
|
||||
<br />
|
||||
<img class="content-img" src="{{ asset('Bilder/erstausstellung.jpg') }}" alt="{{ __('app.services.alt.first_issue') }}">
|
||||
<h2>{{ __('app.services.topic1.title') }}</h2>
|
||||
<p>{!! __('app.services.topic1.content') !!}</p>
|
||||
<br />
|
||||
<br /><br />
|
||||
|
||||
<img class="content-img" src="{{ asset('Bilder/abgelehnt.jpg') }}" alt="{{ __('app.services.alt.rejected') }}">
|
||||
<h2>{{ __('app.services.topic2.title') }}</h2>
|
||||
<p>{!! __('app.services.topic2.content') !!}</p>
|
||||
<br />
|
||||
<br /><br />
|
||||
|
||||
<img class="content-img" src="{{ asset('Bilder/ersatz.jpg') }}" alt="{{ __('app.services.alt.replacement') }}">
|
||||
<h2>{{ __('app.services.topic3.title') }}</h2>
|
||||
<p>{!! __('app.services.topic3.content') !!}</p>
|
||||
<br />
|
||||
<br /><br />
|
||||
|
||||
<img class="content-img" src="{{ asset('Bilder/verwvstempel.jpg') }}" alt="{{ __('app.services.alt.stamps') }}">
|
||||
<h2>{{ __('app.services.topic4.title') }}</h2>
|
||||
<p>{!! __('app.services.topic4.content') !!}</p>
|
||||
<br />
|
||||
|
||||
97
resources/views/events/edit.blade.php
Normal file
@@ -0,0 +1,97 @@
|
||||
@extends('layout.app')
|
||||
@section('scripts')
|
||||
<script>
|
||||
const i18n = {
|
||||
common: {
|
||||
error_occurred: "{{ __('app.common.error_occurred') }}"
|
||||
},
|
||||
blog: {
|
||||
confirm_save: "{{ __('app.blog.confirm_save') }}",
|
||||
confirm_delete: "{{ __('app.blog.confirm_delete') }}"
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="{{ asset('js/events/events.js') }}"></script>
|
||||
@endsection
|
||||
@section('content')
|
||||
<h1>{{ __('app.nav.events') }}</h1>
|
||||
<p>{{ __('app.events.description') }}</p>
|
||||
|
||||
<h2>{{ __('app.events.add') }}</h2>
|
||||
|
||||
<div class="eingabemaske">
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ __('app.events.name') }}:</td>
|
||||
<td><input type="text" id="name"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.shortname') }}:</td>
|
||||
<td><input type="text" id="shortname"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.from_date_internal') }}:</td>
|
||||
<td><input type="date" id="from_date_internal"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.to_date_internal') }}:</td>
|
||||
<td><input type="date" id="to_date_internal"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.from_date_visible') }}:</td>
|
||||
<td><input type="date" id="from_date_visible"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.to_date_visible') }}:</td>
|
||||
<td><input type="date" id="to_date_visible"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.active') }}:</td>
|
||||
<td><input type="checkbox" id="active" name="{{ __('app.events.active') }}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<button id="add" onclick="addEvent()">{{ __('app.events.add') }}</button>
|
||||
</div>
|
||||
<br /><br />
|
||||
|
||||
<h2>{{ __('app.events.list') }}</h2>
|
||||
@foreach($events as $event)
|
||||
<div id="eingabemaske_{{ $event->id }}" class="eingabemaske">
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ __('app.events.name') }}:</td>
|
||||
<td>{{ $event->name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.shortname') }}:</td>
|
||||
<td>{{ $event->shortname }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.from_date_internal') }}:</td>
|
||||
<td>{{ $event->from_date_internal->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.to_date_internal') }}:</td>
|
||||
<td>{{ $event->to_date_internal->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.from_date_visible') }}:</td>
|
||||
<td>{{ $event->from_date_visible->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.to_date_visible') }}:</td>
|
||||
<td>{{ $event->to_date_visible->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('app.events.active') }}:</td>
|
||||
<td><input type="checkbox" id="active_{{ $event->id }}" @if($event->active) checked @endif></td>
|
||||
</tr>
|
||||
</table>
|
||||
<button id="setActivity_{{ $event->id }}" onclick="setActivity({{ $event->id }})">{{ __('app.events.setActivity') }}</button>
|
||||
<button id="delete_{{ $event->id }}" onclick="deleteEvent({{ $event->id }})">{{ __('app.events.delete') }}</button>
|
||||
</div>
|
||||
<br /><br />
|
||||
@endforeach
|
||||
|
||||
{{ $events->links() }}
|
||||
@endsection
|
||||
@@ -3,11 +3,19 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>c3gov - {{ __('app.subtitle') }}</title>
|
||||
<title>C3Gov - {{ __('app.subtitle') }}</title>
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<link rel="icon" type="image/x-icon" href="{{ asset("favicon.ico") }}">
|
||||
<link rel="stylesheet" href="{{ asset("css/style.css") . "?rnd=" . rand(0, 1000000000) }}">
|
||||
<script src="{{ asset("js/jquery/jquery-4.0.0.min.js") }}"></script>
|
||||
<script src="{{ asset("js/web.js") }}"></script>
|
||||
<script>
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@yield('scripts')
|
||||
</head>
|
||||
<body>
|
||||
@@ -26,8 +34,8 @@
|
||||
</div>
|
||||
<div class="language-area">
|
||||
<div class="language">
|
||||
<img alt="{{ __('app.language.de') }}" onclick="setLanguage('de')" src="{{ asset("Bilder/deutsch.gif") }}">
|
||||
<img alt="{{ __('app.language.en') }}" onclick="setLanguage('en')" src="{{ asset("Bilder/englisch.gif") }}">
|
||||
<img alt="{{ __('app.language.de') }}" onclick="setLanguage('de')" src="{{ asset("Bilder/deutschloop.gif") }}">
|
||||
<img alt="{{ __('app.language.en') }}" onclick="setLanguage('en')" src="{{ asset("Bilder/englischloop.gif") }}">
|
||||
</div>
|
||||
<br />
|
||||
<div class="login-status">{{ __('app.signed_in_as') }} {{Auth::user()->name ?? __("app.guest")}}</div>
|
||||
@@ -38,6 +46,7 @@
|
||||
<ul>
|
||||
<li><a href="{{ route('about') }}">{{ __('app.nav.about') }}</a></li>
|
||||
<li><a href="{{ route('services') }}">{{ __('app.nav.services') }}</a></li>
|
||||
<li><a href="{{ route('documents') }}">{{ __('app.nav.documents') }}</a></li>
|
||||
<li><a href="{{ route('news') }}">{{ __('app.nav.news') }}</a></li>
|
||||
<li><a href="{{ route('contact') }}">{{ __('app.nav.contact') }}</a></li>
|
||||
<li><a href="{{ route('imprint') }}">{{ __('app.nav.imprint') }}</a></li>
|
||||
@@ -45,12 +54,19 @@
|
||||
<li><a href="{{ route('apply') }}">{{ __('app.nav.apply') }}</a></li>
|
||||
@auth
|
||||
<br />
|
||||
<li><a href="{{ route('editTicker') }}">Ticker bearbeiten</a></li>
|
||||
<li><a href="{{ route('editNews') }}">Nachrichten bearbeiten</a></li>
|
||||
<li><a href="{{ route('logout') }}">Abmelden</a></li>
|
||||
|
||||
<li><a href="{{ route('editTicker') }}">{{ __('app.nav.editTicker') }}</a></li>
|
||||
<li><a href="{{ route('editNews') }}">{{ __('app.nav.editNews') }}</a></li>
|
||||
<li><a href="{{ route('editApplications') }}">{{ __('app.nav.editApplications') }}</a></li>
|
||||
<li><a href="{{ route('editEvents') }}">{{ __('app.nav.events') }}</a></li>
|
||||
<li><a href="{{ route('logout') }}">{{ __('app.nav.logout') }}</a></li>
|
||||
@endauth
|
||||
</ul>
|
||||
<br />
|
||||
<ul class="navbar-no-hover-effect">
|
||||
<li><a href="https://chaos.social/@c3gov" rel="me"><img src="{{ asset("Bilder/fedicsgovnetscape.png") }}"
|
||||
onmouseover="{ this.src = '{{ asset("Bilder/fedicsgovnetscapepress.png") }}' }"
|
||||
onmouseout="{ this.src = '{{ asset("Bilder/fedicsgovnetscape.png") }}' }" alt="{{ __('app.fediverse') }}"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content col">
|
||||
@yield('content')
|
||||
@@ -59,6 +75,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<img class="progress-flag" src="{{ asset('Bilder/ProgressFlag.svg') }}" alt="{{ __('app.progress_flag') }}">
|
||||
{{ __('app.lead_by') }}
|
||||
|
|
||||
© 1999 by C3Gov
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,36 +1,47 @@
|
||||
@extends('layout.app')
|
||||
@section('scripts')
|
||||
<script>
|
||||
const i18n = {
|
||||
common: {
|
||||
error_occurred: "{{ __('app.common.error_occurred') }}",
|
||||
not_permitted: "{{ __('app.common.not_permitted') }}"
|
||||
},
|
||||
login: {
|
||||
login_success: "{{ __('app.login.login_success') }}"
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="{{ asset("js/intern.js") }}"></script>
|
||||
<script src="{{ asset("js/login/login.js") }}"></script>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1>Anmelden</h1>
|
||||
<h1>{{ __('app.login.title') }}</h1>
|
||||
|
||||
<span>
|
||||
|
||||
@guest
|
||||
<div id="fehlermeldung">Bitte melden Sie sich gefälligst an!</div>
|
||||
<div id="fehlermeldung">{{ __('app.login.please_login') }}</div>
|
||||
<br /><br />
|
||||
<table class="eingabemaske">
|
||||
<tr>
|
||||
<td><label for="mail">Elektronische Postadresse:</label></td>
|
||||
<td><label for="mail">{{ __('app.login.email') }}</label></td>
|
||||
<td><input size="32" type="text" id="mail" pattern="^[0-9A-Za-z+_\-]+@[0-9A-Za-z_\-]+\.[0-9A-Za-z]+$"
|
||||
title="Nur echte Adressen der elektronischen Post verwenden!"/></td>
|
||||
title="{{ __('app.login.email_title') }}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="password">Kennwort:</label></td>
|
||||
<td><label for="password">{{ __('app.login.password') }}</label></td>
|
||||
<td><input size="32" type="password" id="password"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/><br/>
|
||||
<button class="eingabemaske" onclick="login()">Anmelden</button>
|
||||
<button class="eingabemaske" onclick="login()">{{ __('app.login.title') }}</button>
|
||||
|
||||
@endguest
|
||||
@auth
|
||||
<div id="fehlermeldung">Sie sind angemeldet.</div>
|
||||
<a href="{{ route('logout') }}"><button>Abmelden</button></a>
|
||||
<div id="fehlermeldung">{{ __('app.login.logged_in') }}</div>
|
||||
<a href="{{ route('logout') }}"><button>{{ __('app.login.logout') }}</button></a>
|
||||
@endauth
|
||||
|
||||
</span>
|
||||
|
||||
@@ -1,42 +1,54 @@
|
||||
@extends('layout.app')
|
||||
@section('scripts')
|
||||
<script>
|
||||
const i18n = {
|
||||
common: {
|
||||
error_occurred: "{{ __('app.common.error_occurred') }}",
|
||||
not_permitted: "{{ __('app.common.not_permitted') }}"
|
||||
},
|
||||
login: {
|
||||
password_mismatch: "{{ __('app.login.password_mismatch') }}",
|
||||
registration_success: "{{ __('app.login.registration_success') }}"
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="{{ asset("js/intern.js") }}"></script>
|
||||
<script src="{{ asset("js/login/registrieren.js") }}"></script>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1>Registrieren</h1>
|
||||
<h1>{{ __('app.login.register_title') }}</h1>
|
||||
|
||||
<span>
|
||||
|
||||
<div id="fehlermeldung" class="alert alert-primary">Bitte registrieren Sie sich.</div>
|
||||
<div id="fehlermeldung" class="alert alert-primary">{{ __('app.login.please_register') }}</div>
|
||||
|
||||
<table class="eingabemaske">
|
||||
<tr>
|
||||
<td><label for="mail">Elektronische Postadresse:</label></td>
|
||||
<td><label for="mail">{{ __('app.login.email') }}</label></td>
|
||||
<td><input size="32" type="text" id="mail" pattern="^[0-9A-Za-z+_\-]+@[0-9A-Za-z_\-]+\.[0-9A-Za-z]+$"
|
||||
title="Nur echte Adressen der elektronischen Post verwenden!"/></td>
|
||||
title="{{ __('app.login.email_title') }}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="username">Name/Nick:</label></td>
|
||||
<td><label for="username">{{ __('app.login.username') }}</label></td>
|
||||
<td><input size="32" type="text" id="username"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="password">Kennwort:</label></td>
|
||||
<td><label for="password">{{ __('app.login.password') }}</label></td>
|
||||
<td><input size="32" type="password" id="password"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="password_repeat">Kennwort wiederholen:</label></td>
|
||||
<td><label for="password_repeat">{{ __('app.login.password_repeat') }}</label></td>
|
||||
<td><input size="32" type="password" id="password_repeat"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="register_token">Registrierungsnummer:</label></td>
|
||||
<td><label for="register_token">{{ __('app.login.registration_token') }}</label></td>
|
||||
<td><input size="32" type="text" id="register_token"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/><br/>
|
||||
<button class="eingabemaske" onclick="abschicken()">Registrieren</button>
|
||||
<button class="eingabemaske" onclick="abschicken()">{{ __('app.login.register_title') }}</button>
|
||||
|
||||
</span>
|
||||
@endsection
|
||||
|
||||
10
resources/views/mail/preapplication.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
{!! __('mail.preapplication.body1') !!}
|
||||
{{ $pa->reference_number }}
|
||||
{!! __('mail.preapplication.body2') !!}
|
||||
{{ __('app.preapplication.firstname') }}: {{ $pa->first_name }}<br />
|
||||
{{ __('app.preapplication.lastname') }}: {{ $pa->last_name }}<br />
|
||||
{{ __('app.preapplication.location') }}: {{ $pa->location }}<br />
|
||||
{!! __('mail.preapplication.body3') !!}
|
||||
{!! __('mail.preapplication.body4') !!}
|
||||
<br /><br />
|
||||
{!! __('mail.preapplication.signature') !!}
|
||||
93
resources/views/pdf/pre_application.blade.php
Normal file
@@ -0,0 +1,93 @@
|
||||
@php
|
||||
$logoPath = public_path('Dokumente/c3govsticker.png');
|
||||
$logoData = base64_encode(file_get_contents($logoPath));
|
||||
$logoSrc = 'data:image/png;base64,' . $logoData;
|
||||
@endphp
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title>Voranträge</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<style>
|
||||
#logo {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.page {
|
||||
page-break-before: always;
|
||||
margin-left: 50px;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.stampfield {
|
||||
position: absolute;
|
||||
bottom: 50px;
|
||||
right: 50px;
|
||||
width: 90%;
|
||||
height: 50%;
|
||||
border: 1px solid black;
|
||||
padding: 5px;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<h1 class="center">Voranträge gem. § 5 C3GovVerwV für die (temporäre) Bz.Reg.-Erw.</h1>
|
||||
<h1 class="center">{{ $event->name }}</h1>
|
||||
<h2 class="center">der Bezirksregion CCC</h2>
|
||||
<h3 style="text-align: center;">Gültig vom {{ $event->from_date_visible->toDateString() }} bis einschließlich dem {{ $event->to_date_visible->toDateString() }}</h3>
|
||||
<img style="display: block; margin: 41%; width: 150px; height: 150px;" src="{{ $logoSrc }}">
|
||||
</div>
|
||||
@foreach($applications as $application)
|
||||
<div class="page">
|
||||
<div style="position: relative;">
|
||||
<img id="logo" src="{{ $logoSrc }}">
|
||||
<h1>Vorantrag {{ $application->reference_number }}</h1>
|
||||
<br /><br />
|
||||
<p>Folgende Entität hat einen Vorantrag gemäß § 5 C3GovVerwV gestellt:</p>
|
||||
<br /><br />
|
||||
<table>
|
||||
<tr>
|
||||
<td>Vorname:</td>
|
||||
<td>{{ $application->first_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nachname:</td>
|
||||
<td>{{ $application->last_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Ort/Hackspace:</td>
|
||||
<td>{{ $application->location }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Datenbankerfassung am:</td>
|
||||
<td>{{ $application->created_at }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Interne Notizen:</td>
|
||||
<td>{{ $application->notes }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br /><br />
|
||||
<p>Obige Angaben sind vor Ausstellung zu prüfen und mittels Formblatt 5 zu genehmigen.</p>
|
||||
<br /><br /><br />
|
||||
<div class="stampfield">
|
||||
<div class="center"><u>Bearbeitungsvermerke</u></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,48 +1,57 @@
|
||||
@php use App\Models\TickerMessages; @endphp
|
||||
@extends('layout.app')
|
||||
@section('scripts')
|
||||
<link rel="stylesheet" href="{{ asset("css/ticker/ticker.css") }}">
|
||||
<script>
|
||||
const i18n = {
|
||||
common: {
|
||||
error_occurred: "{{ __('app.common.error_occurred') }}"
|
||||
},
|
||||
ticker: {
|
||||
delete_success: "{{ __('app.ticker.delete_success') }}",
|
||||
insert_success: "{{ __('app.ticker.insert_success') }}"
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="{{ asset("js/intern.js") }}"></script>
|
||||
<script src="{{ asset("js/ticker/edit.js") }}"></script>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1>Ticker bearbeiten</h1>
|
||||
<div id="fehlermeldung">Hier kann der Ticker verändert werden.</div>
|
||||
<h1>{{ __('app.ticker.title') }}</h1>
|
||||
<div id="fehlermeldung">{{ __('app.ticker.description') }}</div>
|
||||
<div class="split-left">
|
||||
<h2>Deutsch</h2>
|
||||
<label for="ticker_de">Aktive Tickernachrichten:</label><br /><br />
|
||||
<h2>{{ __('app.language.de') }}</h2>
|
||||
<label for="ticker_de">{{ __('app.ticker.active_messages') }}</label><br/><br/>
|
||||
<select name="ticker_de" id="ticker_de" multiple>
|
||||
@foreach(\App\Models\TickerMessages::where('language', 'de')->orderBy('updated_at', 'desc')->get() as $tm)
|
||||
@foreach(TickerMessages::where('language', 'de')->orderBy('updated_at', 'desc')->get() as $tm)
|
||||
<option value="{{$tm->id}}">{{$tm->message}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<br /><br />
|
||||
<button onclick="remove('de')">Ausgewählte Tickernachricht löschen</button>
|
||||
<br /><br /><br />
|
||||
<br/><br/>
|
||||
<button onclick="remove('de')">{{ __('app.ticker.delete_selected') }}</button>
|
||||
<br/><br/><br/>
|
||||
|
||||
<label for="insert_de">Tickernachricht erstellen: </label><br />
|
||||
<label for="insert_de">{{ __('app.ticker.create_message') }} </label><br/>
|
||||
<input size="32" type="text" id="insert_de">
|
||||
<br /><br />
|
||||
<button onclick="insert('de')">Tickernachricht hinzufügen</button>
|
||||
<br/><br/>
|
||||
<button onclick="insert('de')">{{ __('app.ticker.add') }}</button>
|
||||
</div>
|
||||
<div class="split-right">
|
||||
<h2>Englisch</h2>
|
||||
<label for="ticker_en">Aktive Tickernachrichten:</label><br /><br />
|
||||
<h2>{{ __('app.language.en') }}</h2>
|
||||
<label for="ticker_en">{{ __('app.ticker.active_messages') }}</label><br/><br/>
|
||||
<select name="ticker_en" id="ticker_en" multiple>
|
||||
@foreach(\App\Models\TickerMessages::where('language', 'en')->orderBy('updated_at', 'desc')->get() as $tm)
|
||||
@foreach(TickerMessages::where('language', 'en')->orderBy('updated_at', 'desc')->get() as $tm)
|
||||
<option value="{{$tm->id}}">{{$tm->message}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<br /><br />
|
||||
<button onclick="remove('en')">Ausgewählte Tickernachricht löschen</button>
|
||||
<br /><br /><br />
|
||||
<br/><br/>
|
||||
<button onclick="remove('en')">{{ __('app.ticker.delete_selected') }}</button>
|
||||
<br/><br/><br/>
|
||||
|
||||
<label for="insert_de">Tickernachricht erstellen: </label><br />
|
||||
<label for="insert_de">{{ __('app.ticker.create_message') }} </label><br/>
|
||||
<input size="32" type="text" id="insert_en">
|
||||
<br /><br />
|
||||
<button onclick="insert('en')">Tickernachricht hinzufügen</button>
|
||||
<br/><br/>
|
||||
<button onclick="insert('en')">{{ __('app.ticker.add') }}</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -2,19 +2,24 @@
|
||||
|
||||
use App\Http\Controllers\BlogController;
|
||||
use App\Http\Controllers\LoginController;
|
||||
use App\Http\Controllers\PreApplicationController;
|
||||
use App\Http\Controllers\WebsiteController;
|
||||
use App\Http\Controllers\TickerController;
|
||||
use App\Http\Controllers\EventController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
|
||||
Route::get('/', [WebsiteController::class, 'index']);
|
||||
|
||||
Route::get('/ueberuns', [WebsiteController::class, 'about'])->name('about');
|
||||
Route::get('/dokumente', [WebsiteController::class, 'documents'])->name('documents');
|
||||
Route::get('/kontakt', [WebsiteController::class, 'contact'])->name('contact');
|
||||
Route::get('/impressum', [WebsiteController::class, 'imprint'])->name('imprint');
|
||||
Route::get('/services', [WebsiteController::class, 'services'])->name('services');
|
||||
Route::get('/neuigkeiten', [WebsiteController::class, 'news'])->name('news');
|
||||
Route::get('/beantragen', [WebsiteController::class, 'apply'])->name('apply');
|
||||
|
||||
Route::get('/vorbeantragen', [WebsiteController::class, 'apply'])->name('apply');
|
||||
Route::post('/vorbeantragen/absenden', [PreApplicationController::class, 'send']);
|
||||
|
||||
Route::get('/intern/registrieren', [WebsiteController::class, 'showRegister']);
|
||||
Route::post('/intern/registrieren/abschicken', [LoginController::class, 'register']);
|
||||
@@ -36,3 +41,14 @@ Route::get('/intern/nachrichten', [WebsiteController::class, 'editNews'])->name(
|
||||
Route::post('/intern/nachrichten/add', [BlogController::class, 'addBlog']);
|
||||
Route::delete('/intern/nachrichten/delete', [BlogController::class, 'deleteBlog']);
|
||||
Route::put('/intern/nachrichten/edit', [BlogController::class, 'editBlog']);
|
||||
|
||||
Route::get('/intern/antraege', [WebsiteController::class, 'editApplications'])->name('editApplications');
|
||||
Route::get('/intern/antraege/generate-pdf', [PreApplicationController::class, 'generatePDF'])->name('generatePDF');
|
||||
Route::post('/intern/antraege/hinzufuegen', [PreApplicationController::class, 'addApplication']);
|
||||
Route::delete('/intern/antraege/loeschen', [PreApplicationController::class, 'deleteApplication']);
|
||||
Route::put('/intern/antraege/bearbeiten', [PreApplicationController::class, 'editApplication']);
|
||||
|
||||
Route::get('/intern/events', [WebsiteController::class, 'editEvents'])->name('editEvents');
|
||||
Route::post('/intern/events/hinzufuegen', [EventController::class, 'addEvent']);
|
||||
Route::delete('/intern/events/loeschen', [EventController::class, 'deleteEvent']);
|
||||
Route::patch('/intern/events/setActivity', [EventController::class, 'setActivity']);
|
||||
|
||||