Adding more registration options, and starting work on supporter levels
This commit is contained in:
parent
61a02d17a3
commit
973913b3bf
25 changed files with 228 additions and 20 deletions
|
|
@ -4,6 +4,10 @@
|
|||
%li.active= link_to "Conference", "#"
|
||||
- else
|
||||
%li= link_to "Conference", admin_conference_path(@conference.short_title)
|
||||
- if activated == "Levels"
|
||||
%li.active= link_to "Supporter Levels", "#"
|
||||
- else
|
||||
%li= link_to "Supporter Levels", admin_conference_supporter_levels_path(@conference.short_title)
|
||||
- if activated == "Call for Papers"
|
||||
%li.active= link_to "Call for Papers", "#"
|
||||
- else
|
||||
|
|
@ -28,3 +32,8 @@
|
|||
%li.active= link_to "Emails", "#"
|
||||
- else
|
||||
%li= link_to "Emails", admin_conference_email_settings_path(@conference.short_title)
|
||||
- if activated == "Diet"
|
||||
%li.active= link_to "Dietary Choices", "#"
|
||||
- else
|
||||
%li= link_to "Dietary Choices", admin_conference_dietary_list_path(@conference.short_title)
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
<div class="nested-fields">
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= remove_association_link :dietary_choice, f %>
|
||||
<% end %>
|
||||
</div>
|
||||
9
app/views/admin/dietchoices/diets_list.html.haml
Normal file
9
app/views/admin/dietchoices/diets_list.html.haml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
.container-fluid
|
||||
.row-fluid
|
||||
.span3
|
||||
= render 'admin/conference/sidebar', :activated => "Diet"
|
||||
.span9
|
||||
= semantic_form_for(@conference, :url => admin_conference_dietary_update_path(@conference.short_title)) do |f|
|
||||
= f.input :use_dietary_choices, :label => false
|
||||
= dynamic_association :dietary_choices, "Dietary Choices", f
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<div class="nested-fields">
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title%>
|
||||
<%= f.input :url %>
|
||||
<%= remove_association_link :supporter_level, f %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
.container-fluid
|
||||
.row-fluid
|
||||
.span3
|
||||
= render 'admin/conference/sidebar', :activated => "Levels"
|
||||
.span9
|
||||
= semantic_form_for(@conference, :url => admin_conference_supporter_levels_path(@conference.short_title)) do |f|
|
||||
= f.input :use_supporter_levels, :label => false
|
||||
= dynamic_association :supporter_levels, "Supporter Levels", f
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue