projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Created a partial to DRY the aja voting method. Modified the voter class to
[selectricity-live]
/
app
/
views
/
voter
/
_vote.rhtml
diff --git
a/app/views/voter/_vote.rhtml
b/app/views/voter/_vote.rhtml
index b95fc96209151e9c27ade5fce98d281fb940689c..914077ce1d50783317fdf7cb1616bb19083eb441 100644
(file)
--- a/
app/views/voter/_vote.rhtml
+++ b/
app/views/voter/_vote.rhtml
@@
-11,13
+11,8
@@
least preferred. Please list <em>all</em> choices in every vote.
<em>(For example, 123 or 321 or 213, etc.)</em></p>
least preferred. Please list <em>all</em> choices in every vote.
<em>(For example, 123 or 321 or 213, etc.)</em></p>
-<% if @voter.election.quickvote? %>
- <% form_tag(quickaction_url( :ident => @voter.election.name, :action => 'confirm')) do %>
-<% else %>
- <%= form_tag :action => 'review', :id => @voter.password %>
-<% end %>
-
+<%= form_tag :action => 'review', :id => @voter.password %>
<%= text_field :vote, :votestring -%>
<%= submit_tag "Vote!" %>
<%= text_field :vote, :votestring -%>
<%= submit_tag "Vote!" %>
-<% end %>
+
Benjamin Mako Hill
||
Want to submit a patch?