Sha256: 20cfa80bbb6be5584bee893be362c172f3db3d7f9c4f0e77d44add0c1f892fb1

Contents?: true

Size: 466 Bytes

Versions: 5

Compression:

Stored size: 466 Bytes

Contents

<% id ||= field.match(/id="([^"]*)"/)[1] if field.match(/id="([^"]*)"/) %>
<% required ||= false %>
<% required_class = required ? 'required' : 'optional' %>
<div class="form-group string <%= required_class %> <%= id %>">
  <label class="string <%= required_class %> control-label col-sm-3 control-label" for="<%= id %>">
    <% if required %><abbr title="required">*</abbr><% end %> <%= label %>
  </label>
  <div class="col-sm-9">
    <%= field %>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voluntary-0.7.1 app/views/shared/layouts/twitter_bootstrap/_control_group.html.erb
voluntary-0.7.0 app/views/shared/layouts/twitter_bootstrap/_control_group.html.erb
voluntary-0.6.0 app/views/shared/layouts/twitter_bootstrap/_control_group.html.erb
voluntary-0.5.2 app/views/shared/layouts/twitter_bootstrap/_control_group.html.erb
voluntary-0.5.1 app/views/shared/layouts/twitter_bootstrap/_control_group.html.erb