Count events and use datatables, put all tables into wells
This commit is contained in:
parent
3022e8b8e6
commit
39ca877e5e
4 changed files with 144 additions and 125 deletions
|
|
@ -1,6 +1,11 @@
|
||||||
.row-fluid
|
.row-fluid
|
||||||
.span12
|
.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
|
%thead
|
||||||
%th
|
%th
|
||||||
%b Title
|
%b Title
|
||||||
|
|
@ -51,3 +56,10 @@
|
||||||
- if event.transition_possible? :cancel
|
- if event.transition_possible? :cancel
|
||||||
%li= link_to "Cancel event", update_state_admin_conference_event_path(@conference.short_title, event, :transition => :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."
|
: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
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
People
|
People
|
||||||
- if @people
|
- if @people
|
||||||
= "(#{@people.length})"
|
= "(#{@people.length})"
|
||||||
|
.well
|
||||||
%table.table.table-striped.table-bordered.table-hover#people
|
%table.table.table-striped.table-bordered.table-hover#people
|
||||||
%thead
|
%thead
|
||||||
%th
|
%th
|
||||||
|
|
@ -27,6 +28,8 @@
|
||||||
:javascript
|
:javascript
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#people').dataTable( {
|
$('#people').dataTable( {
|
||||||
sPaginationType: "full_numbers"
|
"bScrollInfinite": true,
|
||||||
|
"bScrollCollapse": true,
|
||||||
|
"sScrollY": "200px"
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
= link_to "New Supporter", "#", :id => "new-supporter-button", :class => "btn btn-success"
|
= link_to "New Supporter", "#", :id => "new-supporter-button", :class => "btn btn-success"
|
||||||
.row-fluid
|
.row-fluid
|
||||||
.span12
|
.span12
|
||||||
|
%h2 Supporters
|
||||||
.well
|
.well
|
||||||
%table.table.table-striped#supporters
|
%table.table.table-striped#supporters
|
||||||
%thead
|
%thead
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
Users
|
Users
|
||||||
- if @users
|
- if @users
|
||||||
= "(#{@users.length})"
|
= "(#{@users.length})"
|
||||||
|
.well
|
||||||
%table.table.table-striped.table-bordered.table-hover#users
|
%table.table.table-striped.table-bordered.table-hover#users
|
||||||
%thead
|
%thead
|
||||||
%th
|
%th
|
||||||
|
|
@ -62,6 +63,8 @@
|
||||||
:javascript
|
:javascript
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#users').dataTable( {
|
$('#users').dataTable( {
|
||||||
sPaginationType: "full_numbers"
|
"bScrollInfinite": true,
|
||||||
|
"bScrollCollapse": true,
|
||||||
|
"sScrollY": "200px"
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue