Sha256: 3a5f81aca94b0d2de14d54cd498c4491bef5521c57dd707f313c906e2b881cf6
Contents?: true
Size: 877 Bytes
Versions: 19
Compression:
Stored size: 877 Bytes
Contents
.pull-right = simple_form_for [:admin, customize] do %label - if customize.installed == false %label.switch.pull-right %input{ name: 'customize[installed]', type: 'hidden', value: 'true' } %input#default_switch_on{ name: 'customize[installed]', type: 'checkbox', value: 'true' } %span.slider.round{ onclick: "installTemplate(#{customize.id})" } - else %label.switch.pull-right %input{ name: 'customize[installed]', type: 'hidden', value: 'false' } %input.active#default_switch_off{ name: 'customize[installed]', type: 'checkbox', value: 'false', checked: 'checked' } %span.slider.round{ onclick: "installTemplate(#{customize.id})" } :javascript function installTemplate(customize_id) { $('.spinner').css('display', 'block') $('#edit_customize_'+customize_id).submit() }
Version data entries
19 entries across 19 versions & 1 rubygems