Sha256: 362600210ba34b5d9f01d6dbf6025eedb15c31ae31acbf7c9f7b988834104298

Contents?: true

Size: 879 Bytes

Versions: 8

Compression:

Stored size: 879 Bytes

Contents

- if builder.options[:html] && builder.options[:html][:class] =~ /form-horizontal/
  .control-group{:class => ('error' if error_messages.present?)}
    - if label_text.present?
      = builder.label(method, label_text, :class => 'control-label')
    .controls
      - if prepend.present?
        .input-prepend
          %span.add-on= prepend
          = field
      - elsif append.present?
        .input-append
          = field
          %span.add-on= append
      - else
        = field


      - if error_messages.present?
        %span.help-inline= error_messages

      - if help_block.present?
        %p.help-block= help_block
  
- else
  - if label_text.present?
    = builder.label(method, label_text, :class => 'control-label')
  = field

  - if error_messages.present?
    %span.help-inline= error_messages

  - if help_block.present?
    %p.help-block= help_block

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bootstrap_builder-0.2.5 app/views/bootstrap_builder/_default_field.html.haml
bootstrap_builder-0.2.4 app/views/bootstrap_builder/_default_field.html.haml
bootstrap_builder-0.2.3 app/views/bootstrap_builder/_default_field.html.haml
bootstrap_builder-0.2.2 app/views/bootstrap_builder/_default_field.html.haml
bootstrap_builder-0.2.1 app/views/bootstrap_builder/_default_field.html.haml
bootstrap_builder-0.2.0 app/views/bootstrap_builder/_default_field.html.haml
bootstrap_builder-0.1.2 app/views/bootstrap_builder/_default_field.html.haml
bootstrap_builder-0.1.1 app/views/bootstrap_builder/_default_field.html.haml