1
0
Fork 0

Admin/Card: Adding jackpot field.

This commit is contained in:
Henrik Hautakoski 2023-02-19 15:42:03 +01:00
parent 0ee6592b63
commit 11eb3ccdd2
3 changed files with 7 additions and 0 deletions

View file

@ -19,6 +19,7 @@ class CardController extends BaseController
'body' => 'Body',
'subject' => 'Subject',
'subject_type' => 'Subject Type',
'jackpot' => 'Jackpot',
'raid.name' => 'Raid',
],
'sort_columns' => [

View file

@ -48,6 +48,7 @@ class CardForm extends ModelForm
'record.character_id' => 'exists:' . Character::class . ',id|nullable',
'record.raid_id' => 'exists:' . Raid::class . ',id|nullable',
'record.class' => 'in:' . collect($this->classes)->keys() . '|nullable',
'record.jackpot' => 'boolean',
];
}

View file

@ -17,6 +17,11 @@
<x-ignite-input name="record.body" wire:model="record.body" />
</div>
<div>
<x-ignite-label class="inline" for="record.jackpot">{{ __('Jackpot') }}</x-ignite-label>
<input type="checkbox" name="record.jackpot" wire:model="record.jackpot" />
</div>
<div class="grid grid-cols-3 space-x-4">
<div>
<x-ignite-label for="record.raid_id">{{ __('Raid') }}</x-ignite-label>