mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-13 11:46:47 +00:00
⚙️ 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:
@@ -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",
|
||||
"Einundzwanzig Community": "",
|
||||
"Allgemeine Bitcoin Community": ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ class extends Component {
|
||||
'nostr' => ['nullable', 'string', 'max:255'],
|
||||
'simplex' => ['nullable', 'string',],
|
||||
'signal' => ['nullable', 'string', 'max:510'],
|
||||
'community' => ['nullable', 'string', 'max:255'],
|
||||
'community' => ['required', 'string', 'max:255'],
|
||||
'visible_on_map' => ['boolean'],
|
||||
]);
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ class extends Component {
|
||||
'nostr' => ['nullable', 'string', 'max:255'],
|
||||
'simplex' => ['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
|
||||
@@ -324,6 +324,7 @@ class extends Component {
|
||||
<flux:field>
|
||||
<flux:label>{{ __('Gemeinschaft') }}</flux:label>
|
||||
<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="bitcoin">bitcoin</flux:select.option>
|
||||
</flux:select>
|
||||
|
||||
@@ -145,7 +145,15 @@ class extends Component {
|
||||
@if($meetup->community)
|
||||
<div>
|
||||
<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>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user