Last active
June 23, 2017 16:03
-
-
Save khriztianmoreno/84bda6abb8363dc7dc62 to your computer and use it in GitHub Desktop.
Export to PDF, MEAN Stack
This file contains 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
angular.module('SkytechApp') | |
.controller('JournalsListController', | |
['$scope', '$state', 'journalsService', | |
function ($scope, $state, journalsService) { | |
$scope.refresh = function () { | |
$scope.myPromise = journalsService.list() | |
.then(function (data) { | |
$scope.journals = data; | |
}); | |
}; | |
$scope.refresh(); | |
}]) |
This file contains 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
<table class="table footable m-b-none" ui-jq="footable" data-filter="#filter" data-page-size="5"> | |
<thead> | |
<tr> | |
<th data-toggle="true" data-type="alpha"><span translate="journals.NAME">Name</span></th> | |
<th data-hide="phone,tablet"><span translate="journals.table.MONDAY">Monday</span></th> | |
<th data-hide="phone,tablet"><span translate="journals.table.TUESDAY">Tuesday</span></th> | |
<th data-hide="phone,tablet"><span translate="journals.table.WEDNESDAY">Wensday</span></th> | |
<th data-hide="phone,tablet"><span translate="journals.table.THURSDAY">Thursday</span></th> | |
<th data-hide="phone,tablet"><span translate="journals.table.FRIDAY">Friday</span></th> | |
<th data-hide="phone,tablet"><span translate="journals.table.SATURDAY">Saturday</span></th> | |
<th data-hide="phone,tablet"><span translate="journals.table.SUNDAY">Sunday</span></th> | |
<th data-sort-ignore="true"></th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr ng-repeat="journal in journals"> | |
<td>{{::journal.Name}}</td> | |
<td>{{::journal.MondaySchedule}}</td> | |
<td>{{::journal.TuesdaySchedule}}</td> | |
<td>{{::journal.WednesdaySchedule}}</td> | |
<td>{{::journal.ThursdaySchedule}}</td> | |
<td>{{::journal.FridaySchedule}}</td> | |
<td>{{::journal.SaturdaySchedule}}</td> | |
<td>{{::journal.SundaySchedule}}</td> | |
<td> | |
<button ng-click="events.editJournal(journal.ID)" class="btn btn-xs btn-default"><i class="fa fa-pencil"></i></button> | |
</td> | |
</tr> | |
</tbody> | |
<tfoot class="hide-if-no-paging"> | |
<tr> | |
<td colspan="9" class="text-center"> | |
<ul class="pagination"></ul> | |
</td> | |
</tr> | |
</tfoot> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment