Registration Component

This commit is contained in:
Gopesh Tulsyan 2014-05-23 21:21:11 +05:30
parent 643b8b173a
commit 5c9e0a279e
19 changed files with 172 additions and 36 deletions

View file

@ -1,7 +1,11 @@
<div class="nested-fields">
<%= f.inputs do %>
<%= f.input :title%>
<%= f.input :title %>
<%= f.input :url %>
<%= f.input :price_currency, collection: Money::Currency.table.map{ |x| x[1][:iso_code] }, label: 'Price Currency' %>
<%= f.input :amount, hint: 'Enter your price in only.For 100$ enter 100 and so on' %>
<%= f.input :description, hint: 'This will be displayed on supoorter level category in
splash page' %>
<%= remove_association_link :supporter_level, f %>
<% end %>
</div>

View file

@ -2,5 +2,6 @@
.col-md-8
= semantic_form_for(@conference, :url => admin_conference_supporter_level_path(@conference.short_title, @conference.supporter_levels)) do |f|
= f.input :use_supporter_levels, :label => false
= f.input :ticket_description, hint: 'This will be displayed in Tickets segment of splash page'
= dynamic_association :supporter_levels, "Supporter Levels", f
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}