From 8eacdb3f364d2a043d54dc2606c18c917b2b95d3 Mon Sep 17 00:00:00 2001 From: Hamatoma Date: Sun, 15 Dec 2024 15:17:17 +0100 Subject: [PATCH] V 0.1.3 Person - new module Person (from laraknife) --- CHANGELOG.md | 5 ++++ app/Helpers/ViewHelperLocal.php | 9 +++++- app/Http/Controllers/PersonController.php | 1 + app/Models/Person.php | 1 + composer.lock | 18 ++++++------ ...2024_12_14_135806_create_persons_table.php | 1 + database/seeders/PersonSeeder.php | 1 + lang/de_DE.json | 23 +++++++++++++++ resources/views/create.blade.php | 11 ++++++++ resources/views/edit.blade.php | 10 +++++++ resources/views/index.blade.php | 28 +++++++++++++++++++ resources/views/person | 1 + resources/views/show.blade.php | 13 +++++++++ routes/web.php | 3 ++ 14 files changed, 115 insertions(+), 10 deletions(-) create mode 120000 app/Http/Controllers/PersonController.php create mode 120000 app/Models/Person.php create mode 120000 database/migrations/2024_12_14_135806_create_persons_table.php create mode 120000 database/seeders/PersonSeeder.php create mode 100644 resources/views/create.blade.php create mode 100644 resources/views/edit.blade.php create mode 100644 resources/views/index.blade.php create mode 120000 resources/views/person create mode 100644 resources/views/show.blade.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b223b1..395f0a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# V 0.1.3 Person + +- new module Person (from laraknife) + + # V 0.1.2 Export - missing symbolic link to Model/Export.php diff --git a/app/Helpers/ViewHelperLocal.php b/app/Helpers/ViewHelperLocal.php index a36e8fa..d2c924b 100644 --- a/app/Helpers/ViewHelperLocal.php +++ b/app/Helpers/ViewHelperLocal.php @@ -35,7 +35,14 @@ class ViewHelperLocal ]; $rc = new NavigationTabs($list, $indexActive); break; - case 'user-edit': + case 'person-edit': + $rc = new NavigationTabs([ + 'Persons;/person-index', + "Properties;/person-edit/$referenceId", + "Address;/person-address/$referenceId" + ], $indexActive); + break; + case 'user-edit': $rc = new NavigationTabs([ "Properties;/user-edit/$referenceId", "Password;/user-editpassword/$referenceId" diff --git a/app/Http/Controllers/PersonController.php b/app/Http/Controllers/PersonController.php new file mode 120000 index 0000000..e7e5916 --- /dev/null +++ b/app/Http/Controllers/PersonController.php @@ -0,0 +1 @@ +../../../vendor/hamatoma/laraknife/templates/Http/Controllers/PersonController.php \ No newline at end of file diff --git a/app/Models/Person.php b/app/Models/Person.php new file mode 120000 index 0000000..ef573e6 --- /dev/null +++ b/app/Models/Person.php @@ -0,0 +1 @@ +../../vendor/hamatoma/laraknife/templates/Models/Person.php \ No newline at end of file diff --git a/composer.lock b/composer.lock index 1f82fb7..e014eda 100644 --- a/composer.lock +++ b/composer.lock @@ -1060,7 +1060,7 @@ "dist": { "type": "path", "url": "../laraknife", - "reference": "e3c46483fd54505107ad16d44f4c7d97387bfda5" + "reference": "ddff4c4c47e18ca7961c02548105d4f22c20879f" }, "require-dev": { "phpunit/phpunit": "11.0.x-dev" @@ -1091,16 +1091,16 @@ }, { "name": "laravel/framework", - "version": "v11.35.0", + "version": "v11.35.1", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "f1a7aaa3c1235b7a95ccaa58db90e0cd9d8c3fcc" + "reference": "dcfa130ede1a6fa4343dc113410963e791ad34fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/f1a7aaa3c1235b7a95ccaa58db90e0cd9d8c3fcc", - "reference": "f1a7aaa3c1235b7a95ccaa58db90e0cd9d8c3fcc", + "url": "https://api.github.com/repos/laravel/framework/zipball/dcfa130ede1a6fa4343dc113410963e791ad34fb", + "reference": "dcfa130ede1a6fa4343dc113410963e791ad34fb", "shasum": "" }, "require": { @@ -1302,7 +1302,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-12-10T16:09:29+00:00" + "time": "2024-12-12T18:25:58+00:00" }, { "name": "laravel/prompts", @@ -6200,13 +6200,13 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.x-dev" - }, "laravel": { "providers": [ "Laravel\\Pail\\PailServiceProvider" ] + }, + "branch-alias": { + "dev-main": "1.x-dev" } }, "autoload": { diff --git a/database/migrations/2024_12_14_135806_create_persons_table.php b/database/migrations/2024_12_14_135806_create_persons_table.php new file mode 120000 index 0000000..b90da31 --- /dev/null +++ b/database/migrations/2024_12_14_135806_create_persons_table.php @@ -0,0 +1 @@ +../../vendor/hamatoma/laraknife/templates/database/migrations/2024_12_14_135806_create_persons_table.php \ No newline at end of file diff --git a/database/seeders/PersonSeeder.php b/database/seeders/PersonSeeder.php new file mode 120000 index 0000000..3f6b241 --- /dev/null +++ b/database/seeders/PersonSeeder.php @@ -0,0 +1 @@ +../../vendor/hamatoma/laraknife/templates/database/seeders/PersonSeeder.php \ No newline at end of file diff --git a/lang/de_DE.json b/lang/de_DE.json index 31a302c..68bbe67 100644 --- a/lang/de_DE.json +++ b/lang/de_DE.json @@ -8,6 +8,7 @@ "Account": "Konto", "Accounts": "Konten", "Action": "Aktion", + "Add": "Hinzuf\u00fcgen", "Additional": "Zusatz", "Address": "Adresse", "Addresses": "Adressen", @@ -30,6 +31,7 @@ "Change of a Menu Item": "\u00c4ndern einer Men\u00fceintrags", "Change of a Note": "\u00c4ndern einer Notiz", "Change of a Page": "\u00c4ndern einer Seite", + "Change of a Person": "\u00c4ndern einer Person", "Change of a Role": "\u00c4ndern einer Rolle", "Change of a Scoped Property": "\u00c4ndern einer bereichsbasierten Eigenschaft", "Change of a Term": "\u00c4ndern eines Termins", @@ -51,6 +53,7 @@ "Creation of a Menu Item": "Erstellen eine Men\u00fceintrags", "Creation of a Note": "Erstellen einer Notiz", "Creation of a Page": "Erstellen einer Seite", + "Creation of a Person": "Erstellen einer Person", "Creation of a Role": "Erstellen eine Rolle", "Creation of a Scoped Property": "Erzeugen einer bereichsbasierten Eigenschaft", "Creation of a Task": "Erstellen einer Aufgabe", @@ -59,6 +62,7 @@ "Creation of an Account": "Erstellen eines Kontos", "Creation of an Address": "Erstellen einer Adresse", "Creation of an User": "Erstellen eines Benutzers", + "Current addresses": "Aktuelle Adressen", "Date": "Datum", "Delete": "L\u00f6schen", "Deletion of a Document": "L\u00f6schen eines Dokuments", @@ -68,6 +72,7 @@ "Deletion of a Menu Item": "L\u00f6schen eines Men\u00fceintrags", "Deletion of a Note": "L\u00f6schen einer Notiz", "Deletion of a Page": "L\u00f6schen einer Seite", + "Deletion of a Person": "L\u00f6schen einer Person", "Deletion of a Scoped Property": "L\u00f6schen einer bereichsbasierten Eigenschaft", "Deletion of an User": "L\u00f6schen eines Benutzers", "Description": "Beschreibung", @@ -87,11 +92,14 @@ "Filename": "Dateiname", "Files": "Dateien", "Filtered": "Gefiltert", + "Firstname": "Vorname", "French (France)": "Franz\u00f6sisch (Frankreich)", "From": "Von", + "Gender": "Geschlecht", "German (Germany)": "Deutsch (Deutschland)", "Group": "Gruppe", "Groups": "Gruppen", + "Head office": "Zentrale", "Hello": "Hallo", "Home": "Startseite", "I found # errors": "Ich habe # Fehler gefunden (roter Rahmen)", @@ -105,6 +113,7 @@ "Italian (Italy)": "Italienisch (Italien)", "Label": "Beschriftung", "Language": "Sprache", + "Lastname": "Nachname", "Lines per Page": "Zeilen je Seite", "Link": "Verweis", "Localization": "Lokalisierung", @@ -117,9 +126,11 @@ "Markup": "Sprachtyp", "Member": "Mitglied", "Members": "Mitglieder", + "Middlename": "Weitere Vornamen", "Name": "Name", "New": "Neu", "Next": "Weiter", + "Nickname": "Anzeigename", "Not Assigned Menu Items": "Nicht zugeordnete Men\u00fceintr\u00e4ge", "Notes": "Notizen", "Order": "Reihe", @@ -132,6 +143,8 @@ "Password": "Passwort", "Password forgotten?": "Passwort vergessen?", "Patterns": "Muster", + "Persongroup": "Pesonengruppe", + "Persons": "Personen", "Phone": "Telefon", "Phones": "Telefone", "Please use the following link and change your password:": "Bitte benutze den folgenden Verweis und \u00e4ndere dein Passwort", @@ -174,6 +187,7 @@ "The search criterion selects %d out of %d data records.": "Das Suchkriterium w\u00e4hlt %d von %d Datens\u00e4tzen aus.", "There are corrections:": "Es gibt Korrekturen:", "Title": "Titel", + "Titles": "Titel", "To": "Bis", "Total": "Gesamt", "Transaction": "Transaktion", @@ -191,9 +205,12 @@ "action|actions": "Aktion|Aktionen", "active": "aktiv", "closed": "geschlossen", + "core": "Kern", "description": "Beschreibung", + "diverse": "Divers", "done": "erledigt", "expense": "Ausgabe", + "female": "Weiblich", "help": "Hilfe", "icon": "Bildsymbol", "inactive": "nicht aktiv", @@ -201,11 +218,16 @@ "info": "Info", "label": "Beschriftung", "link": "Verweis", + "male": "M\u00e4nnlich", "markdown simple": "einfache Markierungssprache", + "member": "Mitglied", "menu": "Men\u00fc", "open": "offen", + "other": "Sonstiges", "pagetype": "Seitentyp", + "phone or phone;info or email or email;info
or street NEWLINE zip city": "TNr oder TNr;Info oder EMail oder EMail;Info
oder Stra\u00dfe ZEILENWECHSEL Land-Plz Ort", "plain text": "reiner Text", + "press": "Presse", "private": "privat", "public": "\u00f6ffentlich", "record|records": "Datensatz|Datens\u00e4tze", @@ -213,6 +235,7 @@ "standard": "Standard", "table|tables": "Tabelle|Tabellen", "task": "Aufgabe", + "user": "Benutzer", "wiki": "Wiki", "work": "Arbeit" } \ No newline at end of file diff --git a/resources/views/create.blade.php b/resources/views/create.blade.php new file mode 100644 index 0000000..19424ad --- /dev/null +++ b/resources/views/create.blade.php @@ -0,0 +1,11 @@ +@extends('layouts.backend') + +@section('content') +
+ @csrf + @method('PUT') + + + +
+@endsection diff --git a/resources/views/edit.blade.php b/resources/views/edit.blade.php new file mode 100644 index 0000000..e9d8bca --- /dev/null +++ b/resources/views/edit.blade.php @@ -0,0 +1,10 @@ +@extends('layouts.backend') + +@section('content') +
+ @csrf + + + +
+@endsection diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php new file mode 100644 index 0000000..a1eb450 --- /dev/null +++ b/resources/views/index.blade.php @@ -0,0 +1,28 @@ +@extends('layouts.backend') + +@section('content') +
+ @csrf + + + + + + + + + + + + +@foreach ($records as $) + + + + +@endforeach + + + +
+@endsection diff --git a/resources/views/person b/resources/views/person new file mode 120000 index 0000000..de8569d --- /dev/null +++ b/resources/views/person @@ -0,0 +1 @@ +../../vendor/hamatoma/laraknife/resources/views/person \ No newline at end of file diff --git a/resources/views/show.blade.php b/resources/views/show.blade.php new file mode 100644 index 0000000..f0227f7 --- /dev/null +++ b/resources/views/show.blade.php @@ -0,0 +1,13 @@ +@extends('layouts.backend') + +@section('content') +
+ @csrf + @if($mode === 'delete') + @method('DELETE') + @endif + + + +
+@endsection diff --git a/routes/web.php b/routes/web.php index 066273e..0b32ff0 100644 --- a/routes/web.php +++ b/routes/web.php @@ -12,6 +12,7 @@ use App\Http\Controllers\PageController; use App\Http\Controllers\GroupController; use App\Http\Controllers\AddressController; use App\Http\Controllers\LocationController; +use App\Http\Controllers\PersonController; use App\Http\Controllers\ExportController; Route::get('/', function () { @@ -30,3 +31,5 @@ ExportController::routes(); AddressController::routes(); LocationController::routes(); + +PersonController::routes(); -- 2.39.5