Skip to content

Commit

Permalink
Merge pull request #200 from ploi-deploy/item-tags-admin
Browse files Browse the repository at this point in the history
Add item tags to admin
  • Loading branch information
Cannonb4ll authored Feb 16, 2023
2 parents d3afa64 + 57959af commit 9735bfb
Show file tree
Hide file tree
Showing 2 changed files with 1,437 additions and 698 deletions.
8 changes: 5 additions & 3 deletions app/Filament/Resources/ItemResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,16 @@ public static function table(Table $table): Table
Tables\Columns\TextColumn::make('comments_count')->label('Comments')->counts('comments')->sortable()->toggleable()->toggledHiddenByDefault(),
Tables\Columns\TextColumn::make('project.title'),
Tables\Columns\TextColumn::make('board.title')->sortable(),
Tables\Columns\TextColumn::make('user.name'),
Tables\Columns\TextColumn::make('user.name')->toggleable(),
Tables\Columns\TagsColumn::make('tags.name')->toggleable()->toggledHiddenByDefault(),
Tables\Columns\TagsColumn::make('assignedUsers.name')->visible(auth()->user()->hasRole(UserRole::Admin))->toggleable()->toggledHiddenByDefault(),
Tables\Columns\TextColumn::make('created_at')
->dateTime()
->sortable()
->toggleable()
->label('Date'),
Tables\Columns\BooleanColumn::make('pinned')->label('Pinned'),
Tables\Columns\BooleanColumn::make('private')->label('Private')->toggleable()->toggledHiddenByDefault(),
Tables\Columns\BooleanColumn::make('pinned')->label('Pinned')->sortable()->toggleable()->toggledHiddenByDefault(),
Tables\Columns\BooleanColumn::make('private')->label('Private')->sortable()->toggleable()->toggledHiddenByDefault(),
])
->filters([
Filter::make('assigned')
Expand Down
Loading

0 comments on commit 9735bfb

Please sign in to comment.