Minor features/fixes
* Fix admin sub menus * Show email address in people#index * Add User Area link in navbar * Smaller textareas on proposal#new so you don't have to scroll * Counting of registrations, users and people * Use datatables for users and people * Show event type on admin/events#show
This commit is contained in:
parent
a557f3750e
commit
3022e8b8e6
11 changed files with 151 additions and 21 deletions
|
|
@ -1,5 +1,11 @@
|
|||
%table.table.table-striped.table-bordered.table-hover
|
||||
%h2
|
||||
People
|
||||
- if @people
|
||||
= "(#{@people.length})"
|
||||
%table.table.table-striped.table-bordered.table-hover#people
|
||||
%thead
|
||||
%th
|
||||
%b Email
|
||||
%th
|
||||
%b Last Name
|
||||
%th
|
||||
|
|
@ -11,8 +17,16 @@
|
|||
%th
|
||||
- @people.each do |person|
|
||||
%tr
|
||||
%td= person.email
|
||||
%td= person.last_name
|
||||
%td= person.first_name
|
||||
%td= person.public_name
|
||||
%td= person.registrations.count
|
||||
%td= link_to "View", admin_person_path(person)
|
||||
%td= link_to "View", admin_person_path(person)
|
||||
|
||||
:javascript
|
||||
$(document).ready(function() {
|
||||
$('#people').dataTable( {
|
||||
sPaginationType: "full_numbers"
|
||||
} );
|
||||
} );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue