Sha256: c22164755eef0abc13d66f7c84893d9485fb7a6921340eab1b2f783503084568

Contents?: true

Size: 639 Bytes

Versions: 8

Compression:

Stored size: 639 Bytes

Contents

- value = input.get_value_from_submit(@submit)


- unless input.is_deleted? && value.nil?

  .row.formily-input
    .columns.large-12.clearfix

      - attrs = {type: :checkbox, name: "formily_inputs[#{input.id}]", id: "checkbox_#{input.id}"}
      - attrs[:checked] = 'checked' if value.present?
      - attrs['disabled'] = 'disabled' if @submit.is_complete?

      %input{input.render_attributes_hash, attrs, value: :checked}

      %label{for: "checkbox_#{input.id}"}= input.label

      - if input.description.present?
        %span.has-tip.tip-bottom{'data-tooltip'=> '', 'aria-haspopup'=>true, title: input.description}  ? 

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
formily-0.0.5.6.5 app/views/formily/partial/inputs/_checkbox_input.haml
formily-0.0.5.6.4 app/views/formily/partial/inputs/_checkbox_input.haml
formily-0.0.5.6.3 app/views/formily/partial/inputs/_checkbox_input.haml
formily-0.0.5.6.2 app/views/formily/partial/inputs/_checkbox_input.haml
formily-0.0.5.6.1 app/views/formily/partial/inputs/_checkbox_input.haml
formily-0.0.5.6.0 app/views/formily/partial/inputs/_checkbox_input.haml
formily-0.0.5.5.9 app/views/formily/partial/inputs/_checkbox_input.haml
formily-0.0.5.5.7 app/views/formily/partial/inputs/_checkbox_input.haml