2013-02-03 18:12:44 +01:00
|
|
|
#new-supporter-dialog
|
2014-03-28 00:11:08 +05:30
|
|
|
= semantic_form_for :supporter_registration, :html => {:id => "supporter-add-form"} do |f|
|
2013-02-03 18:12:44 +01:00
|
|
|
= f.input :name, :label => "Supporter Name"
|
|
|
|
|
= f.input :email, :label => "Supporter Email"
|
|
|
|
|
= f.input :supporter_level_id, :as => :select, :collection => @conference.supporter_levels
|
|
|
|
|
= f.input :code, :label => "Confirmation code"
|
|
|
|
|
= f.input :code_is_valid, :as => :boolean, :label => false
|
|
|
|
|
= f.action :submit, :button_html => { :value => "Save", :class => "btn btn-primary" }
|
|
|
|
|
|
2014-03-17 16:36:32 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2013-02-03 18:12:44 +01:00
|
|
|
.pull-right{:style=>"margin-top:20px; margin-bottom:20px;"}
|
|
|
|
|
= link_to "New Supporter", "#", :id => "new-supporter-button", :class => "btn btn-success"
|
2014-03-17 16:36:32 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2013-05-07 15:09:13 +02:00
|
|
|
%h2 Supporters
|
2013-02-03 18:12:44 +01:00
|
|
|
.well
|
|
|
|
|
%table.table.table-striped#supporters
|
|
|
|
|
%thead
|
|
|
|
|
%th
|
|
|
|
|
Name
|
|
|
|
|
%th
|
|
|
|
|
Email
|
|
|
|
|
%th
|
|
|
|
|
Level
|
|
|
|
|
%th
|
|
|
|
|
Code
|
|
|
|
|
%th
|
|
|
|
|
Code Valid
|
|
|
|
|
%tbody
|
2013-10-22 14:16:20 +02:00
|
|
|
- @conference.supporter_registrations.each do |u|
|
|
|
|
|
%tr
|
|
|
|
|
%td= u.name
|
|
|
|
|
%td= u.email
|
2014-03-06 18:08:00 +02:00
|
|
|
%td= u.supporter_level.title if u.supporter_level
|
2013-10-22 14:16:20 +02:00
|
|
|
%td= u.code
|
2013-10-22 15:56:44 +02:00
|
|
|
%td= u.code_is_valid
|