2013-12-18 03:56:28 +00:00
|
|
|
<div class="resource-view" resource="orgResource" error-message="'No matching organization'">
|
2015-02-18 19:37:59 +00:00
|
|
|
<div class="team-view cor-container">
|
2014-08-16 00:51:31 +00:00
|
|
|
<div class="organization-header" organization="organization" team-name="teamname">
|
|
|
|
<div ng-show="canEditMembers" class="side-controls">
|
2015-01-14 19:27:37 +00:00
|
|
|
<div class="hidden-xs">
|
2014-09-11 19:45:41 +00:00
|
|
|
<button class="btn btn-success"
|
|
|
|
id="showAddMember"
|
2014-08-16 00:51:31 +00:00
|
|
|
data-title="Add Team Member"
|
2014-11-24 21:07:38 +00:00
|
|
|
data-content-template="/static/directives/team-view-add.html"
|
|
|
|
data-placement="bottom-right"
|
2014-09-11 19:45:41 +00:00
|
|
|
bs-popover="bs-popover">
|
2014-08-16 00:51:31 +00:00
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
Add Team Member
|
|
|
|
</button>
|
2014-08-16 01:00:12 +00:00
|
|
|
</div>
|
2014-08-16 00:51:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2013-12-18 03:56:28 +00:00
|
|
|
<div class="resource-view" resource="membersResource" error-message="'No matching team found'">
|
|
|
|
<div class="description markdown-input" content="team.description" can-write="organization.is_admin"
|
2014-11-24 21:07:38 +00:00
|
|
|
content-changed="updateForDescription" field-title="'team description'"></div>
|
2013-11-05 01:17:58 +00:00
|
|
|
|
2014-08-16 00:51:31 +00:00
|
|
|
<div class="empty-message" ng-if="!members.length">
|
|
|
|
This team has no members
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="empty-message" ng-if="members.length && !(members | filter:search).length">
|
|
|
|
No matching team members found
|
2013-12-18 03:56:28 +00:00
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2014-08-16 00:51:31 +00:00
|
|
|
<table class="member-listing" style="margin-top: -20px" ng-show="members.length">
|
|
|
|
<!-- Members -->
|
|
|
|
<tr ng-if="(members | filter:search | filter: filterFunction(false, false)).length">
|
|
|
|
<td colspan="2"><div class="section-header">Team Members</div></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr ng-repeat="member in members | filter:search | filter: filterFunction(false, false) | orderBy: 'name'">
|
|
|
|
<td class="user entity">
|
2014-11-25 00:25:13 +00:00
|
|
|
<span class="entity-reference" entity="member" namespace="organization.name" show-avatar="true" avatar-size="32"></span>
|
2014-08-16 00:51:31 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2014-09-08 21:20:01 +00:00
|
|
|
<span class="delete-ui" delete-title="'Remove ' + member.name + ' from team'" button-title="'Remove'"
|
2014-08-16 00:51:31 +00:00
|
|
|
perform-delete="removeMember(member.name)" ng-if="canEditMembers"></span>
|
|
|
|
</td>
|
2014-11-24 21:07:38 +00:00
|
|
|
</tr>
|
|
|
|
|
2014-08-16 00:51:31 +00:00
|
|
|
<!-- Robots -->
|
|
|
|
<tr ng-if="(members | filter:search | filter: filterFunction(false, true)).length">
|
|
|
|
<td colspan="2"><div class="section-header">Robot Accounts</div></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr ng-repeat="member in members | filter:search | filter: filterFunction(false, true) | orderBy: 'name'">
|
|
|
|
<td class="user entity">
|
|
|
|
<span class="entity-reference" entity="member" namespace="organization.name"></span>
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-09-08 21:20:01 +00:00
|
|
|
<span class="delete-ui" delete-title="'Remove ' + member.name + ' from team'" button-title="'Remove'"
|
2014-08-16 00:51:31 +00:00
|
|
|
perform-delete="removeMember(member.name)" ng-if="canEditMembers"></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!-- Invited -->
|
|
|
|
<tr ng-if="(members | filter:search | filter: filterFunction(true, false)).length">
|
|
|
|
<td colspan="2"><div class="section-header">Invited To Join</div></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr ng-repeat="member in members | filter:search | filter: filterFunction(true, false) | orderBy: 'name'">
|
|
|
|
<td class="user entity">
|
2014-08-29 03:46:27 +00:00
|
|
|
<span ng-if="member.kind != 'invite'">
|
2014-11-25 00:25:13 +00:00
|
|
|
<span class="entity-reference" entity="member" namespace="organization.name" show-avatar="true" avatar-size="32"></span>
|
2014-08-29 03:46:27 +00:00
|
|
|
</span>
|
|
|
|
<span class="invite-listing" ng-if="member.kind == 'invite'">
|
2014-11-25 00:25:13 +00:00
|
|
|
<span class="avatar" size="32" hash="member.avatar"></span>
|
2014-08-29 03:46:27 +00:00
|
|
|
{{ member.email }}
|
|
|
|
</span>
|
2014-08-16 00:51:31 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2014-09-08 21:20:01 +00:00
|
|
|
<span class="delete-ui" delete-title="'Revoke invite to join team'" button-title="'Revoke'"
|
|
|
|
perform-delete="revokeInvite(member)" ng-if="canEditMembers"></span>
|
2014-08-16 00:51:31 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2014-08-16 01:00:12 +00:00
|
|
|
|
|
|
|
<div ng-show="canEditMembers">
|
2015-01-14 19:27:37 +00:00
|
|
|
<div ng-if-media="'(max-width: 767px)'">
|
2014-08-16 01:00:12 +00:00
|
|
|
<div ng-include="'/static/directives/team-view-add.html'"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-11-04 19:56:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-11-04 21:21:49 +00:00
|
|
|
</div>
|
2013-11-04 19:56:54 +00:00
|
|
|
|
2013-11-05 01:17:58 +00:00
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="modal fade" id="cannotChangeTeamModal">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Cannot change team</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
You do not have permission to change properties of this team.
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
2013-11-04 21:21:49 +00:00
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="modal fade" id="cannotChangeMembersModal">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Cannot change members</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
You do not have permission to change the members of this team.
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|