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
2
app/views/admin/sponsorship_levels/_form.html.haml
Normal file
2
app/views/admin/sponsorship_levels/_form.html.haml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
= f.input :title
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<div class="nested-fields">
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= remove_association_link :sponsorship_level, f %>
|
||||
<% end %>
|
||||
</div>
|
||||
8
app/views/admin/sponsorship_levels/edit.html.haml
Normal file
8
app/views/admin/sponsorship_levels/edit.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
%h1 Editing Sponsorship Level
|
||||
|
||||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for @sponsorship_level, url: admin_conference_sponsorship_level_path(conference_id: @conference.short_title, id: @sponsorship_level.id) do |f|
|
||||
= render 'form', f: f
|
||||
|
||||
= link_to 'Back', admin_conference_sponsorship_levels_path
|
||||
|
|
@ -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'
|
||||
|
|
|
|||
7
app/views/admin/sponsorship_levels/new.html.haml
Normal file
7
app/views/admin/sponsorship_levels/new.html.haml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
%h1 New Sponsorship Level
|
||||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for @sponsorship_level, url: admin_conference_sponsorship_levels_path(conference_id: @conference.short_title) do |f|
|
||||
= render 'form', f: f
|
||||
|
||||
= link_to 'Back', admin_conference_sponsorship_levels_path
|
||||
Loading…
Add table
Add a link
Reference in a new issue