Admin/Card: Adding jackpot field.
This commit is contained in:
parent
0ee6592b63
commit
11eb3ccdd2
3 changed files with 7 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ class CardController extends BaseController
|
|||
'body' => 'Body',
|
||||
'subject' => 'Subject',
|
||||
'subject_type' => 'Subject Type',
|
||||
'jackpot' => 'Jackpot',
|
||||
'raid.name' => 'Raid',
|
||||
],
|
||||
'sort_columns' => [
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue