Skip to content

Instantly share code, notes, and snippets.

@anndoko
Created June 20, 2017 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anndoko/196dda2c23a730e242385492bc8f1bb5 to your computer and use it in GitHub Desktop.
Save anndoko/196dda2c23a730e242385492bc8f1bb5 to your computer and use it in GitHub Desktop.
<!-- Radio Button UI (Bootstrap) -->
<div class="btn-group" data-toggle="buttons">
<% Event::STATUS.each do |status| %>
<label class="btn btn-default <%= (status == f.object.status)? 'active' : '' %>">
<%= f.radio_button :status, status %>
<%= t(status, :scope => "event.status") %>
</label>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment