- DB: users.username (unique), users.preferred_locale (default from app.locale) - Backend: validation, model fillable; share supportedLocales; SetLocaleFromUser - Frontend: profile page fields + types - Filament: SuperAdmin profile page with username/language feat(admin-nav): move Tasks to Bibliothek and add menu labels fix(tasks-table): show localized title/emotion/event type; add translated headers feat(l10n): add missing table headers for emotions and event types; normalize en/de files refactor: tidy translations for tasks/emotions/event types
28 lines
860 B
PHP
28 lines
860 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\EmotionResource\Pages;
|
|
|
|
use App\Filament\Resources\EmotionResource;
|
|
use Filament\Actions;
|
|
use Filament\Resources\Pages\ManageRecords;
|
|
|
|
class ManageEmotions extends ManageRecords
|
|
{
|
|
protected static string $resource = EmotionResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
Actions\CreateAction::make(),
|
|
Actions\Action::make('import')
|
|
->label(__('admin.common.import_csv'))
|
|
->icon('heroicon-o-arrow-up-tray')
|
|
->url(EmotionResource::getUrl('import')),
|
|
Actions\Action::make('template')
|
|
->label(__('admin.common.download_csv_template'))
|
|
->icon('heroicon-o-document-arrow-down')
|
|
->url(url('/super-admin/templates/emotions.csv')),
|
|
];
|
|
}
|
|
}
|