initial add
This commit is contained in:
@ -0,0 +1,62 @@
|
||||
@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>
|
Reference in New Issue
Block a user