Sha256: 90e508e913df35869bb845c6120855e48d9ae2ab6cb5a3e3e45473a4c394ce6c
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
.pull-right = simple_form_for [:admin, customize] do |f| %label - if customize.installed == false %span.status.pull-left{style: "padding-right: 50px"} No installed .switch.pull-right %input{name: "customize[installed]", type: "hidden", value: "true"} %input#default_switch{:name => "customize[installed]", type: "checkbox", value: "true"}/ %label.label-default{:for => "default_switch", onclick: "installTemplate(#{customize.id})"} - else %span.status.pull-left{style: "padding-right: 50px"} Installed .switch.pull-right %input{name: "customize[installed]", type: "hidden", value: "false"} %input#default_switch{:name => "customize[installed]", type: "checkbox", value: "false", checked: "checked"}/ %label.label-default{:for => "default_switch", onclick: "installTemplate(#{customize.id})"} :javascript function installTemplate(customize_id) { $('#spinner').css('display', 'block') $('#edit_customize_'+customize_id).submit() }
Version data entries
3 entries across 3 versions & 1 rubygems