diff --git a/angular_app/events-list.html b/angular_app/events-list.html index 58e9c7f..aca95fc 100644 --- a/angular_app/events-list.html +++ b/angular_app/events-list.html @@ -30,6 +30,7 @@ {{'Event' | translate}} + {{'Attendees / Registered' | translate}} {{'Delete' | translate}} @@ -37,9 +38,12 @@ {{event.title}} -

{{'Begins:' | translate}} {{event['begin-date'] | date:'fullDate' }} {{event['begin-time'] | date:'HH:mm' }}
+

{{'Begins:' | translate}} {{event['begin-date'] | date:'fullDate'}} {{event['begin-time'] | date:'HH:mm'}}
{{'Ends:' | translate}} {{event['end-date'] | date:'fullDate' }} {{event['end-time'] | date:'HH:mm'}}

+ +

{{attendeesNr}} / {{event.persons.length || 0}}

+ diff --git a/angular_app/js/filters.js b/angular_app/js/filters.js index be956c1..1315ede 100644 --- a/angular_app/js/filters.js +++ b/angular_app/js/filters.js @@ -64,3 +64,19 @@ eventManApp.filter('splittedFilter', ['$filter', }] ); + +/* Filter that returns only the attendees at an event. */ +eventManApp.filter('attendeesFilter', ['$filter', + function($filter) { + return function(inputArray) { + var returnArray = []; + for (var x=0; x < inputArray.length; x++) { + if (inputArray[x]['attended']) { + returnArray.push(inputArray[x]); + } + } + return returnArray; + }; + }] +); + diff --git a/static/css/eventman.css b/static/css/eventman.css index fabc426..2ce7a99 100644 --- a/static/css/eventman.css +++ b/static/css/eventman.css @@ -1,4 +1,3 @@ - /* nav-bar padding */ body { padding-top: 70px; } @@ -37,6 +36,11 @@ body { padding-top: 70px; } .min200 { min-width: 200px; } .min250 { min-width: 250px; } +/* horizontally center */ +.hcenter { + text-align: center; +} + /* vertically center */ .vcenter { vertical-align: middle;