Matteo Scandolo | 15d692c | 2015-10-28 12:00:07 +0100 | [diff] [blame] | 1 | <div class="row-fluid"> |
| 2 | <div class="span6"> |
| 3 | <h1>{$ vm.cp.humanReadableName $}</h1> |
| 4 | </div> |
| 5 | <div class="span6 text-right"> |
| 6 | <cp-actions id="vm.cp.id"></cp-actions> |
| 7 | </div> |
| 8 | </div> |
| 9 | <hr> |
| 10 | <div class="row-fluid"> |
| 11 | <div class="span2"> |
Matteo Scandolo | bbcc01b | 2015-11-04 16:30:43 +0100 | [diff] [blame] | 12 | <div ng-include="'templates/cp_side_nav.html'"></div> |
Matteo Scandolo | 15d692c | 2015-10-28 12:00:07 +0100 | [diff] [blame] | 13 | </div> |
| 14 | <div class="span10"> |
| 15 | <div ng-repeat="item in vm.cp.users" class="well"> |
| 16 | <div class="row-fluid"> |
| 17 | <div class="span3"> |
| 18 | {{item.firstname}} |
| 19 | </div> |
| 20 | <div class="span3"> |
| 21 | {{item.lastname}} |
| 22 | </div> |
| 23 | <div class="span4"> |
| 24 | {{item.email}} |
| 25 | </div> |
| 26 | <div class="span2"> |
| 27 | <a ng-click="vm.removeUserFromCp(item)" class="btn btn-danger pull-right"> |
| 28 | <i class="icon icon-remove"></i> |
| 29 | </a> |
| 30 | </div> |
| 31 | </div> |
| 32 | </div> |
| 33 | <hr> |
| 34 | <form ng-submit="vm.saveContentProvider(vm.cp)"> |
| 35 | <div class="row-fluid"> |
| 36 | <div class="span8"> |
| 37 | <label>Select user:</label> |
| 38 | <select ng-model="vm.user" ng-options="u as u.username for u in vm.users" ng-change="vm.addUserToCp(vm.user)"></select> |
| 39 | </div> |
| 40 | <div class="span4 text-right"> |
| 41 | <button class="btn btn-success margin-wells"> |
| 42 | Save |
| 43 | </button> |
| 44 | </div> |
| 45 | </div> |
| 46 | </form> |
| 47 | <div class="alert" ng-show="vm.result" ng-class="{'alert-success': vm.result.status === 1,'alert-error': vm.result.status === 0}"> |
| 48 | {$ vm.result.msg $} |
| 49 | </div> |
| 50 | </div> |
| 51 | </div> |