Sha256: 401dbfdc17e223154cfba7ee064db319fc70c9a501dff0c27af30bc9481c4b56
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
<% choice = Choice.find_by_elt_id_and_person_id elt.id, (session[:person] ? session[:person].id : nil) result = elt.result %> <label class="con <%= choice and choice.value == -1 ? "selected" : "" %>" title="-1" for="choice_<%= elt.id %>_con"> V <%= radio_button_tag "choice[value]", "-1", (choice and choice.value == -1), :id => "choice_#{elt.id}_con", :onclick => "this.form.commit.click()" %> </label> <%= link_to_remote("%+d" % result, { :update => 'result_'+elt.id, :position => :top, :url => { :action => 'choices', :id => elt } }, { :class => 'result', :id => "result_#{ elt.id}", :href => url_for(:controller => 'elt', :action => 'choices', :id => elt) }) %> <script>setKnob($('elt_<%= elt.id %>'), <%= result %>);</script> <label class="pro <%= choice and choice.value == 1 ? "selected" : "" %>" title="+1" for="choice_<%= elt.id %>_pro"> Λ <%= radio_button_tag "choice[value]", "+1", (choice and choice.value == +1), :id => "choice_#{elt.id}_pro", :onclick => "this.form.commit.click()" %> </label> <%= submit_tag 'Vote!' %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parlement-0.8 | app/views/elt/_choice.rhtml |