]> gitweb.hamatoma.de Git - oo4f.git/commitdiff
V 0.1.3 Person
authorHamatoma <author@hamatoma.de>
Sun, 15 Dec 2024 14:17:17 +0000 (15:17 +0100)
committerHamatoma <author@hamatoma.de>
Sun, 15 Dec 2024 14:17:17 +0000 (15:17 +0100)
- new module Person (from laraknife)

14 files changed:
CHANGELOG.md
app/Helpers/ViewHelperLocal.php
app/Http/Controllers/PersonController.php [new symlink]
app/Models/Person.php [new symlink]
composer.lock
database/migrations/2024_12_14_135806_create_persons_table.php [new symlink]
database/seeders/PersonSeeder.php [new symlink]
lang/de_DE.json
resources/views/create.blade.php [new file with mode: 0644]
resources/views/edit.blade.php [new file with mode: 0644]
resources/views/index.blade.php [new file with mode: 0644]
resources/views/person [new symlink]
resources/views/show.blade.php [new file with mode: 0644]
routes/web.php

index 6b223b19bd9237a341a95b40c34844f982f745f0..395f0a36fe62a6e2e156cecafc52bb02c8bffaa4 100644 (file)
@@ -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
index a36e8fa11e9e56bcf073d0d53af980c31d94d458..d2c924b9f2811cc36eefaf2d1334ec9d53790f2e 100644 (file)
@@ -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 (symlink)
index 0000000..e7e5916
--- /dev/null
@@ -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 (symlink)
index 0000000..ef573e6
--- /dev/null
@@ -0,0 +1 @@
+../../vendor/hamatoma/laraknife/templates/Models/Person.php
\ No newline at end of file
index 1f82fb747254cca5462fdb5652a49221a59ce7db..e014eda6f098a58ef2b5df9622a4616c2f931411 100644 (file)
             "dist": {
                 "type": "path",
                 "url": "../laraknife",
-                "reference": "e3c46483fd54505107ad16d44f4c7d97387bfda5"
+                "reference": "ddff4c4c47e18ca7961c02548105d4f22c20879f"
             },
             "require-dev": {
                 "phpunit/phpunit": "11.0.x-dev"
         },
         {
             "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": {
                 "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",
             },
             "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 (symlink)
index 0000000..b90da31
--- /dev/null
@@ -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 (symlink)
index 0000000..3f6b241
--- /dev/null
@@ -0,0 +1 @@
+../../vendor/hamatoma/laraknife/templates/database/seeders/PersonSeeder.php
\ No newline at end of file
index 31a302c67fc06ddbe1332027073d8c822aff1788..68bbe679ca21e57c9aa2a0308b3f2a8c6e331324 100644 (file)
@@ -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",
     "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)",
     "Italian (Italy)": "Italienisch (Italien)",
     "Label": "Beschriftung",
     "Language": "Sprache",
+    "Lastname": "Nachname",
     "Lines per Page": "Zeilen je Seite",
     "Link": "Verweis",
     "Localization": "Lokalisierung",
     "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",
     "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",
     "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",
     "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",
     "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<br>or street NEWLINE zip city": "TNr oder TNr;Info oder EMail oder EMail;Info<br>oder Stra\u00dfe ZEILENWECHSEL Land-Plz Ort",
     "plain text": "reiner Text",
+    "press": "Presse",
     "private": "privat",
     "public": "\u00f6ffentlich",
     "record|records": "Datensatz|Datens\u00e4tze",
     "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 (file)
index 0000000..19424ad
--- /dev/null
@@ -0,0 +1,11 @@
+@extends('layouts.backend')
+
+@section('content')
+    <form id="-create" action="/-store" method="POST">
+        @csrf
+        @method('PUT')
+        <x-laraknife.panels.create title="{{ __('Creation of a ') }}">
+            
+</x-laraknife.panels.create>
+    </form>
+@endsection
diff --git a/resources/views/edit.blade.php b/resources/views/edit.blade.php
new file mode 100644 (file)
index 0000000..e9d8bca
--- /dev/null
@@ -0,0 +1,10 @@
+@extends('layouts.backend')
+
+@section('content')
+    <form id="-edit" action="/-update/{{ $context->model->id  }}" method="POST">
+        @csrf
+        <x-laraknife.panels.edit title="{{ __('Change of a ') }}">
+        <x-laraknife.forms.text position="alone" name="id" label="Id" value="{{ $context->model->id }}" width2="4" attribute="readonly"/>
+        </x-laraknife.panels.edit>
+    </form>
+@endsection
diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php
new file mode 100644 (file)
index 0000000..a1eb450
--- /dev/null
@@ -0,0 +1,28 @@
+@extends('layouts.backend')
+
+@section('content')
+<form id="-index" action="/-index" method="POST">
+    @csrf
+    <x-laraknife.panels.index title="{{ __('') }}">
+      <x-laraknife.panels.filter legend="{{ $pagination->legendText() }}">
+      </x-laraknife.panels.filter>
+      <x-laraknife.panels.index-button buttonType="new"/>
+      <x-laraknife.panels.sortable-table :context="$context" :pagination="$pagination">
+        <thead>
+          <tr>
+            <th></th>
+            <th></th>
+          </tr>
+        </thead>
+        <tbody>
+@foreach ($records as $)
+        <tr>
+            <td><x-laraknife.icons.change-record module="" no="{{ $->id }}" /></td>
+            <td><x-laraknife.icons.delete-record module="" no="{{ $->id }}" /></td>
+        </tr>
+@endforeach
+      </tbody>
+    </x-laraknife.panels.sortable-table>
+  </x-laraknife.panels.index>
+</form>
+@endsection
diff --git a/resources/views/person b/resources/views/person
new file mode 120000 (symlink)
index 0000000..de8569d
--- /dev/null
@@ -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 (file)
index 0000000..f0227f7
--- /dev/null
@@ -0,0 +1,13 @@
+@extends('layouts.backend')
+
+@section('content')
+    <form id="-show" action="/-show/{{ $context->model->id }}/{{ $mode }}" method="POST">
+        @csrf
+        @if($mode === 'delete')
+        @method('DELETE')
+        @endif
+        <x-laraknife.panels.show title="{{ __($mode !== 'delete' ? 'A ' : 'Deletion of a ') }}" mode="{{$mode}}">
+            <x-laraknife.forms.string position="first" name="id" label="Id" value="{{ $context->model->id }}" width2="4" attribute="readonly" />
+        </x-laraknife.panels.show>
+    </form>
+@endsection
index 066273e2b237a30e332b1870f891e44063a9120b..0b32ff0fe8fff74f0e52de0023b0af41939b2479 100644 (file)
@@ -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();