Last active
December 21, 2015 17:09
-
-
Save kmelkon/6338927 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
<address> | |
<%= deal.value %><br> | |
<%= deal.background %><br> | |
</address> | |
<div class="no-radio"> | |
<div class="btn-group" data-toggle="buttons-radio"> | |
<%= form_tag status_deal_path(deal), :remote => true, :class => "deals_status" do %> | |
<%= radio_button_tag :state, "won"+deal.id.to_s, deal.state == "won", :class => "toggle-btn-left toggle-btn" %> | |
<%= label_tag 'state_won'+deal.id.to_s, "won", :class=>"btn" %> | |
<%= radio_button_tag :state, "lost"+deal.id.to_s, deal.state == 'lost', :class => "toggle-btn-center toggle-btn" %> | |
<%= label_tag 'state_lost'+deal.id.to_s, "lost",:class=>"btn" %> | |
<%= radio_button_tag :state, "pending"+deal.id.to_s, deal.state == 'pending',:class => "toggle-btn-right toggle-btn" %> | |
<%= label_tag 'state_pending'+deal.id.to_s, "pending", :class=>"btn" %> | |
<% end %> | |
</div> | |
</div> |
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
<% @deals.each do |deal| %> | |
<%= render 'deals/deal', :locals => {:deal => @deal} %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment