View specs, added factories, fixed bugs

This commit is contained in:
Gopesh Tulsyan 2014-05-19 12:24:48 +05:30
parent 322ddd1501
commit d1e9bd06a6
33 changed files with 319 additions and 12 deletions

View file

@ -1,6 +1,6 @@
.row
.col-md-3
= render 'admin/conference/sidebar'
= render :partial => "sidebar"
.col-md-9
= semantic_form_for(@conference, :url => admin_conference_path(@conference.short_title),:html => {:multipart => true}) do |f|
= f.input :title, :hint => "The full name of the conference, such as 'OpenSUSE Conference 2013'"

View file

@ -2,6 +2,6 @@
.col-md-3
= render 'admin/conference/sidebar'
.col-md-9
= semantic_form_for(@conference, url: admin_conference_eventtypes_path) do |f|
= semantic_form_for(@conference, url: admin_conference_eventtypes_path(@conference.short_title, @conference.event_types)) do |f|
= dynamic_association :event_types, "Event Types", f
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}

View file

@ -2,6 +2,7 @@
<%= f.inputs do %>
<%= f.input :title %>
<%= f.input :description, :input_html => {:rows => 5} %>
<%= f.date_select :date, as: :string %>
<%= remove_association_link :social_event, f %>
<% end %>
</div>