Sha256: 79e36ebc5420119fb73d1efece0caed2205712839a9a3d20bed28277f99a53cd
Contents?: true
Size: 848 Bytes
Versions: 2
Compression:
Stored size: 848 Bytes
Contents
- if builder.options[:html] && builder.options[:html][:class] =~ /form-horizontal/ .control-group{:class => ('error' if error_messages.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap_builder-0.1.0 | app/views/bootstrap_builder/_default_field.html.haml |
bootstrap_builder-0.0.0 | app/views/bootstrap_builder/_default_field.html.haml |