Add vote functionality to tracks
This commit is contained in:
parent
8b2f2b538e
commit
92b09c7de4
18 changed files with 237 additions and 19 deletions
10
app/views/admin/tracks/vote.js.erb
Normal file
10
app/views/admin/tracks/vote.js.erb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
$('table#myrating').replaceWith(
|
||||
"<%= escape_javascript(render 'voting', \
|
||||
track: @track, \
|
||||
show_votes: @program.show_voting?, \
|
||||
max_rating: @program.rating, \
|
||||
voting_period: @program.voting_period?, \
|
||||
votes: @votes, \
|
||||
conference_id: @conference.short_title \
|
||||
) %>"
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue