mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-13 06:56:48 +00:00
translations updated
This commit is contained in:
@@ -24,6 +24,11 @@ class City extends Resource
|
||||
*/
|
||||
public static $title = 'name';
|
||||
|
||||
public static function label()
|
||||
{
|
||||
return __('City');
|
||||
}
|
||||
|
||||
/**
|
||||
* The columns that should be searched.
|
||||
* @var array
|
||||
|
||||
@@ -22,6 +22,11 @@ class Venue extends Resource
|
||||
*/
|
||||
public static $title = 'name';
|
||||
|
||||
public static function label()
|
||||
{
|
||||
return __('Venue');
|
||||
}
|
||||
|
||||
/**
|
||||
* The columns that should be searched.
|
||||
* @var array
|
||||
@@ -53,10 +58,10 @@ class Venue extends Resource
|
||||
Text::make('Slug')
|
||||
->exceptOnForms(),
|
||||
|
||||
Text::make('Street')
|
||||
Text::make(__('Street'), 'street')
|
||||
->rules('required', 'string'),
|
||||
|
||||
BelongsTo::make('City'),
|
||||
BelongsTo::make(__('City'), 'city', City::class),
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
||||
MenuSection::dashboard(Main::class)
|
||||
->icon('lightning-bolt'),
|
||||
|
||||
MenuSection::make('Locations', [
|
||||
MenuSection::make(__('Locations'), [
|
||||
MenuItem::resource(City::class),
|
||||
MenuItem::resource(Venue::class),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user