style: increase study group modal width to 3XL and remove warning color from edit action
This commit is contained in:
parent
8b48d70d79
commit
c8a98d8d65
@ -26,7 +26,7 @@ protected function setUp(): void
|
||||
$action->makeModalSubmitAction('createAnother', arguments: ['another' => true])
|
||||
->label('Simpan dan Tambah Lagi'),
|
||||
])
|
||||
->modalWidth(Width::Large)
|
||||
->modalWidth(Width::ThreeExtraLarge)
|
||||
->schema(fn ($livewire) => $livewire->studyGroupFormSchema())
|
||||
->after(function (StudyGroup $record, array $data) {
|
||||
if (isset($data['course_id'])) {
|
||||
|
||||
@ -21,14 +21,13 @@ protected function setUp(): void
|
||||
$this
|
||||
->label('Ubah')
|
||||
->icon(Heroicon::OutlinedPencilSquare)
|
||||
->color('warning')
|
||||
->iconButton()
|
||||
->tooltip('Ubah')
|
||||
->record(fn (array $arguments): StudyGroup => StudyGroup::findOrFail($arguments['studyGroup']))
|
||||
->modalHeading(fn (StudyGroup $record) => "Ubah {$record->name}")
|
||||
->modalSubmitActionLabel('Simpan')
|
||||
->modalCancelActionLabel('Batal')
|
||||
->modalWidth(Width::Large)
|
||||
->modalWidth(Width::ThreeExtraLarge)
|
||||
->schema(fn ($livewire) => $livewire->studyGroupFormSchema())
|
||||
->fillForm(function (StudyGroup $record): array {
|
||||
return [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user