2016-04-21 12:19:51 +02:00
|
|
|
<div class="tab-pane" id="users">
|
|
|
|
<div class="col-xs-12 col-md-12 each-tab-pane">
|
|
|
|
<div class="form-inline">
|
|
|
|
<div class="input-group">
|
2016-04-22 18:49:52 +02:00
|
|
|
<input type="text" class="form-control" placeholder="" ng-model="vm.username" size="30">
|
2016-04-21 12:19:51 +02:00
|
|
|
<span class="input-group-btn">
|
2016-04-27 12:29:55 +02:00
|
|
|
<button class="btn btn-primary" type="button" ng-click="vm.search({projectId: vm.projectId, username: vm.username})"><span class="glyphicon glyphicon-search"></span></button>
|
2016-04-21 12:19:51 +02:00
|
|
|
</span>
|
|
|
|
</div>
|
2016-05-13 12:48:06 +02:00
|
|
|
<button ng-if="!vm.isOpen" class="btn btn-success" type="button" ng-click="vm.addProjectMember()"><span class="glyphicon glyphicon-plus"></span>// 'add_member' | tr //</button>
|
|
|
|
<button ng-if="vm.isOpen" class="btn btn-default" disabled="disabled" type="button"><span class="glyphicon glyphicon-plus"></span>// 'add_member' | tr //</button>
|
2016-04-21 12:19:51 +02:00
|
|
|
</div>
|
|
|
|
<div class="pane">
|
2016-05-10 12:43:52 +02:00
|
|
|
<add-project-member ng-show="vm.isOpen" is-open="vm.isOpen" project-id="//vm.projectId//" reload='vm.search({projectId: vm.projectId, username: vm.username})'></add-project-member>
|
2016-04-21 12:19:51 +02:00
|
|
|
<div class="sub-pane">
|
|
|
|
<table class="table table-pane" >
|
|
|
|
<thead>
|
2016-05-13 12:48:06 +02:00
|
|
|
<th width="30%">// 'username' | tr //</th><th width="40%">// 'role' | tr //</th><th width="30%">// 'operation' | tr //</th>
|
2016-04-21 12:19:51 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-06-14 08:54:00 +02:00
|
|
|
<tr ng-repeat="pr in vm.projectMembers" edit-project-member username="pr.username" project-id="vm.projectId" user-id="pr.user_id" current-user-id="vm.user.user_id" role-name="pr.role_name" reload='vm.search({projectId: vm.projectId, username: vm.username})'></tr>
|
2016-04-21 12:19:51 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|