refinerycms-ballots 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/votes/confirm.html.erb +4 -4
- data/app/views/votes/new.html.erb +3 -3
- metadata +5 -5
@@ -16,12 +16,12 @@
|
|
16
16
|
|
17
17
|
<!-- the full hidden data -->
|
18
18
|
<%= form_for @ballot_vote, :url => { :action => "proceed" } do |f| -%>
|
19
|
-
<%=
|
19
|
+
<%= hidden_field_tag :unique_identifier, @member.unique_identifier %>
|
20
20
|
<%= f.fields_for :office_votes do |office_vote_form| %>
|
21
|
-
<%= office_vote_form.
|
21
|
+
<%= office_vote_form.hidden_field :office_id %>
|
22
22
|
<%= office_vote_form.fields_for :candidate_votes do |candidate_vote_form| %>
|
23
|
-
<%= candidate_vote_form.
|
24
|
-
<%= candidate_vote_form.
|
23
|
+
<%= candidate_vote_form.hidden_field :candidate_id %>
|
24
|
+
<%= candidate_vote_form.hidden_field :voted %>
|
25
25
|
<% end %>
|
26
26
|
<% end %>
|
27
27
|
<div class="field"><%= submit_tag 'Back' %>
|
@@ -10,19 +10,19 @@
|
|
10
10
|
<%= form_for @ballot_vote, :url => { :action => "proceed" } do |f| -%>
|
11
11
|
<%= show_errors_for_ballot_vote @ballot_vote %>
|
12
12
|
|
13
|
-
<%=
|
13
|
+
<%= hidden_field_tag :unique_identifier, @member.unique_identifier %>
|
14
14
|
<%= f.fields_for :office_votes do |office_vote_form| %>
|
15
15
|
<% office_vote = office_vote_form.object %>
|
16
16
|
|
17
17
|
<fieldset>
|
18
18
|
<h4><%= office_vote.title %></h4>
|
19
19
|
<%= show_errors_for_office_vote office_vote %>
|
20
|
-
<%= office_vote_form.
|
20
|
+
<%= office_vote_form.hidden_field :office_id %>
|
21
21
|
<p><%= position_message_for office_vote.max_num_votes %></p>
|
22
22
|
<ol class="candidates">
|
23
23
|
<%= office_vote_form.fields_for :candidate_votes do |candidate_vote_form| %>
|
24
24
|
<li class="field">
|
25
|
-
<%= candidate_vote_form.
|
25
|
+
<%= candidate_vote_form.hidden_field :candidate_id %>
|
26
26
|
<%= candidate_vote_form.check_box :voted, :checked => candidate_vote_form.object.voted %>
|
27
27
|
<%= candidate_vote_form.label :voted, candidate_vote_form.object.name %><br />
|
28
28
|
</li>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-ballots
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-09-13 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: refinerycms-simple_members
|
16
|
-
requirement: &
|
16
|
+
requirement: &70250176468040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.1.7
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70250176468040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: factory_girl
|
27
|
-
requirement: &
|
27
|
+
requirement: &70250176447900 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 2.1.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70250176447900
|
36
36
|
description: Ruby on Rails Ballots engine for Refinery CMS
|
37
37
|
email:
|
38
38
|
executables: []
|