blob: 5cfdb56c8f4456d7956b4b69b57d7abb7e7a4f43 [file] [log] [blame]
Matteo Scandoloeccf4972016-06-13 11:32:05 -07001/**
2 * © OpenCORD
3 *
4 * Visit http://guide.xosproject.org/devguide/addview/ for more information
5 *
6 * Created by teone on 6/13/16.
7 */
8
9(function () {
10 'use strict';
11 angular.module('mCord')
12 .directive('profilesList', function ($uibModal) {
13 return {
14 restrict: 'E',
15 scope: {},
16 controllerAs: 'vm',
17 templateUrl: 'app/view/profiles-list/profiles-list.tpl.html',
18 controller: function ($log, Profile) {
19 Profile.query().$promise
20 .then((profiles) => {
21 this.profiles = profiles;
22 });
23
24 this.tableConfig = {
25 order: true,
26 filter: 'field',
27 columns: [
28 {
29 label: '#',
30 prop: 'Name',
31 link: item => `#/profile/${item.Name}`
32 },
33 {
34 label: 'DlSchedType',
35 prop: 'DlSchedType'
36 },
37 {
38 label: 'DlAllocRBRate',
39 prop: 'DlAllocRBRate'
40 },
41 {
42 label: 'UlSchedType',
43 prop: 'UlSchedType'
44 },
45 {
46 label: 'UlAllocRBRate',
47 prop: 'UlAllocRBRate'
48 },
49 {
50 label: 'Start',
51 prop: 'Start'
52 },
53 {
54 label: 'End',
55 prop: 'End'
56 }
57 ]
58 };
59 }
60 }
61 });
62})();
63