auditionadmin-21 Implement judging enabled switch on settings page
This commit is contained in:
parent
40c0300180
commit
e0f6e18144
|
|
@ -31,6 +31,9 @@ class AuditionSettings extends Controller
|
||||||
// Olympic Scoring Switch
|
// Olympic Scoring Switch
|
||||||
$validData['olympic_scoring'] = $request->get('olympic_scoring') == '1';
|
$validData['olympic_scoring'] = $request->get('olympic_scoring') == '1';
|
||||||
|
|
||||||
|
// Judging Enabled Switch
|
||||||
|
$validData['judging_enabled'] = $request->get('judging_enabled') == '1';
|
||||||
|
|
||||||
// Store currency values as cents
|
// Store currency values as cents
|
||||||
$validData['late_fee'] = $validData['late_fee'] * 100;
|
$validData['late_fee'] = $validData['late_fee'] * 100;
|
||||||
$validData['school_fee'] = $validData['school_fee'] * 100;
|
$validData['school_fee'] = $validData['school_fee'] * 100;
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,10 @@
|
||||||
<x-slot:section_name>Scoring Settings</x-slot:section_name>
|
<x-slot:section_name>Scoring Settings</x-slot:section_name>
|
||||||
<x-form.body-grid columns="12" class="m-3">
|
<x-form.body-grid columns="12" class="m-3">
|
||||||
<div class="col-span-6 flex space-x-3">
|
<div class="col-span-6 flex space-x-3">
|
||||||
<x-form.toggle-checkbox name="judging_enabled"/><span>Enable score entry by judges</span>
|
<x-form.toggle-checkbox
|
||||||
|
checked="{{ auditionSetting('judging_enabled') }}"
|
||||||
|
name="judging_enabled"/>
|
||||||
|
<span>Enable score entry by judges</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-span-6 flex space-x-3">
|
<div class="col-span-6 flex space-x-3">
|
||||||
<x-form.toggle-checkbox
|
<x-form.toggle-checkbox
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue