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"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue