Sha256: b226c2a5ee447bb91c8f562ebf06ad78bce7445a98d44d330799b2c32c46cf80

Contents?: true

Size: 475 Bytes

Versions: 16

Compression:

Stored size: 475 Bytes

Contents

<% input_group = Formstrap::InputGroupView.new(local_assigns) %>

<% if input_group.bypass %>
  <%= yield %>
<% else %>
  <div <%= tag.attributes(input_group.options) %>>
    <% if input_group.prepend %>
      <span class="input-group-text">
        <%= input_group.prepend %>
      </span>
    <% end %>

    <%= yield %>

    <% if input_group.append %>
      <span class="input-group-text">
        <%= input_group.append %>
      </span>
    <% end %>
  </div>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
formstrap-0.4.5 app/views/formstrap/_input_group.html.erb
formstrap-0.4.4 app/views/formstrap/_input_group.html.erb
formstrap-0.4.3 app/views/formstrap/_input_group.html.erb
formstrap-0.4.2 app/views/formstrap/_input_group.html.erb
formstrap-0.3.5 app/views/formstrap/_input_group.html.erb
formstrap-0.3.4 app/views/formstrap/_input_group.html.erb
formstrap-0.3.3 app/views/formstrap/_input_group.html.erb
formstrap-0.3.2 app/views/formstrap/_input_group.html.erb
formstrap-0.3.1 app/views/formstrap/_input_group.html.erb
formstrap-0.3.0 app/views/formstrap/_input_group.html.erb
formstrap-0.2.1 app/views/formstrap/_input_group.html.erb
formstrap-0.2.0 app/views/formstrap/_input_group.html.erb
formstrap-0.1.3 app/views/formstrap/_input_group.html.erb
formstrap-0.1.2 app/views/formstrap/_input_group.html.erb
formstrap-0.1.1 app/views/formstrap/_input_group.html.erb
formstrap-0.1.0 app/views/formstrap/_input_group.html.erb