Sha256: ca5245dc34f471cdce21a1002e9cfe7e89e2700597b6ae54a463f0931b403e2a

Contents?: true

Size: 755 Bytes

Versions: 4

Compression:

Stored size: 755 Bytes

Contents

<% name ||= id %>
<% required ||= false %>
<% required_class = required ? ' required' : ' optional' %>
<% value ||= true %>
<div class="control-group radio_buttons <%= required_class %> <%= id %>">
  <label class="radio_buttons <%= required_class %> control-label"><%= label %></label>
  <div class="controls">
    <label class="radio">
      <input type="radio" value="true" name="<%= name %>" id="<%= id %>_true"<%= value ? ' checked="checked"' : '' %> class="radio_buttons <%= required_class %>"/>
      Yes
    </label>
    <label class="radio">
      <input type="radio" value="false" name="<%= name %>" id="<%= id %>_false"<%= value ? '' : ' checked="checked"' %>  class="radio_buttons <%= required_class %>"/>
      No
    </label>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
voluntary-0.4.0 app/views/shared/layouts/twitter_bootstrap/control_group/_boolean.html.erb
voluntary-0.3.0 app/views/shared/layouts/twitter_bootstrap/control_group/_boolean.html.erb
voluntary-0.2.4 app/views/shared/layouts/twitter_bootstrap/control_group/_boolean.html.erb
voluntary-0.2.3 app/views/shared/layouts/twitter_bootstrap/control_group/_boolean.html.erb