Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model BAA_WEB.Models.LoginViewModel
- @{
- ViewBag.Title = "Students";
- Layout = "~/Views/Shared/_UserLayout.cshtml";
- }
- <div class="profileWrapper StudentList">
- <h2>Student Controlpanel</h2>
- <div class="table-responsive">
- <table class="table table-hover table-dark">
- <tr>
- <th class="usernameWidth">
- <p>Username</p>
- </th>
- <th class="hideINFO">
- <p>FirstName</p>
- </th>
- <th class="hideINFO">
- <p>LastName</p>
- </th>
- <th>EDIT</th>
- </tr>
- @foreach (var item in Model.userlist)
- {
- <tr>
- <td class="usernameWidth">
- @Html.DisplayFor(modelItem => item.UserName)
- </td>
- <td class="hideINFO">
- @Html.DisplayFor(modelItem => item.FirstName)
- </td>
- <td class="hideINFO">
- @Html.DisplayFor(modelItem => item.LastName)
- @*<img class="img-thumbnail" width="75" src="~/Content/img/emner/@Html.DisplayFor(modelItem => item.Billede)" />*@
- </td>
- <td class="editButtons">
- <a href="@Url.Action("EditStudent", "User", new { id = item.UserId })"> <img class="editIcons" src="~/Content/img/EditIcons/editButton.svg" alt="" /> </a> |
- <a href="@Url.Action("Profil", "User", new { id = item.UserId })"> <img class="editIcons editProfile" src="~/Content/img/EditIcons/profileButton.svg" alt="" /> </a> |
- <a href="@Url.Action("RemoveStudent", "User", new { id = item.UserId })"> <img class="editIcons editDelete" src="~/Content/img/EditIcons/deleteButton.svg" alt="" /> </a>
- </td>
- </tr>
- }
- </table>
- </div>
- <p class="createButton">
- @Html.ActionLink("Create New User", "Opret", "Admin", null, new { @class = "btn btn-success btn-xs" })
- </p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement