- Timestamp:
- 04/01/16 16:34:14 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/Index.cshtml
r13740 r13742 10 10 <a asp-controller="Job" 11 11 asp-action="Index"> 12 Jobs12 <i class="fa fa-tasks"></i> Jobs 13 13 </a> 14 14 </li> … … 17 17 <a asp-controller="Job" 18 18 asp-action="Uploads"> 19 Uploads19 <i class="fa fa-cloud"></i> Uploads 20 20 </a> 21 21 </li> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFile.cshtml
r13740 r13742 19 19 <a asp-controller="Job" 20 20 asp-action="Index"> 21 Jobs21 <i class="fa fa-tasks"></i> Jobs 22 22 </a> 23 23 </li> … … 26 26 <a asp-controller="Job" 27 27 asp-action="Uploads"> 28 Uploads28 <i class="fa fa-cloud"></i> Uploads 29 29 </a> 30 30 </li> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/Uploads.cshtml
r13739 r13742 10 10 <a asp-controller="Job" 11 11 asp-action="Index"> 12 Jobs12 <i class="fa fa-tasks"></i> Jobs 13 13 </a> 14 14 </li> … … 17 17 <a asp-controller="Job" 18 18 asp-action="Uploads"> 19 Uploads19 <i class="fa fa-cloud"></i> Uploads 20 20 </a> 21 21 </li> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/User/Groups.cshtml
r13740 r13742 1 1 @using HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User; 2 2 @using HeuristicLab.Clients.Access; 3 @model UserViewModel 3 4 4 5 <div> … … 11 12 <a asp-controller="User" 12 13 asp-action="Index"> 13 Users14 <i class="fa fa-user"></i> Users 14 15 </a> 15 16 </li> … … 18 19 <a asp-controller="User" 19 20 asp-action="Groups"> 20 Groups21 <i class="fa fa-group"></i> Groups 21 22 </a> 22 23 </li> … … 25 26 <a asp-controller="User" 26 27 asp-action="Roles"> 27 Roles28 <i class="fa fa-sitemap"></i> Roles 28 29 </a> 29 30 </li> … … 31 32 <div class="row" 32 33 style="text-align:center"> 33 Model.message34 @Model.message 34 35 </div> 35 36 <div class="row" 36 37 style="padding:10px; margin-right:0px!important"> 37 38 <div class="col-sm-4"> 39 <div class="btn-group-vertical btn-block"> 40 <a class="btn btn-info btn-lg btn-block disabled" 41 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 42 text-shadow:2px 2px black;"> 43 <i class="fa fa-group"></i> @Model.ugroups.Count Group@(Model.ugroups.Count != 1 ? "s" : "") 44 </a> 45 <a class="btn btn-success btn-block 46 @(Model.SelectedGroup.Id == Guid.Empty ? "active" : "") 47 " 48 asp-controller="User" 49 asp-action="SelectGroup" 50 asp-route-id="@Guid.Empty" 51 onclick="showGroup()" 52 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 53 text-shadow:2px 2px black;"> 54 <i class="fa fa-plus-circle"></i> Add new group 55 </a> 56 @foreach (var group in Model.ugroups) 57 { 58 <a class="btn btn-default @( group.Id == Model.SelectedGroup.Id ? "active" : "" )" 59 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);" 60 asp-controller="User" 61 asp-action="SelectGroup" 62 asp-route-id="@group.Id" 63 onclick="showGroup()"> 64 @group.Name 65 </a> 66 } 67 </div> 68 </div> 69 <p style="display:none" 70 id="saver" 71 class="text-center"> 72 <br /><br /><br /><br /><br /><br /><br /> 73 <i class="fa fa-save fa-spin fa-5x" id="spinner"> 74 </i> 75 </p> 76 <p style="display:none" 77 id="group" 78 class="text-center"> 79 <br /><br /><br /><br /><br /><br /><br /> 80 <i class="fa fa-group fa-spin fa-5x" id="spinner"> 81 </i> 82 </p> 83 <p style="display:none" 84 id="deleter" 85 class="text-center"> 86 <br /><br /><br /><br /><br /><br /><br /> 87 <i class="fa fa-trash-o fa-spin fa-5x" id="spinner"> 88 </i> 89 </p> 90 91 <div class="col-sm-8" 92 id="content" 93 style="padding:5px; padding-left:10px;"> 94 @if (Model.SelectedGroup != null) 95 { 96 <div class="panel panel-default" 97 style="border-width:2px!important;padding:17px; 98 box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);"> 99 <div class="row"> 100 <h2 style="padding-left:20px"> 101 @if (Model.SelectedGroup.Id != Guid.Empty) 102 { 103 <i class="fa fa-group"></i> @Model.SelectedGroup.Name 104 } 105 else 106 { 107 <i class='fa fa-plus-circle'></i> @("Add new group") 108 109 } 110 </h2> 111 <form class="form-horizontal" 112 method="post" 113 asp-action="saveGroup" 114 asp-controller="User" enctype="multipart/form-data"> 115 <div class="form-group"> 116 <label for="inpgroupname" 117 class="col-sm-3 control-label"> 118 Group name 119 </label> 120 <div class="col-sm-8"> 121 <input type="text" 122 class="form-control" 123 id="inpgroupname" 124 name="inpgroupname" 125 placeholder="Group name" 126 onkeydown="triggerSave()" 127 value="@Model.SelectedGroup.Name"> 128 </div> 129 </div> 130 131 <div class="form-group"> 132 <label class="col-sm-3 control-label"> 133 Group id 134 </label> 135 <label class="col-sm-8 control-label" style="text-align:left"> 136 @Model.SelectedGroup.Id 137 </label> 138 <input type="text" 139 style="display:none" 140 id="u" 141 name="u" 142 value="@Model.SelectedGroup.Id" /> 143 </div> 144 @if (Model.SelectedGroup.Id != Guid.Empty) 145 { 146 <div style="padding-left:20px"> 147 <h3>@Model.SelectedGroupMembers.Count Member@(Model.SelectedGroupMembers.Count != 1 ? "s" : "")</h3> 148 @foreach (var member in Model.SelectedGroupMembers) 149 { 150 <p> 151 <a class="btn btn-danger" 152 asp-controller="User" 153 asp-action="deleteMember" 154 asp-route-g="@Model.SelectedGroup.Id" 155 asp-route-m="@member.Id" 156 onclick="showDeleter()"> 157 <i class="fa fa-trash-o"></i> 158 </a> 159 @if (member is User) 160 { 161 var umember = (User)member; 162 <i class="fa fa-user"></i> @(umember.UserName + "(" + umember.FullName + ")") 163 164 165 } 166 else if (member is UserGroup) 167 { 168 var gmember = (UserGroup)member; 169 <i class="fa fa-group"></i> @(gmember.Name) 170 171 } 172 173 </p> 174 } 175 @if (Model.SelectedGroupMembers.Count == 0) 176 { 177 <p>This group currently has no members</p> 178 179 } 180 </div> 181 } 182 <div class="row" style="margin-left:10px;margin-right:10px;margin-top:-10px"> 183 <a class="btn btn-primary" 184 data-toggle="collapse" 185 href="#addmembers" 186 aria-expanded="false" 187 aria-controls="addmembers" 188 style="margin:10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 189 text-shadow:2px 2px black;"> 190 Add members 191 </a> 192 <div class="collapse" 193 id="addmembers"> 194 <div class="panel panel-primary col-sm-6" style="padding:0px"> 195 <div class="panel-heading"> 196 <p> 197 <i class="fa fa-user"></i> Users 198 <button class="btn btn-sm btn-default" 199 type="button" 200 onclick="selectAll('userstoadd'); triggerSave()">Select all</button> 201 <button class="btn btn-sm btn-default" 202 type="button" 203 onclick="deselectAll('userstoadd'); triggerSave()">Deselect all</button> 204 </p> 205 </div> 206 <div class="panel-body"> 207 @foreach (var user in Model.users) 208 { 209 <div class="checkbox"> 210 <label> 211 <input type="checkbox" 212 name="userstoadd" 213 @(Model.SelectedGroupMembers.Contains(user) ? "checked disabled" : "") 214 value="@user.Id" 215 onclick="triggerSave()"> 216 @user.UserName (@user.FullName) 217 </label> 218 </div> 219 220 } 221 </div> 222 </div> 223 <div class="panel panel-primary col-sm-6" style="padding:0px"> 224 <div class="panel-heading"> 225 <p><i class="fa fa-group"></i> Groups 226 227 <button class="btn btn-sm btn-default" 228 type="button" 229 onclick="selectAll('groupstoadd'); triggerSave()"> 230 Select all 231 </button> 232 <button class="btn btn-sm btn-default" 233 type="button" 234 onclick="deselectAll('groupstoadd'); triggerSave()"> 235 Deselect all 236 </button> 237 </p> 238 </div> 239 <div class="panel-body"> 240 @foreach (var group in Model.ugroups) 241 { 242 <div class="checkbox"> 243 <label> 244 <input type="checkbox" 245 name="groupstoadd" 246 @(Model.SelectedGroupMembers.Contains(group) ? "checked disabled" : "") 247 value="@group.Id" 248 onclick="triggerSave()"> 249 @group.Name 250 </label> 251 </div> 252 253 } 254 </div> 255 </div> 256 </div> 257 </div> 258 @if (Model.SelectedGroup.Id == Guid.Empty) 259 {//New goup 260 <div class="form-group"> 261 <div class="col-sm-offset-3 col-sm-9"> 262 <button type="submit" 263 id="inpsaver" 264 disabled 265 class="btn btn-default" 266 onclick="showSaver()"> 267 <i class="fa fa-plus-circle"></i> Add group 268 </button> 269 </div> 270 </div> 271 272 273 } 274 else 275 {//Changing an existing group 276 277 <div class="form-group"> 278 <div class="col-sm-offset-3 col-sm-3"> 279 <button type="submit" 280 id="inpsaver" 281 disabled 282 class="btn btn-default" 283 onclick="showSaver()"> 284 <i class="fa fa-save"></i> Save changes 285 </button> 286 </div> 287 <div class="col-sm-5"> 288 <a class="btn btn-danger pull-right" 289 asp-controller="User" 290 asp-action="deleteGroup" 291 asp-route-id="@Model.SelectedGroup.Id" 292 onclick="showDeleter()"> 293 <i class="fa fa-trash-o"></i> Delete group 294 </a> 295 </div> 296 </div> 297 298 299 300 } 301 <script type="text/javascript"> 302 function triggerSave() { 303 if ($("#inpgroupname").val() != "") { 304 document.getElementById("inpsaver").className = "btn btn-lg btn-success"; 305 document.getElementById("inpsaver").disabled = false; 306 } 307 else { 308 document.getElementById("inpsaver").className = "btn btn-default"; 309 document.getElementById("inpsaver").disabled = true; 310 311 } 312 313 } 314 </script> 315 </form> 316 317 </div> 318 </div> 319 320 } 321 </div> 38 322 </div> 323 <script type="text/javascript"> 324 function showSaver() { 325 document.getElementById("content").style.display = "none"; 326 document.getElementById("saver").style.display = ""; 327 328 } 329 function showGroup() { 330 document.getElementById("content").style.display = "none"; 331 document.getElementById("group").style.display = ""; 332 333 } 334 function showDeleter() { 335 document.getElementById("content").style.display = "none"; 336 document.getElementById("deleter").style.display = ""; 337 } 338 function selectAll(name) { 339 checkboxes = document.getElementsByName(name); 340 for(var i=0, n=checkboxes.length;i<n;i++) { 341 checkboxes[i].checked = true; 342 } 343 } 344 function deselectAll(name) { 345 checkboxes = document.getElementsByName(name); 346 for (var i = 0, n = checkboxes.length; i < n; i++) { 347 if(checkboxes[i].disabled == false) 348 checkboxes[i].checked = false; 349 } 350 } 351 </script> 39 352 </div> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/User/Index.cshtml
r13741 r13742 11 11 <a asp-controller="User" 12 12 asp-action="Index"> 13 Users13 <i class="fa fa-user"></i> Users 14 14 </a> 15 15 </li> … … 18 18 <a asp-controller="User" 19 19 asp-action="Groups"> 20 Groups20 <i class="fa fa-group"></i> Groups 21 21 </a> 22 22 </li> … … 25 25 <a asp-controller="User" 26 26 asp-action="Roles"> 27 Roles27 <i class="fa fa-sitemap"></i> Roles 28 28 </a> 29 29 </li> … … 51 51 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 52 52 text-shadow:2px 2px black;"> 53 <i class="fa fa-user s"></i> Users53 <i class="fa fa-user"></i> @Model.users.Count User@(Model.users.Count != 1 ? "s" : "") 54 54 </a> 55 55 <a class="btn btn-success btn-block … … 110 110 @if (Model.SelectedUser.Id != Guid.Empty) 111 111 { 112 @Model.SelectedUser.UserName;112 <i class="fa fa-user "></i> @Model.SelectedUser.UserName; 113 113 } 114 114 else 115 115 { 116 @("Add new user")116 <i class="fa fa-user-plus "></i> @("Add new user") 117 117 118 118 } 119 119 </h2> 120 120 <form class="form-horizontal" 121 121 method="post" 122 122 asp-action="saveUser" 123 123 asp-controller="User" enctype="multipart/form-data"> 124 <div class="form-group" >124 <div class="form-group" style="@(Model.SelectedUser.Id == Guid.Empty ? "" : "display:none")"> 125 125 <label for="inpusername" 126 126 class="col-sm-3 control-label"> … … 133 133 name="inpusername" 134 134 placeholder="Username" 135 on change="triggerSave()"135 onkeydown="triggerSave()" 136 136 value="@Model.SelectedUser.UserName"> 137 137 </div> … … 148 148 name="inpfullname" 149 149 placeholder="Full name" 150 on change="triggerSave()"150 onkeydown="triggerSave()" 151 151 value="@Model.SelectedUser.FullName"> 152 152 </div> … … 163 163 name="inpemail" 164 164 placeholder="Email" 165 on change="triggerSave()"165 onkeydown="triggerSave()" 166 166 value="@Model.SelectedUser.Email"> 167 167 </div> … … 203 203 id="inpsaver" 204 204 disabled 205 class="btn btn-lg btn-default"> 206 Add user 205 class="btn btn-default" 206 onclick="showSaver()"> 207 <i class="fa fa-plus-square-o"></i> Add user 207 208 </button> 208 209 </div> … … 215 216 <div class="form-group"> 216 217 <label class="col-sm-3 control-label"> 217 Last activity218 Password 218 219 </label> 219 <div id="inppassreset" >220 <div id="inppassreset" class="col-sm-8"> 220 221 <button type="button" 221 222 onclick="resetPass('@(Model.SelectedUser.Id)')" 222 class="btn btn- lg btn-default">223 Reset password223 class="btn btn-default"> 224 <i class="fa fa-unlock"></i> Reset password 224 225 </button> 225 226 </div> 226 227 </div> 228 227 229 <div class="form-group"> 228 <div class="col-sm-offset-3 col-sm-9"> 230 <label class="col-sm-3 control-label"> 231 Member of 232 </label> 233 <div class="col-sm-8"> 234 @if (Model.SelectedUserSubscriptions.Count > 0) 235 { 236 @foreach (var g in Model.SelectedUserSubscriptions) 237 { 238 <p><i class="fa fa-group"></i> @g.Name</p> 239 } 240 } 241 else 242 { 243 <p>Not a member of any groups</p> 244 } 245 </div> 246 </div> 247 <div class="form-group"> 248 <div class="col-sm-offset-3 col-sm-3"> 229 249 <button type="submit" 230 250 id="inpsaver" 231 251 disabled 232 class="btn btn-lg btn-default"> 233 Save changes 252 class="btn btn-default" 253 onclick="showSaver()"> 254 <i class="fa fa-save"></i> Save changes 234 255 </button> 235 256 </div> 236 </div> 257 <div class="col-sm-5"> 258 <a class="btn btn-danger pull-right" 259 asp-controller="User" 260 asp-action="deleteUser" 261 asp-route-id="@Model.SelectedUser.Id" 262 onclick="showDeleter()"> 263 <i class="fa fa-trash-o"></i> Delete user 264 </a> 265 </div> 266 </div> 267 237 268 238 269 … … 240 271 <script type="text/javascript"> 241 272 function triggerSave() { 242 if ($("#inpusername").val() != "" && 243 $("#inpfullname").val() != "" && 273 if ($("#inpfullname").val() != "" && 244 274 $("#inpemail").val() != "") { 245 275 document.getElementById("inpsaver").className = "btn btn-lg btn-success"; … … 247 277 } 248 278 else { 249 document.getElementById("inpsaver").className = "btn btn- lg btn-default";279 document.getElementById("inpsaver").className = "btn btn-default"; 250 280 document.getElementById("inpsaver").disabled = true; 251 281
Note: See TracChangeset
for help on using the changeset viewer.