Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model HookWebAdmin.ParentViewModel.ParentsViewModel
- @foreach (var item in Model.Users)
- {
- using (Html.BeginForm("SubmitText", "Home", FormMethod.Post, new { @class = "login-form", role = "form" }))
- {
- <tr>
- <td>@item.username</td> //Display result from Model.Users
- <td>@item.pwd</td>
- <td>@item.lvl</td>
- //Let user edit information.
- @model HookWebAdmin.ParentViewModel.AccountEditView
- <td>@Html.TextBoxFor(m => m.usernameEdit, new { @class = "form-control" })</td>
- <td>@Html.TextBoxFor(m => m.passwordEdit, new { @class = "form-control" })</td>
- <td>@Html.TextBoxFor(m => m.levelEdit, new { @class = "form-control" })</td>
- <td>
- <input type="submit" value="Update User" class="btn green uppercase" style="width: 100%;" />
- <input type="submit" value="Delete User" class="btn green uppercase" style="width: 100%;" />
- </td>
- </tr>
- }
- }
Add Comment
Please, Sign In to add comment