mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
feat: Add venue description to Venue API and update form view (#72ea2ba)
In the VenueController, the Venue API now includes a description of the venue by concatenating the city name and street. This change is reflected in the 'bitcoin-event-form' view where the 'option-description' attribute now uses the venue's description instead of the city name.
This commit is contained in:
@@ -33,7 +33,8 @@ class VenueController extends Controller
|
|||||||
)
|
)
|
||||||
->get()
|
->get()
|
||||||
->map(function (Venue $venue) {
|
->map(function (Venue $venue) {
|
||||||
$venue->flag = asset('vendor/blade-country-flags/4x3-'.$venue->city->country->code.'.svg');
|
$venue->flag = asset('vendor/blade-country-flags/4x3-' . $venue->city->country->code . '.svg');
|
||||||
|
$venue->description = $venue->city->name . ', ' . $venue->street;
|
||||||
|
|
||||||
return $venue;
|
return $venue;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
]"
|
]"
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
option-description="city.name"
|
option-description="description"
|
||||||
/>
|
/>
|
||||||
</x-input.group>
|
</x-input.group>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user