Advertisement
Guest User

Students.cshtml

a guest
Jun 25th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. @model BAA_WEB.Models.LoginViewModel
  2. @{
  3. ViewBag.Title = "Students";
  4. Layout = "~/Views/Shared/_UserLayout.cshtml";
  5. }
  6.  
  7.  
  8.  
  9.  
  10.  
  11. <div class="profileWrapper StudentList">
  12. <h2>Student Controlpanel</h2>
  13. <div class="table-responsive">
  14. <table class="table table-hover table-dark">
  15. <tr>
  16.  
  17. <th class="usernameWidth">
  18. <p>Username</p>
  19. </th>
  20. <th class="hideINFO">
  21. <p>FirstName</p>
  22. </th>
  23. <th class="hideINFO">
  24. <p>LastName</p>
  25. </th>
  26.  
  27. <th>EDIT</th>
  28. </tr>
  29.  
  30. @foreach (var item in Model.userlist)
  31. {
  32. <tr>
  33.  
  34. <td class="usernameWidth">
  35. @Html.DisplayFor(modelItem => item.UserName)
  36. </td>
  37. <td class="hideINFO">
  38. @Html.DisplayFor(modelItem => item.FirstName)
  39. </td>
  40. <td class="hideINFO">
  41. @Html.DisplayFor(modelItem => item.LastName)
  42. @*<img class="img-thumbnail" width="75" src="~/Content/img/emner/@Html.DisplayFor(modelItem => item.Billede)" />*@
  43. </td>
  44.  
  45. <td class="editButtons">
  46. <a href="@Url.Action("EditStudent", "User", new { id = item.UserId })"> <img class="editIcons" src="~/Content/img/EditIcons/editButton.svg" alt="" /> </a> |
  47. <a href="@Url.Action("Profil", "User", new { id = item.UserId })"> <img class="editIcons editProfile" src="~/Content/img/EditIcons/profileButton.svg" alt="" /> </a> |
  48. <a href="@Url.Action("RemoveStudent", "User", new { id = item.UserId })"> <img class="editIcons editDelete" src="~/Content/img/EditIcons/deleteButton.svg" alt="" /> </a>
  49.  
  50.  
  51. </td>
  52. </tr>
  53. }
  54.  
  55. </table>
  56.  
  57. </div>
  58. <p class="createButton">
  59. @Html.ActionLink("Create New User", "Opret", "Admin", null, new { @class = "btn btn-success btn-xs" })
  60. </p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement