fix registration page, only show volunteering tab if option is enabled for the conference

This commit is contained in:
Stella 2014-03-04 22:22:52 +02:00
parent 04e06ac251
commit 8f8824ecd6
7 changed files with 69 additions and 72 deletions

View file

@ -1,19 +1,27 @@
%table.table.table-striped.table-bordered.table-hover#speakertable
%thead
%th First Name
%th Last Name
%th Email
%th Mobile
%th Languages
%th Experience
%th Tshirt Size
%tbody
- @volunteers.each do |volunteer|
%tr
%td= volunteer.first_name
%td= volunteer.last_name
%td= volunteer.email
%td= volunteer.mobile
%td= volunteer.languages
%td= volunteer.volunteer_experience
%td= volunteer.tshirt
.well
%table.table.table-striped.table-bordered.table-hover#volunteerstable
%thead
%th First Name
%th Last Name
%th Email
%th Mobile
%th Languages
%th Experience
%th Tshirt Size
%tbody
- @volunteers.each do |volunteer|
%tr
%td= volunteer.first_name
%td= volunteer.last_name
%td= volunteer.email
%td= volunteer.mobile
%td= volunteer.languages
%td= volunteer.volunteer_experience
%td= volunteer.tshirt
:javascript
$(document).ready(function(){
$('#volunteerstable').dataTable({
"bPaginate": false
});
});

View file

@ -7,9 +7,11 @@
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
%br
%br
.span5
= f.input :use_vdays, :label => false
= dynamic_association :vdays, "Volunteer Days", f
.span5
= f.input :use_vpositions, :label => false
= dynamic_association :vpositions, "Volunteer positions", f
= f.input :use_volunteers, :label => "Enable Volunteering"
.row-fluid
.span6
= f.input :use_vdays, :label => false
= dynamic_association :vdays, "Volunteer Days", f
.span6
= f.input :use_vpositions, :label => false
= dynamic_association :vpositions, "Volunteer positions", f