Skip to content

Commit

Permalink
Warning using Personal Team
Browse files Browse the repository at this point in the history
  • Loading branch information
MGeurts committed Jan 5, 2025
1 parent cfaf0bd commit 8480388
Show file tree
Hide file tree
Showing 15 changed files with 196 additions and 143 deletions.
7 changes: 4 additions & 3 deletions lang/de/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
'member' => 'Mitglied',
'membership' => 'Mitgliedschaft',

'do_not_use_personal_team' => 'Benutzen Sie nicht Ihr persönliches Team, um Stammbäume zu erstellen.',
'do_not_use_personal_team_reason' => 'Bei persönlichen Teams kann die Teameigentümerschaft nicht auf ein anderes Teammitglied übertragen werden.',
'do_not_use_personal_team_instead' => 'Erstellen Sie stattdessen ein separates Team, um Stammbäume zu verwalten und mit anderen zu teilen.',
'personal_team_caution' => 'Vorsicht',
'personal_team_avoid' => 'Vermeiden Sie es, Ihr persönliches Team zum Erstellen von Stammbäumen zu verwenden, da der Besitz persönlicher Teams nicht auf ein anderes Mitglied übertragen werden kann.',
'personal_team_instead' => 'Wählen Sie stattdessen ein Team aus, dem Sie bereits angehören, oder erstellen Sie ein neues, speziell zum Verwalten und Teilen von Stammbäumen mit anderen.',
'personal_team_action' => 'Um ein neues Team zu erstellen oder zu einem bestehenden zu wechseln, verwenden Sie das Dropdown-Menü in der oberen rechten Ecke.',
];
7 changes: 4 additions & 3 deletions lang/en/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
'member' => 'Member',
'membership' => 'Membership',

'do_not_use_personal_team' => 'Do not use your personal team to create family trees.',
'do_not_use_personal_team_reason' => 'For personal teams, the team ownership can not be transferred to another team member.',
'do_not_use_personal_team_instead' => 'Instead, create a separate team to manage and share family trees with others.',
'personal_team_caution' => 'Caution',
'personal_team_avoid' => 'Avoid using your personal team for creating family trees, as ownership of personal teams cannot be transferred to another member.',
'personal_team_instead' => 'Instead, select a team you’re already part of or create a new one specifically for managing and sharing family trees with others.',
'personal_team_action' => 'To create a new team or switch to an existing one, use the dropdown menu in the top-right corner.',
];
7 changes: 4 additions & 3 deletions lang/es/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
'member' => 'Miembro',
'membership' => 'Afiliación',

'do_not_use_personal_team' => 'No utilice su equipo personal para crear árboles genealógicos.',
'do_not_use_personal_team_reason' => 'Para equipos personales, la propiedad del equipo no se puede transferir a otro miembro del equipo.',
'do_not_use_personal_team_instead' => 'En su lugar, cree un equipo separado para administrar y compartir árboles genealógicos con otros.',
'personal_team_caution' => 'Precaución',
'personal_team_avoid' => 'Evite utilizar su equipo personal para crear árboles genealógicos, ya que la propiedad de los equipos personales no se puede transferir a otro miembro.',
'personal_team_instead' => 'En su lugar, seleccione un equipo del que ya forme parte o cree uno nuevo específicamente para administrar y compartir árboles genealógicos con otros.',
'personal_team_action' => 'Para crear un nuevo equipo o cambiar a uno existente, use el menú desplegable en la esquina superior derecha.',
];
7 changes: 4 additions & 3 deletions lang/fr/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
'member' => 'Membre',
'membership' => 'Adhésion',

'do_not_use_personal_team' => 'N\'utilisez pas votre équipe personnelle pour créer des arbres généalogiques.',
'do_not_use_personal_team_reason' => 'Pour les équipes personnelles, la propriété de l\'équipe ne peut pas être transférée à un autre membre de l\'équipe.',
'do_not_use_personal_team_instead' => 'Créez plutôt une équipe distincte pour gérer et partager les arbres généalogiques avec d’autres.',
'personal_team_caution' => 'Prudence',
'personal_team_avoid' => 'Évitez d\'utiliser votre équipe personnelle pour créer des arbres généalogiques, car la propriété des équipes personnelles ne peut pas être transférée à un autre membre.',
'personal_team_instead' => 'Au lieu de cela, sélectionnez une équipe dont vous faites déjà partie ou créez-en une nouvelle spécifiquement pour gérer et partager les arbres généalogiques avec d’autres.',
'personal_team_action' => 'Pour créer une nouvelle équipe ou passer à une équipe existante, utilisez le menu déroulant dans le coin supérieur droit.',
];
7 changes: 4 additions & 3 deletions lang/nl/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
'member' => 'Lid',
'membership' => 'Lidmaatschap',

'do_not_use_personal_team' => 'Gebruik uw persoonlijke team niet om stambomen te maken.',
'do_not_use_personal_team_reason' => 'Voor persoonlijke teams kan het teameigendom niet worden overgedragen aan een ander teamlid.',
'do_not_use_personal_team_instead' => 'Creëer in plaats daarvan een apart team om stambomen te beheren en met anderen te delen.',
'personal_team_caution' => 'Let op',
'personal_team_avoid' => 'Vermijd het gebruik van uw persoonlijke team voor het maken van stambomen, aangezien het eigendom van persoonlijke teams niet kan worden overgedragen aan een ander lid.',
'personal_team_instead' => 'Selecteer in plaats daarvan een team waar u al deel van uitmaakt of maak een nieuw team speciaal voor het beheren en delen van stambomen met anderen.',
'personal_team_action' => 'Gebruik het keuzemenu in de rechterbovenhoek om een ​​nieuw team aan te maken of naar een bestaand team over te schakelen.',
];
5 changes: 4 additions & 1 deletion lang/pt/gedcom.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'team_create_new_gedcom' => 'Crie uma nova equipe, importada de um arquivo GEDCOM, para colaborar com outras pessoas.',
'team_gedcom_reference' => 'Referência',
'team_gedcom_specifications' => 'Especificações GEDCOM',
'team_gedcom_version' => 'GEDCOM versão 5.5 ou 7',
'team_gedcom_version' => 'GEDCOM versão 5.5.x ou 7.x',
'team_gedcom_hint' => 'Vamos criar uma equipe baseada em um arquivo GEDCOM',
'team_gedcom_tip' => 'Arraste e solte seu arquivo GEDCOM aqui',

Expand All @@ -20,4 +20,7 @@
'line_endings' => 'Finais de linha',
'line_endings_windows' => 'CR/LF (Windows)',
'line_endings_unix' => 'LF (Unix)',

'before_import' => 'Antes de importar',
'before_import_validate' => 'Valide seu arquivo GEDCOM em',
];
7 changes: 4 additions & 3 deletions lang/pt/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
'member' => 'Membro',
'membership' => 'Associação',

'do_not_use_personal_team' => 'Não use sua equipe pessoal para criar árvores genealógicas.',
'do_not_use_personal_team_reason' => 'Para equipes pessoais, a propriedade da equipe não pode ser transferida para outro membro da equipe.',
'do_not_use_personal_team_instead' => 'Em vez disso, crie uma equipe separada para gerenciar e compartilhar árvores genealógicas com outras pessoas.',
'personal_team_caution' => 'Cuidado',
'personal_team_avoid' => 'Evite usar sua equipe pessoal para criar árvores genealógicas, pois a propriedade de equipes pessoais não pode ser transferida para outro membro.',
'personal_team_instead' => 'Em vez disso, selecione uma equipe da qual você já faz parte ou crie uma nova especificamente para gerenciar e compartilhar árvores genealógicas com outras pessoas.',
'personal_team_action' => 'Para criar uma nova equipe ou mudar para uma já existente, use o menu suspenso no canto superior direito.',
];
7 changes: 4 additions & 3 deletions lang/vi/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
'member' => 'Thành viên',
'membership' => 'Tư cách thành viên',

'do_not_use_personal_team' => 'Không sử dụng nhóm cá nhân của bạn để tạo cây phả hệ.',
'do_not_use_personal_team_reason' => 'Đối với các nhóm cá nhân, quyền sở hữu nhóm không thể được chuyển cho thành viên khác trong nhóm.',
'do_not_use_personal_team_instead' => 'Thay vào đó, hãy tạo một nhóm riêng để quản lý và chia sẻ cây phả hệ với những người khác.',
'personal_team_caution' => 'Thận trọng',
'personal_team_avoid' => 'Tránh sử dụng nhóm cá nhân của bạn để tạo cây phả hệ vì quyền sở hữu nhóm cá nhân không thể được chuyển giao cho thành viên khác.',
'personal_team_instead' => 'Thay vào đó, hãy chọn một nhóm mà bạn đã tham gia hoặc tạo một nhóm mới dành riêng để quản lý và chia sẻ cây phả hệ với những người khác.',
'personal_team_action' => 'Để tạo nhóm mới hoặc chuyển sang nhóm hiện có, hãy sử dụng menu thả xuống ở góc trên bên phải.',
];
7 changes: 4 additions & 3 deletions lang/zh_cn/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
'member' => '成员',
'membership' => '会员资格',

'do_not_use_personal_team' => '不要使用您的个人团队来创建家谱。',
'do_not_use_personal_team_reason' => '对于个人团队,团队所有权不能转让给其他团队成员。',
'do_not_use_personal_team_instead' => '相反,创建一个单独的团队来管理并与其他人共享家谱。',
'personal_team_caution' => '警告',
'personal_team_avoid' => '避免使用您的个人团队来创建家谱,因为个人团队的所有权不能转让给其他成员。',
'personal_team_instead' => '相反,选择一个您已经加入的团队或创建一个专门用于管理和与他人共享家谱的新团队。',
'personal_team_action' => '要创建新团队或切换到现有团队,请使用右上角的下拉菜单。',
];
14 changes: 14 additions & 0 deletions resources/views/livewire/people/add/child.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
<x-ts-tab selected="{{ __('person.add_new_person_as_child') }}" class="dark:bg-red-100">
<x-ts-tab.items tab="{{ __('person.add_new_person_as_child') }}">
<div class="p-4 rounded md:w-192 bg-neutral-200">
@if (auth()->user()->currentTeam->personal_team)
<div class="mb-4">
<x-ts-alert color="cyan" icon="exclamation-circle" close>
<x-slot:title>
{{ __('team.personal_team_caution') }}
</x-slot:title>

<p>{{ __('team.personal_team_avoid') }}</p><br />
<p>{{ __('team.personal_team_instead') }}</p><br />
<p>{{ __('team.personal_team_action') }}</p>
</x-ts-alert>
</div>
@endif

<x-ts-errors class="mb-2" close />

<div class="grid grid-cols-6 gap-5">
Expand Down
17 changes: 16 additions & 1 deletion resources/views/livewire/people/add/father.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@
<x-ts-tab selected="{{ __('person.add_new_person_as_father') }}" class="dark:bg-red-100">
<x-ts-tab.items tab="{{ __('person.add_new_person_as_father') }}">
<div class="p-4 rounded md:w-192 bg-neutral-200">
@if (auth()->user()->currentTeam->personal_team)
<div class="mb-4">
<x-ts-alert color="cyan" icon="exclamation-circle" close>
<x-slot:title>
{{ __('team.personal_team_caution') }}
</x-slot:title>

<p>{{ __('team.personal_team_avoid') }}</p><br />
<p>{{ __('team.personal_team_instead') }}</p><br />
<p>{{ __('team.personal_team_action') }}</p>
</x-ts-alert>
</div>
@endif

<x-ts-errors class="mb-2" close />

<div class="grid grid-cols-6 gap-5">
{{-- firstname --}}
<div class="col-span-6 md:col-span-3">
<x-ts-input wire:model="fatherForm.firstname" id="firstname" label="{{ __('person.firstname') }} :" wire:dirty.class="bg-warning-200 dark:text-black" autocomplete="firstname" />
<x-ts-input wire:model="fatherForm.firstname" id="firstname" label="{{ __('person.firstname') }} :" wire:dirty.class="bg-warning-200 dark:text-black"
autocomplete="firstname" />
</div>

