Sponsors dashboard
Removed explicit rendering of sponsors
This commit is contained in:
parent
e38a654af1
commit
67dab025a9
9 changed files with 139 additions and 4 deletions
11
app/views/admin/sponsors/_sponsor_fields.html.erb
Normal file
11
app/views/admin/sponsors/_sponsor_fields.html.erb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<div class="nested-fields">
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :description %>
|
||||
<%= image_tag f.object.logo(:thumb) if !f.object.logo.blank? %>
|
||||
<%= f.input :logo %>
|
||||
<%= f.input :website_url %>
|
||||
<%= f.input :sponsorship_level, collection: @conference.sponsorship_levels %>
|
||||
<%= remove_association_link :sponsor, f %>
|
||||
<% end %>
|
||||
</div>
|
||||
5
app/views/admin/sponsors/index.html.haml
Normal file
5
app/views/admin/sponsors/index.html.haml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for(@conference, :url => admin_conference_sponsor_path(@conference.short_title, @conference.sponsors)) do |f|
|
||||
= dynamic_association :sponsors, "Sponsors", f
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
|
|
@ -45,10 +45,13 @@
|
|||
%ul.nav.nav-stacked.nav-pills.small.collapse.subNav
|
||||
%li{:class=> active_nav_li(admin_conference_rooms_path(@conference.short_title))}
|
||||
= link_to 'Rooms', admin_conference_rooms_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_sponsorship_levels_path(@conference.short_title))}
|
||||
%li{:class=> "#{active_nav_li(admin_conference_sponsorship_levels_path(@conference.short_title))} myAccordion" }
|
||||
= link_to(admin_conference_sponsorship_levels_path(@conference.short_title)) do
|
||||
%span.glyphicon.glyphicon-star
|
||||
Sponsorship Levels
|
||||
%ul.nav.nav-stacked.nav-pills.small.collapse.subNav
|
||||
%li{:class=> active_nav_li(admin_conference_sponsors_path(@conference.short_title))}
|
||||
= link_to 'Sponsors', admin_conference_sponsors_path(@conference.short_title)
|
||||
%li{ class: active_nav_li(admin_conference_supporter_levels_path(@conference.short_title)) }
|
||||
= link_to(admin_conference_supporter_levels_path(@conference.short_title)) do
|
||||
Supporter Levels
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue