Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///palladium.module///
- .state('palladium.requests', {
- url: '/requests',
- params: {id: null},
- views: {
- menuContent: {
- templateUrl: 'templates/palladium/home/requests.html',
- controller: 'jitter.palladium.AllRequestsController',
- resolve: {
- requests: ['jitter.palladium.VenueService', 'jitter.wolfram.Session', '$stateParams', function (venueService, sessionService, $stateParams) {
- return venueService.getAllFieldsRequests($stateParams.id);
- }]
- }
- }
- }
- })
- /// Controller list requests
- (function () {
- 'use strict';
- angular.module('jitter.palladium')
- .controller('jitter.palladium.AllRequestsController', ['$scope', 'requests', '$ionicModal', function ($scope, requests, $ionicModal) {
- $scope.requests = requests;
- console.log($scope.requests);
- $scope.showModal('request_pending', {scope: $scope});
- }]);
- })();
- /// requests-list.view
- <ion-view class="j-palladium-requests" title="Заявки">
- <ion-content>
- <div class="j-palladium-list-header">
- Заявки очакващи действие
- </div>
- <ul class="j-palladium-list">
- <li class="item row" ng-repeat="request in requests">
- <div class="col-60">
- <span class="j-palladium-label">
- От:
- </span>
- <div class="j-palladium-string-s">{{request.Requester.fullname}}</div>
- </div>
- <div class="col-40">
- <span class="j-palladium-label">
- Направена на:
- </span>
- <div class="j-palladium-string-s">
- <i class="ion-icon ion-android-time"></i> {{request.createdAt | date: 'HH:mm'}}
- </div>
- </div>
- <a ng-click="showModal('request_pending')" class="j-list-link">Виж заявката ></a>
- </li>
- </ul>
- </ion-content>
- </ion-view>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement