Created
September 12, 2017 14:00
-
-
Save guidouil/68e03b5655c3c8b97fe2e195b9574707 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Tabular from 'meteor/aldeed:tabular'; | |
import { Template } from 'meteor/templating'; | |
import moment from 'moment'; | |
import { Meteor } from 'meteor/meteor'; | |
import Employees from '/imports/api/employees/employees.js'; | |
TabularTables.customerEmployees = new Tabular.Table({ | |
name: 'customerEmployees', | |
collection: 'Meteor.users', | |
pub: 'customerEmployees', | |
columns: [ | |
{ | |
data: 'emails[0].address', | |
title: 'Emails de vos salariés', | |
}, | |
{ | |
data: 'status.lastlogin.date', | |
title: 'Dernier accès', | |
render(val, type, doc) { | |
if (val instanceof Date) { | |
return moment(val).format('D/M/Y'); | |
} | |
return ''; | |
}, | |
}, | |
{ data: 'optionId', title: 'Choix du salarié' }, | |
{ data: 'beneficiaries.length', title: 'Bénéficiaires' }, | |
{ data: 'manager', title: 'Etat du BIA' }, | |
], | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment