mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
DRY up bootstrapSwitches with default values
This commit is contained in:
parent
d703dad496
commit
1e9765c163
12 changed files with 33 additions and 66 deletions
|
|
@ -168,14 +168,7 @@ module EventsHelper
|
|||
event,
|
||||
event: { attribute => nil }
|
||||
),
|
||||
method: :patch,
|
||||
class: 'switch-checkbox',
|
||||
data: {
|
||||
size: 'small',
|
||||
off_color: 'warning',
|
||||
on_text: 'Yes',
|
||||
off_text: 'No'
|
||||
}
|
||||
class: 'switch-checkbox'
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue