⚙️ Make community a required field in meetup create/edit forms

🛠️ Add “Keine” placeholder option to community select
✏️ Translate community values (“bitcoin”, “einundzwanzig”) on landing page
🌍 Update German locale strings for community names
This commit is contained in:
HolgerHatGarKeineNode
2025-12-09 23:47:58 +01:00
parent 52c05e6d47
commit 538ae5808a
4 changed files with 13 additions and 4 deletions

View File

@@ -554,4 +554,4 @@
"nostr.course_text": "Unser Dozent :from hat einen neuen Kurs eingestellt:\n:name\n:description\n:url\n\n#Bitcoin #Einundzwanzig", "nostr.course_text": "Unser Dozent :from hat einen neuen Kurs eingestellt:\n:name\n:description\n:url\n\n#Bitcoin #Einundzwanzig",
"Einundzwanzig Community": "", "Einundzwanzig Community": "",
"Allgemeine Bitcoin Community": "" "Allgemeine Bitcoin Community": ""
} }

View File

@@ -79,7 +79,7 @@ class extends Component {
'nostr' => ['nullable', 'string', 'max:255'], 'nostr' => ['nullable', 'string', 'max:255'],
'simplex' => ['nullable', 'string',], 'simplex' => ['nullable', 'string',],
'signal' => ['nullable', 'string', 'max:510'], 'signal' => ['nullable', 'string', 'max:510'],
'community' => ['nullable', 'string', 'max:255'], 'community' => ['required', 'string', 'max:255'],
'visible_on_map' => ['boolean'], 'visible_on_map' => ['boolean'],
]); ]);

View File

@@ -122,7 +122,7 @@ class extends Component {
'nostr' => ['nullable', 'string', 'max:255'], 'nostr' => ['nullable', 'string', 'max:255'],
'simplex' => ['nullable', 'string', 'max:255'], 'simplex' => ['nullable', 'string', 'max:255'],
'signal' => ['nullable', 'string', 'max:255'], 'signal' => ['nullable', 'string', 'max:255'],
'community' => ['nullable', 'string', 'max:255'], 'community' => ['required', 'string', 'max:255'],
]); ]);
// Convert github_data string back to array if provided // Convert github_data string back to array if provided
@@ -324,6 +324,7 @@ class extends Component {
<flux:field> <flux:field>
<flux:label>{{ __('Gemeinschaft') }}</flux:label> <flux:label>{{ __('Gemeinschaft') }}</flux:label>
<flux:select wire:model="community"> <flux:select wire:model="community">
<flux:select.option value="">{{ __('Keine') }}</flux:select.option>
<flux:select.option value="einundzwanzig">einundzwanzig</flux:select.option> <flux:select.option value="einundzwanzig">einundzwanzig</flux:select.option>
<flux:select.option value="bitcoin">bitcoin</flux:select.option> <flux:select.option value="bitcoin">bitcoin</flux:select.option>
</flux:select> </flux:select>

View File

@@ -145,7 +145,15 @@ class extends Component {
@if($meetup->community) @if($meetup->community)
<div> <div>
<flux:heading size="sm" class="mb-2">Community</flux:heading> <flux:heading size="sm" class="mb-2">Community</flux:heading>
<p class="text-gray-700 dark:text-gray-300">{{ $meetup->community }}</p> <p class="text-gray-700 dark:text-gray-300">
@if ($meetup->community === 'bitcoin')
{{ __('Allgemeine Bitcoin Community') }}
@elseif ($meetup->community === 'einundzwanzig')
{{ __('Einundzwanzig Community') }}
@else
{{ $meetup->community }}
@endif
</p>
</div> </div>
@endif @endif
</div> </div>