mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-12 13:59:08 +02:00
add phone as a basic field to it
This commit is contained in:
@@ -112,6 +112,7 @@
|
||||
"pet": "Pet",
|
||||
"philosophy": "Philosophy",
|
||||
"photos": "Photos",
|
||||
"phone": "Phone",
|
||||
"place_of_birth": "Place of Birth",
|
||||
"place_of_death": "Place of Death",
|
||||
"plant": "Plant",
|
||||
|
@@ -42,8 +42,8 @@
|
||||
"dark": "Sötét",
|
||||
"date": "Dátum",
|
||||
"death": "Halál",
|
||||
"deceased": "Elhunyt",
|
||||
"delete_profile": "Delete profile",
|
||||
"deceased": "Elhunyt",
|
||||
"deny": "Elutasítás",
|
||||
"description": "Leírás",
|
||||
"details": "Részletek",
|
||||
@@ -165,5 +165,6 @@
|
||||
"zip_code": "Irányítószám",
|
||||
"add_life_event": "Életesemény hozzadása",
|
||||
"deleted_profiles": "Törölt profilok",
|
||||
"managed_profiles": "Adminisztrált profilok"
|
||||
"managed_profiles": "Adminisztrált profilok",
|
||||
"phone": "Telefon"
|
||||
}
|
||||
|
@@ -27,12 +27,25 @@
|
||||
'medical_conditions',
|
||||
'languages',
|
||||
'notes',
|
||||
'phone',
|
||||
'audios',
|
||||
'google_id'
|
||||
];
|
||||
let newNote = {
|
||||
title: " ",
|
||||
note: ""
|
||||
};
|
||||
</script>
|
||||
|
||||
<div class="mt-6 grid grid-cols-1 gap-4 md:grid-cols-2">
|
||||
{#each person.notes??[] as note}
|
||||
<div class="card bg-base-100 shadow-sm">
|
||||
<div class="card-body">
|
||||
<h2 class="card-title">{note.title}</h2>
|
||||
<p>{note.note}</p>
|
||||
</div>
|
||||
</div>
|
||||
{/each}
|
||||
{#each Object.entries(person) as [key, value]}
|
||||
{#if !skipFields.includes(key) && ((value !== undefined && value !== null) || editorMode)}
|
||||
<div>
|
||||
|
@@ -20,7 +20,8 @@
|
||||
mothers_last_name,
|
||||
profile_picture,
|
||||
create_invite_code,
|
||||
invite_code
|
||||
invite_code,
|
||||
phone
|
||||
} from '$lib/paraglide/messages';
|
||||
import { callMessageFunction } from '$lib/i18n';
|
||||
import type { MessageKeys } from '$lib/i18n';
|
||||
@@ -158,6 +159,13 @@
|
||||
class="input input-sm input-bordered w-full"
|
||||
/>{:else}{person.email ?? '-'}{/if}
|
||||
</p>
|
||||
<p>
|
||||
<strong>{phone()}:</strong>
|
||||
{#if editorMode}<input
|
||||
bind:value={person.phone}
|
||||
onchange={() => onChange('phone', person.phone)}
|
||||
class="input input-sm input-bordered w-full"
|
||||
/>{:else}{person.phone ?? '-'}{/if}
|
||||
<p>
|
||||
<strong>{mothers_first_name()}:</strong>
|
||||
{#if editorMode}<input
|
||||
|
Reference in New Issue
Block a user