Count events and use datatables, put all tables into wells

This commit is contained in:
Henne Vogelsang 2013-05-07 15:09:13 +02:00 committed by Henne Vogelsang
parent 3022e8b8e6
commit 39ca877e5e
4 changed files with 144 additions and 125 deletions

View file

@ -1,6 +1,11 @@
.row-fluid
.span12
%table.table.table-striped.table-bordered.table-hover
%h2
Events
- if @events
= "(#{@events.length})"
.well
%table.table.table-striped.table-bordered.table-hover#events
%thead
%th
%b Title
@ -51,3 +56,10 @@
- if event.transition_possible? :cancel
%li= link_to "Cancel event", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :cancel),
:method => :put, :hint => "Mark this event as cancelled. Usually this means that the speakers had to cancel their appearance."
:javascript
$(document).ready(function() {
$('#events').dataTable( {
"bPaginate": false
} );
} );

View file

@ -2,7 +2,8 @@
People
- if @people
= "(#{@people.length})"
%table.table.table-striped.table-bordered.table-hover#people
.well
%table.table.table-striped.table-bordered.table-hover#people
%thead
%th
%b Email
@ -27,6 +28,8 @@
:javascript
$(document).ready(function() {
$('#people').dataTable( {
sPaginationType: "full_numbers"
"bScrollInfinite": true,
"bScrollCollapse": true,
"sScrollY": "200px"
} );
} );

View file

@ -13,6 +13,7 @@
= link_to "New Supporter", "#", :id => "new-supporter-button", :class => "btn btn-success"
.row-fluid
.span12
%h2 Supporters
.well
%table.table.table-striped#supporters
%thead

View file

@ -5,6 +5,7 @@
Users
- if @users
= "(#{@users.length})"
.well
%table.table.table-striped.table-bordered.table-hover#users
%thead
%th
@ -62,6 +63,8 @@
:javascript
$(document).ready(function() {
$('#users').dataTable( {
sPaginationType: "full_numbers"
"bScrollInfinite": true,
"bScrollCollapse": true,
"sScrollY": "200px"
} );
} );