2014-03-24 16:13:34 +04:00
|
|
|
<div class="contacts_modal_wrap" my-modal-position>
|
2014-02-12 19:10:05 +04:00
|
|
|
|
2014-07-04 15:20:22 +04:00
|
|
|
<a class="modal-close-button" ng-click="$dismiss()"><i></i></a>
|
2014-06-17 22:02:35 +04:00
|
|
|
|
2014-02-12 19:10:05 +04:00
|
|
|
<div class="modal-body">
|
|
|
|
|
2014-07-04 15:20:22 +04:00
|
|
|
<div class="contacts_modal_header">
|
2014-07-14 00:36:49 +04:00
|
|
|
<div class="contacts_modal_edit_wrap" ng-if="!action || action == 'edit'" ng-switch="action">
|
2014-07-04 15:20:22 +04:00
|
|
|
<a ng-switch-when="edit" class="contacts_modal_edit_link" ng-click="toggleEdit(false)">
|
|
|
|
Cancel
|
|
|
|
</a>
|
|
|
|
<a ng-switch-default class="contacts_modal_edit_link" ng-click="toggleEdit(true)">
|
|
|
|
Edit
|
|
|
|
</a>
|
|
|
|
</div>
|
2014-07-14 00:36:49 +04:00
|
|
|
<h4 class="contacts_modal_title" ng-switch="action">
|
|
|
|
<div ng-switch-when="new_group" ng-switch="selectedCount > 0">
|
|
|
|
<span ng-switch-when="true">
|
|
|
|
<ng-pluralize count="selectedCount" when="{'one': '1 participant', 'other': '{} participants'}">
|
|
|
|
</ng-pluralize>
|
|
|
|
</span>
|
|
|
|
<span ng-switch-default>New Group</span>
|
|
|
|
</div>
|
|
|
|
<span ng-switch-default>Contacts</span>
|
|
|
|
</h4>
|
2014-07-04 15:20:22 +04:00
|
|
|
</div>
|
|
|
|
|
2014-06-17 22:02:35 +04:00
|
|
|
|
2014-02-12 19:10:05 +04:00
|
|
|
<div class="contacts_modal_search">
|
2014-07-04 15:20:22 +04:00
|
|
|
<input class="form-control contacts_modal_search_field no_outline" my-focused type="search" placeholder="Search" ng-model="search.query"/>
|
2014-02-12 19:10:05 +04:00
|
|
|
<a class="contacts_modal_search_clear" ng-click="search.query = ''" ng-show="search.query.length"></a>
|
|
|
|
</div>
|
|
|
|
|
2014-03-01 17:54:53 +01:00
|
|
|
|
|
|
|
<div my-contacts-list class="contacts_modal_col">
|
|
|
|
|
2014-04-30 11:09:40 +08:00
|
|
|
<div class="contacts_wrap nano" my-infinite-scroller>
|
2014-06-30 17:30:42 +04:00
|
|
|
<div class="contacts_scrollable_wrap nano-content">
|
2014-03-01 17:54:53 +01:00
|
|
|
|
|
|
|
<ul class="contacts_modal_members_list nav nav-pills nav-stacked">
|
|
|
|
|
2014-04-30 11:09:40 +08:00
|
|
|
<li class="contacts_modal_contact_wrap clearfix" ng-repeat="contact in contacts | orderBy:'user.sortName' | limitTo: slice.limit track by contact.userID" ng-class="{active: selectedContacts[contact.userID], disabled: disabledContacts[contact.userID]}">
|
2014-03-01 17:54:53 +01:00
|
|
|
<a class="contacts_modal_contact" ng-click="contactSelect(contact.userID)">
|
|
|
|
|
|
|
|
<i ng-if="multiSelect" class="icon icon-contact-tick"></i>
|
|
|
|
|
|
|
|
<div class="contacts_modal_contact_photo pull-left">
|
|
|
|
<img
|
|
|
|
class="contacts_modal_contact_photo"
|
|
|
|
my-load-thumb
|
|
|
|
thumb="contact.userPhoto"
|
|
|
|
/>
|
|
|
|
<i class="icon status_online" ng-show="contact.user.status._ == 'userStatusOnline'"></i>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="contacts_modal_contact_name" ng-bind-html="contact.user.rFullName"></div>
|
2014-07-04 15:20:22 +04:00
|
|
|
<div class="contacts_modal_contact_status" ng-bind="contact.user | userStatus"></div>
|
2014-03-01 17:54:53 +01:00
|
|
|
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
2014-02-12 19:10:05 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2014-04-05 20:07:41 +04:00
|
|
|
</div>
|
2014-03-01 17:54:53 +01:00
|
|
|
|
2014-07-04 15:20:22 +04:00
|
|
|
<div class="modal-footer contacts_modal_panel" ng-switch="action">
|
2014-07-14 00:36:49 +04:00
|
|
|
<div ng-switch-when="new_group" class="pull-right">
|
|
|
|
<button class="btn btn-link" ng-click="$dismiss()">Cancel</button>
|
|
|
|
<button class="btn btn-primary" ng-class="{disabled: !selectedCount}" ng-disabled="!selectedCount" ng-click="submitSelected()" type="submit">
|
|
|
|
Next
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
2014-07-04 15:20:22 +04:00
|
|
|
<button ng-switch-when="select" class="btn btn-primary" ng-class="{disabled: !selectedCount}" ng-disabled="!selectedCount" ng-click="submitSelected()" type="submit">
|
2014-07-14 00:36:49 +04:00
|
|
|
Next
|
2014-04-05 20:07:41 +04:00
|
|
|
</button>
|
2014-07-04 15:20:22 +04:00
|
|
|
<button ng-switch-when="edit" class="btn btn-danger" ng-class="{disabled: !selectedCount}" ng-disabled="!selectedCount" ng-click="deleteSelected()">
|
|
|
|
Delete <strong ng-bind="selectedCount"></strong>
|
|
|
|
</button>
|
|
|
|
<button ng-switch-default class="btn btn-link" ng-click="importContact()">
|
|
|
|
New contact
|
|
|
|
</button>
|
2014-02-12 19:10:05 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|