- Timestamp:
- 04/27/16 16:48:35 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Resource/Index.cshtml
r13795 r13805 8 8 9 9 <div class="col-sm-4"> 10 <div class="btn-group btn-group-justified" style="padding:3px;margin-bottom:-1 0px"10 <div class="btn-group btn-group-justified" style="padding:3px;margin-bottom:-12px" 11 11 role="group"> 12 12 <a class="btn btn-info btn-lg btn-block disabled" … … 48 48 </h3> 49 49 <ul class="nav nav-pills nav-justified"> 50 <li role="presentation" ng-class="{ 'active': !permission }" ng-style="{ 'text-decoration': !permission ? 'underline' : ''}"> 50 <li role="presentation" 51 ng-class="{ 'active': !permissionview && !resaddview }" 52 ng-style="{ 'text-decoration': !permissionview && !resaddview ? 'underline' : ''}"> 51 53 <a style="text-shadow:2px 2px black; color:white; font-weight:bold; border: 1px solid white;" 52 54 href="" 53 ng-click=" permission = false">55 ng-click="menuchange(0)"> 54 56 Resource info 55 57 </a> 56 58 </li> 57 <li role="presentation" ng-class="{ 'active': permission }" ng-style="{ 'text-decoration': permission ? 'underline' : ''}"> 59 <li role="presentation" 60 ng-class="{ 'active': permissionview }" 61 ng-style="{ 'text-decoration': permissionview ? 'underline' : ''}"> 58 62 <a style="text-shadow:2px 2px black; color:white; font-weight:bold; border: 1px solid white;" 59 63 href="" 60 ng-click=" permission = true">64 ng-click="menuchange(1)"> 61 65 Permissions 62 66 </a> 63 67 </li> 68 <li ng-if="treeview.currentNode.IsDisposable === undefined" 69 role="presentation" 70 ng-class="{ 'active': resaddview }" 71 ng-style="{ 'text-decoration': resaddview ? 'underline' : ''}"> 72 73 <a style="text-shadow:2px 2px black; color:white; font-weight:bold; border: 1px solid white;" 74 href="" 75 ng-click="menuchange(2)"> 76 Add resources 77 </a> 78 </li> 64 79 </ul> 65 66 <form ng-show="permission" 80 <form ng-show="!permissionview && resaddview" 67 81 method="post" 68 asp-action=" editPermissions"82 asp-action="addResourcesToGroup" 69 83 asp-controller="Resource" 70 84 enctype="multipart/form-data" 71 class="row panel-heading" 72 > 73 <div 74 class="row" style="padding:10px;"> 85 class="row panel-heading"> 86 <div class="row" style="padding:5px;"> 87 <h4>Info</h4> 88 <p> 89 This shows only 90 <span style="text-decoration:underline">direct members</span> 91 of the group (not members of subgroups). 92 </p> 93 <p>Adding a member will overwrite the current group it's a member in (if any)</p> 94 <p>Removing an existing member will make it revert to Ungrouped.</p> 95 <a ng-click="refreshAdds()" href="" 96 class="btn btn-info pull-right" 97 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 98 text-shadow:2px 2px black;">Reset to current members</a> 99 <div class="row" style="margin:5px"> 100 <h4>All resources</h4> 101 <label class="col-sm-3" 102 ng-style="{ 103 'background-color':client.add === true ? 'green' : '' }" 104 ng-repeat="client in clients | orderBy:['!add', 'Name' ] | filter:searchText"> 105 <input type="checkbox" 106 name="addres" 107 value="{{client.Id}}" 108 ng-model="client.add"> {{client.Name}} 109 </label> 110 </div> 111 </div> 112 <input style="display:none" 113 type="text" 114 id="groupid" 115 name="groupid" 116 value="{{treeview.currentNode.Id}}" /> 117 118 <button type="submit" 119 id="inpsaver" 120 class="btn btn-success pull-right" 121 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 122 text-shadow:2px 2px black;"> 123 <i class="fa fa-save"></i> 124 Add resources to group 125 </button> 126 </form> 127 <form ng-show="permissionview && !resaddview" 128 method="post" 129 enctype="multipart/form-data" 130 class="row panel-heading"> 131 <div class="row" style="padding:10px;"> 75 132 <h4>Groups</h4> 76 133 <label class="col-sm-3" ng-repeat="group in permGroups"> 77 <input type="checkbox" 78 name="permgroups" 134 <input type="checkbox" 135 name="permgroups" 79 136 value="{{group.Id}}" 80 137 ng-model="group.state"> {{group.Name}} … … 84 141 <h4>Users</h4> 85 142 <label class="col-sm-3 col-lg-2" ng-repeat="user in permUsers"> 86 <input type="checkbox" 87 name="permusers" 143 <input type="checkbox" 144 name="permusers" 88 145 value="{{user.Id}}" 89 146 ng-model="user.state"> {{user.UserName}} 90 147 </label> 91 148 </div> 92 <div class="btn btn- info pull-right"149 <div class="btn btn-success pull-right" 93 150 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 94 151 text-shadow:2px 2px black;" 95 152 ng-click="pushPermissions()"> 96 <i ng-if="permissionLoader" class="fa fa-spin fa-save"></i> 97 Save permission changes</div> 153 <i ng-if="permissionLoader" class="fa fa-spin fa-save"></i> 154 Save permission changes 155 </div> 98 156 </form> 99 <form ng-show="!permission "157 <form ng-show="!permissionview && !resaddview" 100 158 method="post" 101 159 asp-action="deleteClientGroup" … … 155 213 <tr> 156 214 <td>Memory (free/total)</td> 157 <td>{{treeview.currentNode.FreeMemory/1024 | number:1}} GB/ {{treeview.currentNode.Memory/1024 | number:1}} GB</td>215 <td>{{treeview.currentNode.FreeMemory/1024 | number:1}} / {{treeview.currentNode.Memory/1024 | number:1}} GB</td> 158 216 </tr> 159 217 … … 161 219 </table> 162 220 </form> 163 <form method="post" 221 <form method="post" ng-show="!permissionview && !resaddview" 164 222 asp-action="changeParent" 165 223 asp-controller="Resource" … … 169 227 <input style="display:none" type="text" id="inpid" name="inpid" value="{{treeview.currentNode.Id}}" /> 170 228 171 <span style="padding:0px" class="col-sm-4">Change parent resource: </span>229 <span style="padding:0px" class="col-sm-4">Change group: </span> 172 230 173 231 <select class="form-control col-sm-5" … … 190 248 text-shadow:2px 2px black;"> 191 249 <i class="fa fa-save"></i> 192 Change parent250 Change group 193 251 </button> 194 252 </form> … … 485 543 <h3>Choose resources </h3> 486 544 <h5>(This will overwrite the group set for these resources)</h5> 487 <table> 488 <tr ng-repeat="client in clients | orderBy:['Name'] track by $index" class="checkbox col-md-6 col-lg-4"> 489 <td> 490 <label> 491 <input type="checkbox" 492 name="clientstoadd" 493 value="{{client.Id}}"> 494 <i class="fa fa-desktop" aria-hidden="true"></i> {{client.Name | limitTo : 7}} - {{client.Cores}}x {{client.CpuSpeed/1000 | number:1}} GHz - {{client.Memory / 1024 | number:1}} GB 495 </label> 496 </td> 497 </tr> 498 </table> 545 <label>Search: <input ng-init="searchText = ''" ng-model="searchText"></label> 546 <div class="row"> 547 <div style="margin:0px" 548 ng-repeat="client in clients | orderBy:['Name'] | filter:searchText" class="checkbox col-md-6 col-lg-4"> 549 550 <label ng-style="{ 551 'background-color':client.checked === true ? 'green' : '', 552 'color':client.checked === true ? 'white' : '' }" 553 style="border-radius:5px"> 554 <input type="checkbox" 555 name="clientstoadd" 556 ng-model="client.checked" 557 value="{{client.Id}}" /> 558 <i class="fa fa-desktop" aria-hidden="true"></i> {{client.Name | limitTo : 7}} - {{client.Cores}}x {{client.CpuSpeed/1000 | number:1}} GHz - {{client.Memory / 1024 | number:1}} GB 559 </label> 560 561 </div> 562 </div> 499 563 </div> 500 564 </form>
Note: See TracChangeset
for help on using the changeset viewer.