57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
@using EnVisage.Code
|
|
@using EnVisage.Code.HtmlHelpers
|
|
@using EnVisage.Code.BLL
|
|
@using EnVisage.Models
|
|
@model EnVisage.Models.HolidayListModel
|
|
@{
|
|
ViewBag.Title = "Holiday History";
|
|
}
|
|
|
|
<script type="text/javascript">
|
|
emulateNavUrl = "/Calendar";
|
|
</script>
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
|
<h4 class="modal-title">@ViewBag.Title</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="table-light table-responsive">
|
|
<table border="0" class="table table-striped table-bordered" id="holidayHistoryRecords">
|
|
<thead>
|
|
<tr>
|
|
<th>Status</th>
|
|
<th>Effective Date of Change</th>
|
|
<th>Name</th>
|
|
<th>Occurence</th>
|
|
<th>Working Day</th>
|
|
<th>Non-Work Week</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@{
|
|
if ((Model != null) && (Model.Items != null))
|
|
{
|
|
foreach (HolidayModel item in Model.Items)
|
|
{
|
|
<text>
|
|
<tr>
|
|
<td>@item.Status.ToDisplayValue()</td>
|
|
<td>@(item.EffectiveChangeDate.HasValue ? item.EffectiveChangeDate.Value.ToShortDateString() : "")</td>
|
|
<td>@item.Name</td>
|
|
<td>@HolidayModel.GetOccurenceText(item)</td>
|
|
<td>@(item.WorkingDay ? "Yes" : "No")</td>
|
|
<td>@(item.NonWorkingWeek ? "Yes" : "No")</td>
|
|
</tr>
|
|
</text>
|
|
}
|
|
}
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!-- / .modal-body -->
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
</div>
|