{{-- surname --}}
Expand Down
17 changes: 16 additions & 1 deletion resources/views/livewire/people/add/mother.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@
<x-ts-tab selected="{{ __('person.add_new_person_as_mother') }}" class="dark:bg-red-100">
<x-ts-tab.items tab="{{ __('person.add_new_person_as_mother') }}">
<div class="p-4 rounded md:w-192 bg-neutral-200">
@if (auth()->user()->currentTeam->personal_team)
<div class="mb-4">
<x-ts-alert color="cyan" icon="exclamation-circle" close>
<x-slot:title>
{{ __('team.personal_team_caution') }}
</x-slot:title>

<p>{{ __('team.personal_team_avoid') }}</p><br />
<p>{{ __('team.personal_team_instead') }}</p><br />
<p>{{ __('team.personal_team_action') }}</p>
</x-ts-alert>
</div>
@endif

<x-ts-errors class="mb-2" close />

<div class="grid grid-cols-6 gap-5">
{{-- firstname --}}
<div class="col-span-6 md:col-span-3">
<x-ts-input wire:model="motherForm.firstname" id="firstname" label="{{ __('person.firstname') }} :" wire:dirty.class="bg-warning-200 dark:text-black" autocomplete="firstname" />
<x-ts-input wire:model="motherForm.firstname" id="firstname" label="{{ __('person.firstname') }} :" wire:dirty.class="bg-warning-200 dark:text-black"
autocomplete="firstname" />
</div>

{{-- surname --}}
Expand Down
17 changes: 16 additions & 1 deletion resources/views/livewire/people/add/partner.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@
<x-ts-tab selected="{{ __('person.add_new_person_as_partner') }}" class="dark:bg-red-100">
<x-ts-tab.items tab="{{ __('person.add_new_person_as_partner') }}">
<div class="p-4 rounded md:w-192 bg-neutral-200">
@if (auth()->user()->currentTeam->personal_team)
<div class="mb-4">
<x-ts-alert color="cyan" icon="exclamation-circle" close>
<x-slot:title>
{{ __('team.personal_team_caution') }}
</x-slot:title>

<p>{{ __('team.personal_team_avoid') }}</p><br />
<p>{{ __('team.personal_team_instead') }}</p><br />
<p>{{ __('team.personal_team_action') }}</p>
</x-ts-alert>
</div>
@endif

<x-ts-errors class="mb-2" close />

<div class="grid grid-cols-6 gap-5">
{{-- firstname --}}
<div class="col-span-6 md:col-span-3">
<x-ts-input wire:model="partnerForm.firstname" id="firstname" label="{{ __('person.firstname') }} :" wire:dirty.class="bg-warning-200 dark:text-black" autocomplete="firstname" />
<x-ts-input wire:model="partnerForm.firstname" id="firstname" label="{{ __('person.firstname') }} :" wire:dirty.class="bg-warning-200 dark:text-black"
autocomplete="firstname" />
</div>

{{-- surname --}}
Expand Down
17 changes: 16 additions & 1 deletion resources/views/livewire/people/add/person.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
</div>

<div class="p-4 bg-neutral-200">
@if (auth()->user()->currentTeam->personal_team)
<div class="mb-4">
<x-ts-alert color="cyan" icon="exclamation-circle" close>
<x-slot:title>
{{ __('team.personal_team_caution') }}
</x-slot:title>

<p>{{ __('team.personal_team_avoid') }}</p><br />
<p>{{ __('team.personal_team_instead') }}</p><br />
<p>{{ __('team.personal_team_action') }}</p>
</x-ts-alert>
</div>
@endif

<x-ts-errors class="mb-2" close />

<div class="grid grid-cols-6 gap-5">
Expand All @@ -26,7 +40,8 @@

{{-- surname --}}
<div class="col-span-6 md:col-span-3">
<x-ts-input wire:model="personForm.surname" id="surname" label="{{ __('person.surname') }} : *" wire:dirty.class="bg-warning-200 dark:text-black" autocomplete="surname" />
<x-ts-input wire:model="personForm.surname" id="surname" label="{{ __('person.surname') }} : *" wire:dirty.class="bg-warning-200 dark:text-black" autocomplete="surname"
required />
</div>

{{-- birthname --}}
Expand Down
Loading

0 comments on commit 8480388

Please sign in to comment.