- Timestamp:
- 05/10/16 16:55:18 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/User/Index.cshtml
r13827 r13841 68 68 </div> 69 69 <div class="btn-group-vertical btn-block"> 70 71 70 71 72 72 @foreach (var user in Model.users) 73 73 { … … 111 111 box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);"> 112 112 <div class="row"> 113 <h2 style="padding-left:20px"> 113 @if (Model.SelectedUser.Id != Guid.Empty && Model.SelectedUser.IsApproved) 114 {<div class="row" style="margin-right:20px"> 115 <a class="btn btn-success pull-right disabled"><i class="fa fa-check-square-o "></i> Approved</a> 116 </div> 117 } 118 else if (Model.SelectedUser.Id != Guid.Empty && !Model.SelectedUser.IsApproved) 119 {<div class="row" style="margin-right:20px"> 120 <a class="btn btn-warning pull-right" 121 asp-action="approveUser" 122 asp-controller="User" 123 asp-route-id="@Model.SelectedUser.Id"> 124 <i class="fa fa-square-o" ></i> Not approved 125 </a> 126 127 </div> 128 } 129 <h2 style="padding-left:20px; margin-top:0"> 114 130 @if (Model.SelectedUser.Id != Guid.Empty) 115 131 { 116 <i class="fa fa-user "></i> @Model.SelectedUser.UserName; 132 <i class="fa fa-user "></i> @Model.SelectedUser.UserName 133 117 134 } 118 135 else … … 122 139 } 123 140 </h2> 141 124 142 <form class="form-horizontal" 125 143 method="post" … … 189 207 190 208 </div> 191 <div class="form-group"> 192 <label class="col-sm-3 control-label"> 193 User created 194 </label> 195 <label class="col-sm-8 control-label" style="text-align:left"> 196 @Model.SelectedUser.CreationDate.AddHours(2).ToString(); 197 </label> 198 </div> 199 <div class="form-group"> 200 <label class="col-sm-3 control-label"> 201 Last activity 202 </label> 203 <label class="col-sm-8 control-label" style="text-align:left"> 204 @Model.SelectedUser.LastActivityDate.AddHours(2).ToString() 205 </label> 206 </div> 207 <div class="form-group"> 208 <label class="col-sm-3 control-label"> 209 Password 210 </label> 211 <div id="inppassreset" class="col-sm-8"> 212 Last change: @Model.SelectedUser.LastPasswordChangedDate.ToShortDateString() 213 <button type="button" 214 onclick="resetPass('@(Model.SelectedUser.Id)')" 215 class="btn btn-default"> 216 <i class="fa fa-unlock"></i> Reset password 217 </button> 218 </div> 219 </div> 220 221 <div class="form-group"> 222 <label class="col-sm-3 control-label"> 223 Member of @Model.SelectedUserSubscriptions.Count groups 224 </label> 225 <div class="col-sm-8 control-label" style="text-align:left"> 226 @if (Model.SelectedUserSubscriptions.Count > 0) 227 { 228 @foreach (var g in Model.SelectedUserSubscriptions) 209 <div class="form-group"> 210 <label class="col-sm-3 control-label"> 211 User created 212 </label> 213 <label class="col-sm-8 control-label" style="text-align:left"> 214 @Model.SelectedUser.CreationDate.AddHours(2).ToString(); 215 </label> 216 </div> 217 <div class="form-group"> 218 <label class="col-sm-3 control-label"> 219 Last activity 220 </label> 221 <label class="col-sm-8 control-label" style="text-align:left"> 222 @Model.SelectedUser.LastActivityDate.AddHours(2).ToString() 223 </label> 224 </div> 225 <div class="form-group"> 226 <label class="col-sm-3 control-label"> 227 Password 228 </label> 229 <div id="inppassreset" class="col-sm-8"> 230 Last change: @Model.SelectedUser.LastPasswordChangedDate.ToShortDateString() 231 <button type="button" 232 onclick="resetPass('@(Model.SelectedUser.Id)')" 233 class="btn btn-default"> 234 <i class="fa fa-unlock"></i> Reset password 235 </button> 236 </div> 237 </div> 238 239 <div class="form-group"> 240 <label class="col-sm-3 control-label"> 241 Member of @Model.SelectedUserSubscriptions.Count groups 242 </label> 243 <div class="col-sm-8 control-label" style="text-align:left"> 244 @if (Model.SelectedUserSubscriptions.Count > 0) 229 245 { 230 <div class="row"> 231 <p class="col-sm-10"><i class="fa fa-group"></i> @g.Name</p> 232 <p class="col-sm-2"> 233 <a class="btn btn-danger pull-right" 234 asp-controller="User" 235 asp-action="deleteUserGroup" 236 asp-route-id="@Model.SelectedUser.Id" 237 asp-route-group="@g.Id" 238 onclick="showDeleter()"> 239 <i class="fa fa-trash-o"></i> 240 </a> 241 </p> 242 </div> 246 @foreach (var g in Model.SelectedUserSubscriptions) 247 { 248 <div class="row"> 249 <p class="col-sm-10"><i class="fa fa-group"></i> @g.Name</p> 250 <p class="col-sm-2"> 251 <a class="btn btn-danger pull-right" 252 asp-controller="User" 253 asp-action="deleteUserGroup" 254 asp-route-id="@Model.SelectedUser.Id" 255 asp-route-group="@g.Id" 256 onclick="showDeleter()"> 257 <i class="fa fa-trash-o"></i> 258 </a> 259 </p> 260 </div> 261 } 243 262 } 244 } 245 else 246 { 247 <p>Not a member of any groups</p> 248 } 249 </div> 250 </div> 263 else 264 { 265 <p>Not a member of any groups</p> 266 } 267 </div> 268 </div> 251 269 } 252 270 … … 293 311 <div class="form-group"> 294 312 <label class="col-sm-3 control-label"> 295 @Model.SelectedUserRoles.Count Roles313 @Model.SelectedUserRoles.Count Roles 296 314 </label> 297 315 <div class="col-sm-8 control-label" style="text-align:left">
Note: See TracChangeset
for help on using the changeset viewer.