mirror of https://github.com/akveo/blur-admin
Members lisiting and details
parent
89bb2d504e
commit
ebf208efbf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -6,23 +6,22 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('BlurAdmin.pages.teams.members')
|
||||
.controller('MembersTabCtrl', MembersTabCtrl);
|
||||
.controller('MembersTabCtrl', MembersTabCtrl);
|
||||
|
||||
/** @ngInject */
|
||||
function MembersTabCtrl($scope, fileReader, $filter, $uibModal) {
|
||||
$scope.picture = $filter('profilePicture')('Nasta');
|
||||
|
||||
$scope.removePicture = function () {
|
||||
$scope.picture = $filter('appImage')('theme/no-photo.png');
|
||||
$scope.noPicture = true;
|
||||
};
|
||||
|
||||
$scope.uploadPicture = function () {
|
||||
var fileInput = document.getElementById('uploadFile');
|
||||
fileInput.click();
|
||||
function MembersTabCtrl(composeModal, mailMessages) {
|
||||
|
||||
var vm = this;
|
||||
vm.navigationCollapsed = true;
|
||||
vm.showCompose = function(subject, to , text){
|
||||
composeModal.open({
|
||||
subject : subject,
|
||||
to: to,
|
||||
text: text
|
||||
})
|
||||
};
|
||||
|
||||
vm.tabs = mailMessages.getTabs();
|
||||
}
|
||||
|
||||
})();
|
|
@ -0,0 +1,26 @@
|
|||
<div class="compose-header">
|
||||
<span>
|
||||
New message
|
||||
</span>
|
||||
<span class="header-controls">
|
||||
<i class="ion-minus-round"></i>
|
||||
<i class="ion-arrow-resize"></i>
|
||||
<i ng-click="$dismiss()" class="ion-close-round"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<input type="text" class="form-control compose-input default-color" placeholder="To" ng-model="boxCtrl.to">
|
||||
<input type="text" class="form-control compose-input default-color" placeholder="Subject" ng-model="boxCtrl.subject">
|
||||
<div class="compose-container">
|
||||
<text-angular-toolbar ta-toolbar-class="toolbarMain" name="toolbarMain" ta-toolbar="[['h1','h2','h3','bold','italics', 'underline', 'justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull']]"></text-angular-toolbar>
|
||||
<text-angular name="htmlcontent" ta-target-toolbars='toolbarMain,toolbarFooter' ng-model="boxCtrl.text"></text-angular>
|
||||
</div>
|
||||
</div>
|
||||
<div class="compose-footer clearfix">
|
||||
<button type="button" ng-click="$dismiss()" class="btn btn-send">Send</button>
|
||||
<text-angular-toolbar ta-toolbar-class="toolbarFooter" name="toolbarFooter" ta-toolbar="[['insertLink', 'insertImage', 'html', 'quote','insertVideo']]"></text-angular-toolbar>
|
||||
<div class="footer-controls">
|
||||
<i class="footer-control-first compose-footer-icon ion-arrow-down-b"></i>
|
||||
<i ng-click="$dismiss()" class="compose-footer-icon ion-android-delete"></i>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* @author a.demeshko
|
||||
* created on 24/12/15
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('BlurAdmin.pages.components.mail')
|
||||
.controller('composeBoxCtrl', composeBoxCtrl);
|
||||
|
||||
/** @ngInject */
|
||||
function composeBoxCtrl(subject, to, text) {
|
||||
var vm = this;
|
||||
vm.subject = subject;
|
||||
vm.to = to;
|
||||
vm.text = text;
|
||||
}
|
||||
})();
|
|
@ -0,0 +1,36 @@
|
|||
/**
|
||||
* @author a.demeshko
|
||||
* created on 12/24/15
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('BlurAdmin.pages.components.mail')
|
||||
.service('composeModal', composeModal);
|
||||
|
||||
/** @ngInject */
|
||||
function composeModal($uibModal) {
|
||||
this.open = function(options){
|
||||
return $uibModal.open({
|
||||
animation: false,
|
||||
templateUrl: 'app/pages/components/mail/composeBox/compose.html',
|
||||
controller: 'composeBoxCtrl',
|
||||
controllerAs: 'boxCtrl',
|
||||
size: 'compose',
|
||||
resolve: {
|
||||
subject: function () {
|
||||
return options.subject;
|
||||
},
|
||||
to: function () {
|
||||
return options.to;
|
||||
},
|
||||
text: function () {
|
||||
return options.text;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
})();
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* @author a.demeshko
|
||||
* created on 28.12.2015
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('BlurAdmin.pages.teams.members')
|
||||
.controller('MemberDetailCtrl', MemberDetailCtrl);
|
||||
|
||||
/** @ngInject */
|
||||
function MemberDetailCtrl($stateParams, mailMessages) {
|
||||
var vm = this;
|
||||
vm.mail = mailMessages.getMessageById($stateParams.id);
|
||||
vm.label = $stateParams.label;
|
||||
}
|
||||
|
||||
})();
|
|
@ -0,0 +1,82 @@
|
|||
<div class="message-container" ng-class="{'expanded': tabCtrl.navigationCollapsed}">
|
||||
<div class="message">
|
||||
<div class="row">
|
||||
<div class="toggle-navigation-container detail-page">
|
||||
<a href class="collapse-navigation-link ion-navicon"
|
||||
ng-click="tabCtrl.navigationCollapsed=!tabCtrl.navigationCollapsed"></a>
|
||||
</div>
|
||||
<button ui-sref="teams.members.label({label : detailCtrl.label})" type="button" class="back-button btn btn-default btn-with-icon"><i
|
||||
class="ion-chevron-left"></i>Back
|
||||
</button>
|
||||
</div>
|
||||
<div class="person-info row">
|
||||
<div class="col-lg-4 col-md-12 no-padding">
|
||||
<img ng-src="{{detailCtrl.mail.name.split(' ')[0] | profilePicture}}" class="human-picture">
|
||||
|
||||
<div class="name">
|
||||
<h2 class="name-h">{{detailCtrl.mail.name.split(' ')[0]}}</h2>
|
||||
|
||||
<h2 class="name-h second-name">{{detailCtrl.mail.name.split(' ')[1]}}</h2>
|
||||
|
||||
<div>
|
||||
<span class="mail-tag tag label {{detailCtrl.mail.tag}}">{{detailCtrl.mail.tag}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-6 col-xs-12 no-padding">
|
||||
<div class="contact-info phone-email">
|
||||
<div>
|
||||
<i class="ion-iphone"></i>
|
||||
<span class="phone">777-777-7777</span>
|
||||
</div>
|
||||
<div>
|
||||
<i class="ion-email"></i>
|
||||
<span class="email">{{detailCtrl.mail.email}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6 col-xs-12 no-padding">
|
||||
<div class="contact-info position-address">
|
||||
<div>
|
||||
<span class="position">{{detailCtrl.mail.position}}</span>
|
||||
</div>
|
||||
<div>
|
||||
<span class="address">12 Nezavisimosti st. Vilnius, Lithuania</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
<div class="message-details">
|
||||
<span class="subject">{{detailCtrl.mail.subject}} </span>
|
||||
<span class="date">• {{detailCtrl.mail.date | date : 'h:mm a MMMM d '}}</span>
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
<div ng-bind-html="detailCtrl.mail.body" class="message-body">
|
||||
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
<div class="attachment" ng-show="detailCtrl.mail.attachment">
|
||||
<span class="file-links">1 Attachment - <a href>View</a> | <a href>Download</a></span>
|
||||
<div>
|
||||
<i class="file-icon ion-document"></i>
|
||||
<span class="file-name">{{detailCtrl.mail.attachment}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line" ng-show="detailCtrl.mail.attachment"></div>
|
||||
<div class="answer-container">
|
||||
<button type="button" class="btn btn-with-icon" ng-click="tabCtrl.showCompose(detailCtrl.mail.subject,detailCtrl.mail.email,'')"><i class="ion-reply"></i>Reply</button>
|
||||
<button type="button" class="btn btn-with-icon" ng-click="tabCtrl.showCompose(detailCtrl.mail.subject,'',detailCtrl.mail.body)"><i class="ion-forward"></i>Forward</button>
|
||||
<button type="button" class="btn btn-with-icon"><i class="ion-printer"></i>Print</button>
|
||||
<button type="button" class="btn btn-with-icon"><i class="ion-android-remove-circle"></i>Spam</button>
|
||||
<button type="button" class="btn btn-with-icon"><i class="ion-android-delete"></i>Delete</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div ng-show="!detailCtrl.mail">
|
||||
<h5 ng-class="text-center">Nothing to show</h5>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* @author a.demeshko
|
||||
* created on 28.12.2015
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('BlurAdmin.pages.teams.members')
|
||||
.controller('MembersListCtrl', MembersListCtrl);
|
||||
|
||||
/** @ngInject */
|
||||
function MembersListCtrl($stateParams, mailMessages) {
|
||||
var vm = this;
|
||||
console.log($stateParams.label);
|
||||
vm.messages = mailMessages.getMessagesByLabel($stateParams.label);
|
||||
vm.label = $stateParams.label;
|
||||
}
|
||||
|
||||
})();
|
|
@ -0,0 +1,59 @@
|
|||
<div class="side-message-navigation" ng-class="{'expanded': tabCtrl.navigationCollapsed}">
|
||||
<div class="mail-messages-control side-message-navigation-item">
|
||||
<div class="toggle-navigation-container">
|
||||
<a href class="collapse-navigation-link ion-navicon"
|
||||
ng-click="tabCtrl.navigationCollapsed=!tabCtrl.navigationCollapsed"></a>
|
||||
</div>
|
||||
<label class="checkbox-inline custom-checkbox nowrap">
|
||||
<input type="checkbox" id="inlineCheckbox01" value="option1">
|
||||
<span class="select-all-label">Select All</span>
|
||||
</label>
|
||||
<button type="button" class="btn btn-icon refresh-button"><i class="ion-refresh"></i></button>
|
||||
<div class="btn-group" uib-dropdown>
|
||||
<button type="button" class="btn more-button" uib-dropdown-toggle>
|
||||
More <span class="caret"></span>
|
||||
</button>
|
||||
<ul uib-dropdown-menu>
|
||||
<li><a href>Action</a></li>
|
||||
<li><a href>Another action</a></li>
|
||||
<li><a href>Something else here</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href>Separated link</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="messages">
|
||||
<table>
|
||||
<tr ng-repeat="m in listCtrl.messages track by m.id | orderBy:'-date'"
|
||||
class="side-message-navigation-item little-human shineHover {{m.tag}}">
|
||||
<td class="check-td">
|
||||
<div class="mail-checkbox">
|
||||
<label class="checkbox-inline custom-checkbox nowrap">
|
||||
<input type="checkbox">
|
||||
<span></span>
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="photo-td" ui-sref="teams.members.detail({id: m.id, label: listCtrl.label})"><img ng-src="{{m.name.split(' ')[0] | profilePicture}}" class="little-human-picture"></td>
|
||||
<td ui-sref="teams.members.detail({id: m.id, label: listCtrl.label})">
|
||||
<div class="name-container">
|
||||
<div><span class="name">{{m.name}}</span></div>
|
||||
<div><span class="tag label label-primary {{m.tag}}">{{m.tag}}</span></div>
|
||||
</div>
|
||||
</td>
|
||||
<td ui-sref="teams.members.detail({id: m.id, label: listCtrl.label})">
|
||||
<div class="additional-info">
|
||||
<span class="subject"> {{m.email}}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{m.position}}</span>
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-primary editable-table-button btn-xs" ng-click="rowform.$show()">Edit</button>
|
||||
<button class="btn btn-danger editable-table-button btn-xs" ng-click="removeUser($index)">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
|
@ -1,88 +1,42 @@
|
|||
<div id="surveys" class="row">
|
||||
<div id="sidebar" class="col-md-4 col-lg-4">
|
||||
<uib-accordion>
|
||||
<uib-accordion-group panel-class="bootstrap-panel accordion-panel panel-default">
|
||||
<uib-accordion-heading>
|
||||
Survey Builder <i class="fa pull-right fa-gavel"></i>
|
||||
</uib-accordion-heading>
|
||||
<section class="col-md-12 col-lg-12 no-gutter">
|
||||
<button ng-click="addElement('multiple')" progress-button="progressFunction()" pb-style="flip-open" class="btn btn-default btn-with-icon col-md-12">
|
||||
<i class="fa fa-list"></i>Members
|
||||
</button>
|
||||
<button progress-button="progressFunction()" pb-style="flip-open" class="btn btn-default btn-with-icon col-md-12">
|
||||
<i class="fa fa-star"></i>Lists
|
||||
</button>
|
||||
</section>
|
||||
</uib-accordion-group>
|
||||
</uib-accordion>
|
||||
</div>
|
||||
<div class="row mail-client-container transparent">
|
||||
<div class="col-md-12">
|
||||
<div ba-panel ba-panel-class="xmedium-panel mail-panel">
|
||||
<div class="letter-layout">
|
||||
<div class="mail-navigation-container" ng-class="{'expanded' : !tabCtrl.navigationCollapsed}">
|
||||
<div class="text-center">
|
||||
<button type="button" class="btn btn-default compose-button" ng-click="tabCtrl.showCompose('','','')">
|
||||
New member
|
||||
</button>
|
||||
</div>
|
||||
<div ng-repeat="t in tabCtrl.tabs" ui-sref-active="active" class="mail-navigation"
|
||||
ui-sref="teams.members.label({label: t.label})" ng-click="selectTab(t.label)">
|
||||
{{t.name}}<span class="new-mails" ng-show="t.newMails">{{t.newMails}}</span>
|
||||
</div>
|
||||
<div class="labels">
|
||||
<div class="labels-title">
|
||||
|
||||
|
||||
<div class="col-md-8 col-lg-8">
|
||||
<div id="survey-builder" class="panel panel-default bootstrap-panel">
|
||||
<div class="panel-heading"><h2 class="panel-title pull-left">Survey Title</h2></div>
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group row clearfix">
|
||||
<label for="inputFirstName" class="col-sm-3 control-label">Picture</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<div class="userpic">
|
||||
<div class="userpic-wrapper">
|
||||
<img ng-src="{{ picture }}" ng-click="uploadPicture()">
|
||||
</div>
|
||||
<i class="ion-ios-close-outline" ng-click="removePicture()" ng-if="!noPicture"></i>
|
||||
<a href class="change-userpic" ng-click="uploadPicture()">Change Profile Picture</a>
|
||||
<input type="file" ng-show="false" id="uploadFile" ng-file-select="onFileSelect($files)">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group row clearfix">
|
||||
<label for="inputFirstName" class="col-sm-3 control-label">First Name</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="inputFirstName" placeholder="" value="Anastasiya">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row clearfix">
|
||||
<label for="inputLastName" class="col-sm-3 control-label">Last Name</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="inputLastName" placeholder="" value="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group row clearfix">
|
||||
<label class="col-sm-3 control-label">Department</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<select class="form-control" selectpicker>
|
||||
<option>Web Development</option>
|
||||
<option>System Development</option>
|
||||
<option>Sales</option>
|
||||
<option>Human Resources</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row clearfix">
|
||||
<label for="inputOccupation" class="col-sm-3 control-label">Occupation</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="inputOccupation" placeholder="" value="Front End Web Developer">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="labels-container">
|
||||
<div class="label-item">
|
||||
<span class="tag label work">Work</span>
|
||||
</div>
|
||||
<div class="label-item">
|
||||
<span class="tag label family">Family</span>
|
||||
</div>
|
||||
<div class="label-item">
|
||||
<span class="tag label friend">Friend</span>
|
||||
</div>
|
||||
<div class="label-item">
|
||||
<span class="tag label study">Study</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="add-label-container">
|
||||
<i class="ion-plus-round"></i><span class="label-input-stub">Add new label</span>
|
||||
</div>
|
||||
</div>
|
||||
<ui-view></ui-view>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -6,17 +6,35 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('BlurAdmin.pages.teams.members', [])
|
||||
.directive('tagInput', tagInput);
|
||||
.config(routeConfig);
|
||||
|
||||
function tagInput() {
|
||||
return {
|
||||
restrict: 'A',
|
||||
link: function( $scope, elem, attr) {
|
||||
$(elem).tagsinput({
|
||||
tagClass: 'label label-' + attr.tagInput
|
||||
/** @ngInject */
|
||||
function routeConfig($stateProvider,$urlRouterProvider) {
|
||||
$stateProvider
|
||||
.state('teams.members', {
|
||||
url: '/members',
|
||||
abstract: true,
|
||||
templateUrl: 'app/pages/teams/members/members.html',
|
||||
controller: "MembersTabCtrl",
|
||||
controllerAs: "tabCtrl",
|
||||
title: 'Members',
|
||||
sidebarMeta: {
|
||||
order: 0,
|
||||
},
|
||||
}).state('teams.members.label', {
|
||||
url: '/:label',
|
||||
templateUrl: 'app/pages/teams/members/list/membersList.html',
|
||||
title: 'Mail',
|
||||
controller: "MailListCtrl",
|
||||
controllerAs: "listCtrl"
|
||||
}).state('teams.members.detail', {
|
||||
url: '/:label/:id',
|
||||
templateUrl: 'app/pages/teams/members/detail/memberDetail.html',
|
||||
title: 'Detail',
|
||||
controller: "MemberDetailCtrl",
|
||||
controllerAs: "detailCtrl"
|
||||
});
|
||||
}
|
||||
};
|
||||
$urlRouterProvider.when('/teams/members','/teams/members/inbox');
|
||||
}
|
||||
|
||||
})();
|
||||
|
|
|
@ -0,0 +1,250 @@
|
|||
/**
|
||||
* @author a.demeshko
|
||||
* created on 12/29/15
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('BlurAdmin.pages.teams.members')
|
||||
.service('membersMessages', membersMessages);
|
||||
|
||||
/** @ngInject */
|
||||
function membersMessages($sce) {
|
||||
var messages = [
|
||||
{
|
||||
"id": "4563faass",
|
||||
"name": "Nasta Linnie",
|
||||
"subject": "Great text",
|
||||
"date": "2015-08-28T07:57:09",
|
||||
"body": $sce.trustAsHtml("<p>Hey John, </p><p>Check out this cool text.</p>"),
|
||||
"pic": "img/Nasta.png",
|
||||
"email": "petraramsey@mail.com",
|
||||
"attachment": "poem.txt",
|
||||
"position": "Great Employee",
|
||||
"tag": "friend",
|
||||
"labels": ['inbox']
|
||||
},
|
||||
{
|
||||
"id": "4563fdfvd",
|
||||
"name": "Nasta Linnie",
|
||||
"subject": "Lores ipsum",
|
||||
"date": "2015-11-19T03:30:45",
|
||||
"important": false,
|
||||
"body": $sce.trustAsHtml("<p>Hey John, </p><br><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ex mauris, ultrices vel lectus quis, scelerisque hendrerit ipsum. Suspendisse ullamcorper turpis neque, eget dapibus magna placerat ac. Suspendisse rhoncus ligula ac mi tempus varius ut sed lacus. Sed et commodo nulla, et placerat leo. Nam rhoncus vulputate sem non pharetra. Praesent fringilla massa in laoreet convallis. Aliquam lobortis dui a congue facilisis. Aenean dapibus semper semper. Quisque aliquam, nibh dapibus interdum condimentum, ex velit tempor tortor, at vestibulum magna leo quis leo. Morbi pulvinar varius erat ac rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In hac habitasse platea dictumst.</p>" +
|
||||
"<br><p>Cras rhoncus quam ipsum, vel dignissim nisl egestas sed. Aliquam erat volutpat. Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>"),
|
||||
"pic": "img/Nasta.png",
|
||||
"email": "petraramsey@mail.com",
|
||||
"position": "Great Employee",
|
||||
"tag": "study",
|
||||
"labels": ['inbox']
|
||||
},
|
||||
{
|
||||
"id": "4563zxcss",
|
||||
"name": "Nasta Linnie",
|
||||
"subject": "Lores ipsum",
|
||||
"date": "2015-10-19T03:30:45",
|
||||
"important": false,
|
||||
"body": $sce.trustAsHtml("<p>Hey Nasta, </p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>"),
|
||||
"pic": "img/Nasta.png",
|
||||
"email": "petraramsey@mail.com",
|
||||
"position": "Great Employee",
|
||||
"tag": "work",
|
||||
"labels": ['sent', 'important']
|
||||
},
|
||||
{
|
||||
"id": "8955sddf",
|
||||
"name": "Nick Cat",
|
||||
"subject": "New Design",
|
||||
"date": "2015-05-05T12:59:45",
|
||||
"body": $sce.trustAsHtml("<p>Hey John, Consectetur adipiscing elit</p><br>" +
|
||||
"<p>Cras rhoncus quam ipsum, vel dignissim nisl egestas sed. Aliquam erat volutpat. Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>"),
|
||||
"pic": "img/Nick.png",
|
||||
"email": "barlowshort@mail.com",
|
||||
"position": "Graphical designer",
|
||||
"attachment": "design.psd",
|
||||
"tag": "work",
|
||||
"labels": ['inbox']
|
||||
},
|
||||
{
|
||||
"id": "8955sdfcc",
|
||||
"name": "Nick Cat",
|
||||
"subject": "Gift card",
|
||||
"date": "2015-07-18T10:19:01",
|
||||
"body": $sce.trustAsHtml("<p>Hey John, </p><br><p>Consectetur adipiscing elit, Lorem ipsum dolor sit amet</p>"),
|
||||
"pic": "img/Nick.png",
|
||||
"email": "barlowshort@mail.com",
|
||||
"position": "Graphical designer",
|
||||
"tag": "study",
|
||||
"labels": ['inbox']
|
||||
},
|
||||
{
|
||||
"id": "8955asewf",
|
||||
"name": "Nick Cat",
|
||||
"subject": "Some news",
|
||||
"date": "2015-09-23T03:04:10",
|
||||
"body": $sce.trustAsHtml("<p>Hey John, </p><br><p>Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>"),
|
||||
"pic": "img/Nick.png",
|
||||
"email": "barlowshort@mail.com",
|
||||
"position": "Graphical designer",
|
||||
"tag": "work",
|
||||
"labels": ['inbox', 'important']
|
||||
},
|
||||
{
|
||||
"id": "2334uudsa",
|
||||
"name": "Kostya Danovsky",
|
||||
"subject": "Street Art",
|
||||
"date": "2015-11-22T10:05:09",
|
||||
"body": $sce.trustAsHtml("<p>Hey John, </p><p>Aliquam eu facilisis eros, quis varius est.</p>" +
|
||||
"<p>Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.</p>" +
|
||||
"<p>Lorem ipsum dolor sit amet! Nullam imperdiet justo a ipsum laoreet euismod.</p>" +
|
||||
"<br><p>Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed." +
|
||||
"Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic</p>"),
|
||||
"pic": "img/Kostya.png",
|
||||
"email": "schwart@mail.com",
|
||||
"position": "Technical Chef",
|
||||
"attachment": "file.doc",
|
||||
"tag": "family",
|
||||
"labels": ['inbox', 'important']
|
||||
},
|
||||
{
|
||||
"id": "2334aefvv",
|
||||
"name": "Kostya Danovsky",
|
||||
"subject": "New product",
|
||||
"date": "2015-06-22T06:26:10",
|
||||
"body": $sce.trustAsHtml("<p>Hello John, </p><p>Lorem ipsum dolor sit amet!</p>" +
|
||||
"<p>Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.</p>" +
|
||||
"<p>Aliquam eu facilisis eros, quis varius est. Nullam imperdiet justo a ipsum laoreet euismod.</p>" +
|
||||
"<br><p>Nulla facilisi. Nulla congue, arcu eget blandit lacinia, leo ante ullamcorper lectus, vel pulvinar justo ipsum vitae justo." +
|
||||
"Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed. Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic</p>"),
|
||||
"pic": "img/Kostya.png",
|
||||
"email": "schwart@mail.com",
|
||||
"position": "Technical Chef",
|
||||
"tag": "family",
|
||||
"labels": ['inbox', 'important']
|
||||
},
|
||||
{
|
||||
"id": "2334cvdss",
|
||||
"name": "Kostya Danovsky",
|
||||
"subject": "Old product",
|
||||
"date": "2015-06-22T06:26:10",
|
||||
"body": $sce.trustAsHtml("<p>Hello John, </p>" +
|
||||
"<p>Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.</p>" +
|
||||
"<br>"+
|
||||
"<p>Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed. Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic</p>"),
|
||||
"pic": "img/Kostya.png",
|
||||
"email": "schwart@mail.com",
|
||||
"position": "Technical Chef",
|
||||
"tag": "study",
|
||||
"labels": ['trash']
|
||||
},
|
||||
{
|
||||
"id": "8223xzxfn",
|
||||
"name": "Andrey Hrabouski",
|
||||
"subject": "Skype moji",
|
||||
"date": "2015-07-16T06:47:53",
|
||||
"body": $sce.trustAsHtml("<p>Hello John, </p><p>Aliquam sodales sem in nibh pellentesque</p>" +
|
||||
"<p>Lorem ipsum dolor I find moji in skype sit amet!.</p>"),
|
||||
"pic": "img/Andrey.png",
|
||||
"email": "lakeishaphillips@mail.com",
|
||||
"position": "Mobile Developer",
|
||||
"tag": 'family',
|
||||
"labels": ['trash']
|
||||
},
|
||||
{
|
||||
"id": "8223sdffn",
|
||||
"name": "Andrey Hrabouski",
|
||||
"subject": "My App",
|
||||
"date": "2015-06-20T07:05:02",
|
||||
"body": $sce.trustAsHtml("<p>Hey Vlad. </p><p>Lorem ipsum dolor sit amet!</p>" +
|
||||
"<p>Consectetur My Falasson App elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.</p>"),
|
||||
"pic": "img/Andrey.png",
|
||||
"email": "lakeishaphillips@mail.com",
|
||||
"position": "Mobile Developer",
|
||||
"tag": 'family',
|
||||
"labels": ['spam']
|
||||
},
|
||||
{
|
||||
"id": "9391xdsff",
|
||||
"name": "Vlad Lugovsky",
|
||||
"subject": "Cool",
|
||||
"date": "2015-03-31T11:52:58",
|
||||
"body": $sce.trustAsHtml("<p>Hey Vlad. </p><p>Aliquam sodales sem in nibh pellentesque</p>" +
|
||||
"<p>Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed.</p>"),
|
||||
"pic": "img/Vlad.png",
|
||||
"email": "carlsongoodman@mail.com",
|
||||
"position": "Fullstack man",
|
||||
"tag": "study",
|
||||
"labels": ['draft']
|
||||
},
|
||||
{
|
||||
"id": "8223xsdaa",
|
||||
"name": "Andrey Hrabouski",
|
||||
"subject": "Car rent",
|
||||
"date": "2015-02-25T10:58:58",
|
||||
"body": $sce.trustAsHtml("<p>Hey Andrey. </p>" +
|
||||
"<p>Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed. Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic</p>"),
|
||||
"pic": "img/Andrey.png",
|
||||
"email": "lakeishaphillips@mail.com",
|
||||
"position": "Mobile Developer",
|
||||
"tag": "family",
|
||||
"labels": ['draft']
|
||||
},
|
||||
{
|
||||
"id": "9391xdsff",
|
||||
"name": "Vlad Lugovsky",
|
||||
"subject": "What next",
|
||||
"date": "2015-03-31T11:52:58",
|
||||
"body": $sce.trustAsHtml("<p>Hey Vlad. </p><p>Lorem ipsum dolor sit amet!</p>" +
|
||||
"<p>Esse esse labore tempor ullamco ullamco. Id veniam laborum c.</p>"),
|
||||
"pic": "img/Vlad.png",
|
||||
"email": "carlsongoodman@mail.com",
|
||||
"position": "Fullstack man",
|
||||
"tag": "study",
|
||||
"labels": ['sent']
|
||||
}
|
||||
].sort(function (a, b) {
|
||||
if (a.date > b.date) return 1;
|
||||
if (a.date < b.date) return -1;
|
||||
}).reverse();
|
||||
var tabs = [{
|
||||
label: 'inbox',
|
||||
name: 'Inbox',
|
||||
newMails: 7
|
||||
}, {
|
||||
label: 'sent',
|
||||
name: 'Sent Mail'
|
||||
}, {
|
||||
label: 'important',
|
||||
name: 'Important'
|
||||
}, {
|
||||
label: 'draft',
|
||||
name: 'Draft',
|
||||
newMails: 2
|
||||
}, {
|
||||
label: 'spam',
|
||||
name: 'Spam'
|
||||
}, {
|
||||
label: 'trash',
|
||||
name: 'Trash'
|
||||
}];
|
||||
|
||||
return{
|
||||
getTabs : function(){
|
||||
return tabs
|
||||
},
|
||||
getMessagesByLabel : function(label){
|
||||
console.log('label',$stateParams.label);
|
||||
return messages.filter(function(m){
|
||||
return m.labels.indexOf(label) != -1;
|
||||
});
|
||||
},
|
||||
getMessageById : function(id){
|
||||
return messages.filter(function(m){
|
||||
return m.id == id;
|
||||
})[0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
})();
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* @author v.lugovsky
|
||||
* created on 16.12.2015
|
||||
* @author k.danovsky
|
||||
* created on 15.01.2016
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
@ -16,18 +16,11 @@
|
|||
.state('teams', {
|
||||
url: '/teams',
|
||||
template : '<ui-view autoscroll="true" autoscroll-body-top></ui-view>',
|
||||
title: 'Teams',
|
||||
abstract: true,
|
||||
title: 'teams',
|
||||
sidebarMeta: {
|
||||
icon: 'ion-gear-a',
|
||||
order: 1500,
|
||||
},
|
||||
}).state('teams.members', {
|
||||
url: '/create',
|
||||
templateUrl: 'app/pages/teams/members/members.html',
|
||||
controller: "MembersTabCtrl",
|
||||
title: 'Manage Members',
|
||||
sidebarMeta: {
|
||||
order: 0,
|
||||
icon: 'ion-gear-a',
|
||||
order: 100,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue