Skip to content

Commit

Permalink
Implement Multiple photos
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Geurts committed Jan 23, 2024
1 parent a7ca8f7 commit 320bc7f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ This project is open-sourced software licensed under the [MIT license](LICENSE).
<li>Multi-tenancy by Jetstream Teams</li>
<li>Security through Jetstream Teams Roles & Permissions, 2FA & API can be enabled</li>
<li>Offcanvas menu for developer</li>
<li>Image upload with possibility of watermarking</li>
<li>Multiple image upload with possibility of watermarking</li>
</ul>

### Special features
Expand Down Expand Up @@ -130,7 +130,6 @@ This project is open-sourced software licensed under the [MIT license](LICENSE).
### To do ...

<ul>
<li>Allow uploading supplemental images for people</li>
<li>GEDCOM import and export (help needed)</li>
</ul>

Expand Down
5 changes: 5 additions & 0 deletions app/Http/Controllers/Back/PeopleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public function addPartner(Person $person): View
return view('back.people.add.partner')->with(compact('person'));
}

public function addPhoto(Person $person): View
{
return view('back.people.add.photo')->with(compact('person'));
}

public function editContact(Person $person): View
{
return view('back.people.edit.contact')->with(compact('person'));
Expand Down
1 change: 1 addition & 0 deletions lang/en/person.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'add_child' => 'Add child',
'add_child_from_existing_partner' => 'Parent (select spouse of :name)',
'add_person' => 'Add person',
'add_photo' => 'Add photo',
'add_relationship' => 'Add relationship',

'edit' => 'Edit',
Expand Down
1 change: 1 addition & 0 deletions lang/nl/person.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'add_child' => 'Kind toevoegen',
'add_child_from_existing_partner' => 'Ouder (kies partner van :name)',
'add_person' => 'Persoon toevoegen',
'add_photo' => 'Foto toevoegen',
'add_relationship' => 'Relatie toevoegen',

'edit' => 'Editeer',
Expand Down
1 change: 1 addition & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
Route::get('people/{person}/death', 'death')->name('people.death');
Route::get('people/{person}/add-child', 'addChild')->name('people.add-child');
Route::get('people/{person}/add-partner', 'addPartner')->name('people.add-partner');
Route::get('people/{person}/add-photo', 'addPhoto')->name('people.add-photo');
Route::get('people/{person}/edit-contact', 'editContact')->name('people.edit-contact');
Route::get('people/{person}/edit-death', 'editDeath')->name('people.edit-death');
Route::get('people/{person}/edit-family', 'editFamily')->name('people.edit-family');
Expand Down

0 comments on commit 320bc7f

Please sign in to comment.