Guest User

Untitled

a guest
Feb 15th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. @model HookWebAdmin.ParentViewModel.ParentsViewModel
  2. @foreach (var item in Model.Users)
  3. {
  4. using (Html.BeginForm("SubmitText", "Home", FormMethod.Post, new { @class = "login-form", role = "form" }))
  5. {
  6. <tr>
  7. <td>@item.username</td> //Display result from Model.Users
  8. <td>@item.pwd</td>
  9. <td>@item.lvl</td>
  10. //Let user edit information.
  11. @model HookWebAdmin.ParentViewModel.AccountEditView
  12. <td>@Html.TextBoxFor(m => m.usernameEdit, new { @class = "form-control" })</td>
  13. <td>@Html.TextBoxFor(m => m.passwordEdit, new { @class = "form-control" })</td>
  14. <td>@Html.TextBoxFor(m => m.levelEdit, new { @class = "form-control" })</td>
  15. <td>
  16. <input type="submit" value="Update User" class="btn green uppercase" style="width: 100%;" />
  17. <input type="submit" value="Delete User" class="btn green uppercase" style="width: 100%;" />
  18. </td>
  19. </tr>
  20. }
  21. }
Add Comment
Please, Sign In to add comment