Integrate the splash page into the general layout
* Cleanup the CSS * Fix more views then you have fingers and toes * Introduce position(weight) for sponsor levels * Fix bootstrap/datatable integration
This commit is contained in:
parent
7acd16f923
commit
f2cdea4f1a
56 changed files with 1191 additions and 1266 deletions
|
|
@ -1,4 +1,29 @@
|
|||
.col-md-9
|
||||
= semantic_form_for(@conference, :url => admin_conference_sponsorship_level_path(@conference.short_title, @conference.sponsorship_levels)) do |f|
|
||||
= dynamic_association :sponsorship_levels, "Sponsorship Levels", f
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
%h1 Sponsorship Levels
|
||||
|
||||
- if @conference.sponsorship_levels.any?
|
||||
.row
|
||||
.col-md-12
|
||||
%table.table#sponsorship_levels
|
||||
%thead
|
||||
%th Title
|
||||
%th Position
|
||||
%th Actions
|
||||
%tbody
|
||||
- @conference.sponsorship_levels.each_with_index do |sponsorship_level, index|
|
||||
%tr
|
||||
%td
|
||||
= sponsorship_level.title
|
||||
%td
|
||||
= sponsorship_level.position
|
||||
.btn-group-vertical{role: "group"}
|
||||
= link_to(up_admin_conference_sponsorship_level_path(@conference.short_title, sponsorship_level.id), method: :patch, class: 'btn btn-default btn-xs') do
|
||||
%i.fa.fa-chevron-up
|
||||
= link_to(down_admin_conference_sponsorship_level_path(@conference.short_title, sponsorship_level.id), method: :patch, class: 'btn btn-default btn-xs') do
|
||||
%i.fa.fa-chevron-down
|
||||
%td
|
||||
= link_to 'Edit', edit_admin_conference_sponsorship_level_path(@conference.short_title, sponsorship_level.id),
|
||||
method: :get, class: 'btn btn-primary'
|
||||
= link_to 'Delete', admin_conference_sponsorship_level_path(@conference.short_title, sponsorship_level.id),
|
||||
method: :delete, class: 'btn btn-danger', data: { confirm: "Do you really want to delete the sponsorship level #{sponsorship_level.title}?" }
|
||||
|
||||
= link_to 'New Sponsorship Level', new_admin_conference_sponsorship_level_path(@conference.short_title), class: 'btn btn-success'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue