wip
This commit is contained in:
1 parent
6f40d5df30
commit
8d347aeba7
8 files changed
+114
-44
No files matched your search
@@ -23,14 +23,9 @@ use Filament\Actions\ActionGroup;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Infolists\Components\TextEntry;
|
||||
use Filament\Schemas\Components\Grid;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
use Filament\Support\Enums\FontWeight;
|
||||
use Filament\Support\Enums\VerticalAlignment;
|
||||
@@ -40,6 +35,7 @@ use Filament\Tables\Enums\FiltersLayout;
|
||||
use Filament\Tables\Filters\Filter;
|
||||
use Filament\Tables\Filters\Indicator;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -66,7 +62,7 @@ class EventsTable
|
||||
->poll('10s')
|
||||
->striped()
|
||||
->deferLoading()
|
||||
->defaultPaginationPageOption(5)
|
||||
->defaultPaginationPageOption(50)
|
||||
->paginated([5, 10, 15])
|
||||
->columns([
|
||||
IconColumn::make('sport.icon')
|
||||
@@ -515,30 +511,16 @@ class EventsTable
|
||||
->emptyStateDescription('Modify the filter')
|
||||
->recordActions([
|
||||
Action::make('note')
|
||||
// ->before(fn () => $this->pollingInterval = null)
|
||||
// ->after(fn () => $this->pollingInterval = '1s')
|
||||
->iconButton()->icon('phosphor-note')->color('gray')
|
||||
->tooltip('Add a note')
|
||||
->schema([
|
||||
Grid::make(2)
|
||||
->schema([
|
||||
Section::make('Details')
|
||||
->schema([
|
||||
TextInput::make('name'),
|
||||
Select::make('position')
|
||||
->options([
|
||||
'developer' => 'Developer',
|
||||
'designer' => 'Designer',
|
||||
]),
|
||||
Checkbox::make('is_admin'),
|
||||
]),
|
||||
Section::make('Auditing')
|
||||
->schema([
|
||||
TextEntry::make('created_at')
|
||||
->dateTime(),
|
||||
TextEntry::make('updated_at')
|
||||
->dateTime(),
|
||||
]),
|
||||
]),
|
||||
]),
|
||||
->modalSubmitAction(false)
|
||||
->modalCancelAction(fn (Action $action) => $action->label('Close'))
|
||||
->modalContent(fn ($record): View => view(
|
||||
'filament.tables.columns.make-note',
|
||||
['record' => $record],
|
||||
)),
|
||||
Action::make('notify')->iconButton()->icon('phosphor-bell')->color('gray')->tooltip('Add a notifications'),
|
||||
Action::make('star')
|
||||
->iconButton()
|
||||
|
||||
Reference in new issue
Block a user