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

Version Path
keppler-2.1.11 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.10 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.9 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.8 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.7 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.6 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.5 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.4 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.3 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.2 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.1 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1.pre.p1 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.1 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.0.7 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.0.6 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.0.5 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.0.4.p1 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.0.4.pre.p1 installer/core/app/views/admin/customizes/_switch_template.html.haml
keppler-2.0.4 installer/core/app/views/admin/customizes/_switch_template.html.haml