Sha256: 4e106771fc8d255a67c115257f68166223fed39b81af10b7d4fb55632453f61e

Contents?: true

Size: 589 Bytes

Versions: 12

Compression:

Stored size: 589 Bytes

Contents

.control-group{:class => ('error' if error_messages.present?)}

  - if label_text.present?
    = builder.label(method, label_text, :class => 'control-label')

  .controls
    - if defined?(values)
      - values.each do |value|
        %label.checkbox{:for => value[:id]}
          #{value[:field]} #{value[:label_text]}
      %p.help-block= help_block if help_block.present?

    - else
      = builder.label(method, :class => 'checkbox') do
        = field
        = help_block if help_block.present?
        
      - if error_messages.present?
        %span.help-inline= error_messages

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bootstrap_builder-0.4.0 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.3.3 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.3.2 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.3.1 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.3.0 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.2.6 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.2.5 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.2.4 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.2.3 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.2.2 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.2.1 app/views/bootstrap_builder/_check_box.html.haml
bootstrap_builder-0.2.0 app/views/bootstrap_builder/_check_box.html.haml