fixes
This commit is contained in:
1 parent
95315d1453
commit
a159fe4cd5
2 files changed
+15
-5
No files matched your search
@@ -6,8 +6,8 @@ use App\Mail\UserNotification;
|
|||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Filament\Actions\Concerns\InteractsWithActions;
|
use Filament\Actions\Concerns\InteractsWithActions;
|
||||||
use Filament\Actions\Contracts\HasActions;
|
use Filament\Actions\Contracts\HasActions;
|
||||||
use Filament\Forms\Components\MarkdownEditor;
|
|
||||||
use Filament\Forms\Components\Select;
|
use Filament\Forms\Components\Select;
|
||||||
|
use Filament\Forms\Components\Textarea;
|
||||||
use Filament\Forms\Components\TextInput;
|
use Filament\Forms\Components\TextInput;
|
||||||
use Filament\Forms\Components\Toggle;
|
use Filament\Forms\Components\Toggle;
|
||||||
use Filament\Notifications\Notification;
|
use Filament\Notifications\Notification;
|
||||||
@@ -44,8 +44,7 @@ class UserNotifications extends Component implements HasActions, HasSchemas, Has
|
|||||||
Toggle::make('notify_by_email')->label('Send also as E-Mail'),
|
Toggle::make('notify_by_email')->label('Send also as E-Mail'),
|
||||||
TextInput::make('subject')
|
TextInput::make('subject')
|
||||||
->required(),
|
->required(),
|
||||||
MarkdownEditor::make('message')
|
Textarea::make('message')->rows(4),
|
||||||
->required(),
|
|
||||||
])
|
])
|
||||||
->statePath('data');
|
->statePath('data');
|
||||||
}
|
}
|
||||||
@@ -62,8 +61,8 @@ class UserNotifications extends Component implements HasActions, HasSchemas, Has
|
|||||||
}
|
}
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title($data['subject'])
|
->title($data['subject'])
|
||||||
->icon('phosphor-envelope-duotone')
|
->icon('phosphor-user-duotone')
|
||||||
->body($data['message'])
|
->body('from: '.auth()->user()->name.'<br>'.$data['message'])
|
||||||
->sendToDatabase($recipient);
|
->sendToDatabase($recipient);
|
||||||
|
|
||||||
Notification::make()
|
Notification::make()
|
||||||
|
|||||||
@@ -8,6 +8,17 @@
|
|||||||
@source '../../../../vendor/guava/filament-modal-relation-managers/resources/**/*';
|
@source '../../../../vendor/guava/filament-modal-relation-managers/resources/**/*';
|
||||||
@source '../../../../vendor/jaocero/radio-deck/resources/views';
|
@source '../../../../vendor/jaocero/radio-deck/resources/views';
|
||||||
|
|
||||||
|
|
||||||
|
/* Reduce gap between widgets and content */
|
||||||
|
.fi-page-content {
|
||||||
|
@apply gap-y-5;
|
||||||
|
/* Default is usually gap-6 or gap-8 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.fi-page-header-main-ctn {
|
||||||
|
@apply pt-5
|
||||||
|
}
|
||||||
|
|
||||||
/* hide reset link in filters */
|
/* hide reset link in filters */
|
||||||
.fi-ta-filters-heading,
|
.fi-ta-filters-heading,
|
||||||
button[wire\:click="resetTableFiltersForm"] {
|
button[wire\:click="resetTableFiltersForm"] {
|
||||||
|
|||||||
Reference in new issue
Block a user