Created
June 20, 2017 14:40
-
-
Save anndoko/196dda2c23a730e242385492bc8f1bb5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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