mesa-fab-approval/Fab2ApprovalSystem/Views/Training/ViewMyTrainingAssignments.cshtml
Jonathan Ouellette 580e90f6a2 initial add
2022-09-27 14:10:30 -07:00

63 lines
1.3 KiB
Plaintext

@model IEnumerable<Fab2ApprovalSystem.ViewModels.ECNTrainingAssignments>
@{
ViewBag.Title = "View My Training Assignments";
Layout = "~/Views/Home/_HomeLayout.cshtml";
}
<h2>My Training Assignments</h2>
<style>
tr:nth-child(even){
background: #CCC
}
tr:nth-child(odd) {
background: #FFF
}
</style>
<table class="table">
<tr>
<th>
ECN#
</th>
<th>
Date Assigned
</th>
<th>
Date Completed
</th>
<th>
Status
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.ActionLink(item.ECN_ID.ToString(), "ReadOnly", "ECN", new { issueID = item.ECN_ID }, new { target = "_blank" })
@*@Html.DisplayFor(modelItem => item.ECN_ID)*@
</td>
<td>
@Html.DisplayFor(modelItem => item.DateAssigned)
</td>
<td>
@Html.DisplayFor(modelItem => item.DateCompleted)
</td>
@if (item.Status)
{
<td>Completed</td>
}
else
{
<td>Not Completed</td>
}
<td>
@Html.ActionLink("View Documents", "ViewMyTrainingAssignment", new { assignmentID = item.TrainingAssignmentID, ECNNumber = item.ECN_ID})
</td>
</tr>
}
</table>