Changeset 13740 for branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/User/Index.cshtml
- Timestamp:
- 03/30/16 17:30:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/User/Index.cshtml
r13733 r13740 1 1 @using HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User; 2 @model UserViewModel 2 3 <div> 3 4 4 5 @Html.Partial("Navbar", new HeuristicLab.Clients.Hive.WebJobManager.ViewModels.NavbarViewModel("User")) 5 6 7 <ul class="nav nav-pills nav-justified"> 8 <li role="presentation" 9 class="active"> 10 <a asp-controller="User" 11 asp-action="Index"> 12 Users 13 </a> 14 </li> 15 <li role="presentation" 16 class=""> 17 <a asp-controller="User" 18 asp-action="Groups"> 19 Groups 20 </a> 21 </li> 22 <li role="presentation" 23 class=""> 24 <a asp-controller="User" 25 asp-action="Roles"> 26 Roles 27 </a> 28 </li> 29 </ul> 30 <div class="row" 31 style="text-align:center"> 32 @Model.message 33 </div> 34 <div class="row" 35 style="padding:10px; margin-right:0px!important"> 36 @if (Model.users.Count == 0) 37 { 38 <div> 39 <p style="text-align:center"> 40 No users found 41 </p> 42 </div> 6 43 44 } 45 else 46 { 47 <div class="col-sm-4"> 48 <div class="btn-group-vertical btn-block"> 49 <a class="btn btn-info btn-lg btn-block disabled" 50 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 51 text-shadow:2px 2px black;"> 52 <i class="fa fa-users"></i> Users 53 </a> 54 <a class="btn btn-success btn-block 55 @(Model.SelectedUser == "" ? "active" : "") 56 " 57 asp-controller="User" 58 asp-action="SelectUser" 59 asp-route-id="@Guid.Empty" 60 onclick="showUser()" 61 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 62 text-shadow:2px 2px black;"> 63 <i class="fa fa-user-plus"></i> Add new user 64 </a> 65 @foreach(var user in Model.users) 66 { 67 <a class="btn btn-default @(user == Model.SelectedUser ? "active" : "" )" 68 style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);" 69 asp-controller="User" 70 asp-action="SelectUser" 71 asp-route-id="@Guid.NewGuid()" 72 onclick="showUser()"> 73 @user 74 </a> 75 } 76 </div> 77 </div> 78 <p style="display:none" 79 id="saver" 80 class="text-center"> 81 <br /><br /><br /><br /><br /><br /><br /> 82 <i class="fa fa-save fa-spin fa-5x" id="spinner"> 83 </i> 84 </p> 85 <p style="display:none" 86 id="user" 87 class="text-center"> 88 <br /><br /><br /><br /><br /><br /><br /> 89 <i class="fa fa-user fa-spin fa-5x" id="spinner"> 90 </i> 91 </p> 92 <p style="display:none" 93 id="deleter" 94 class="text-center"> 95 <br /><br /><br /><br /><br /><br /><br /> 96 <i class="fa fa-trash-o fa-spin fa-5x" id="spinner"> 97 </i> 98 </p> 99 <div id="content"> 100 101 </div> 102 } 103 </div> 104 <script type="text/javascript"> 105 function showSaver() { 106 document.getElementById("content").style.display = "none"; 107 document.getElementById("saver").style.display = ""; 108 109 } 110 function showUser() { 111 document.getElementById("content").style.display = "none"; 112 document.getElementById("user").style.display = ""; 113 114 } 115 function showDeleter() { 116 document.getElementById("content").style.display = "none"; 117 document.getElementById("deleter").style.display = ""; 118 } 119 </script> 7 120 </div>
Note: See TracChangeset
for help on using the changeset viewer.