2018-05-04 00:22:10 -04:00
|
|
|
@model SharedLibraryCore.Objects.Penalty.PenaltyType
|
2018-05-05 18:52:04 -04:00
|
|
|
@{
|
|
|
|
var loc = SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex;
|
|
|
|
}
|
2018-05-04 00:22:10 -04:00
|
|
|
<h4 class="pb-2 text-center ">@ViewBag.Title</h4>
|
|
|
|
<div class="row">
|
|
|
|
<select class="form-control bg-dark text-muted" id="penalty_filter_selection">
|
|
|
|
@{
|
|
|
|
foreach (var penaltyType in Enum.GetValues(typeof(SharedLibraryCore.Objects.Penalty.PenaltyType)))
|
|
|
|
{
|
|
|
|
if ((SharedLibraryCore.Objects.Penalty.PenaltyType)penaltyType == SharedLibraryCore.Objects.Penalty.PenaltyType.Any)
|
|
|
|
{
|
|
|
|
if (Model == SharedLibraryCore.Objects.Penalty.PenaltyType.Any)
|
|
|
|
{
|
2018-05-05 18:52:04 -04:00
|
|
|
<option value="@Convert.ToInt32(penaltyType)" selected="selected" )>@loc["WEBFRONT_PENALTY_TEMPLATE_SHOW"] @penaltyType.ToString()</option>
|
2018-05-04 00:22:10 -04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-05-05 18:52:04 -04:00
|
|
|
<option value="@Convert.ToInt32(penaltyType)" )>@loc["WEBFRONT_PENALTY_TEMPLATE_SHOW"] @penaltyType.ToString()</option>
|
2018-05-04 00:22:10 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ((SharedLibraryCore.Objects.Penalty.PenaltyType)penaltyType == Model)
|
|
|
|
{
|
2018-05-05 18:52:04 -04:00
|
|
|
<option value="@Convert.ToInt32(penaltyType)" selected="selected">@loc["WEBFRONT_PENALTY_TEMPLATE_SHOWONLY"] @penaltyType.ToString()s</option>
|
2018-05-04 00:22:10 -04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-05-05 18:52:04 -04:00
|
|
|
<option value="@Convert.ToInt32(penaltyType)" )>@loc["WEBFRONT_PENALTY_TEMPLATE_SHOWONLY"] @penaltyType.ToString()s</option>
|
2018-05-04 00:22:10 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</select>
|
|
|
|
</div>
|
2018-02-21 20:29:23 -05:00
|
|
|
<div class="row">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead class="d-none d-md-table-header-group">
|
|
|
|
<tr class="bg-primary pt-2 pb-2">
|
2018-05-05 18:52:04 -04:00
|
|
|
<th scope="col">@loc["WEBFRONT_PENALTY_TEMPLATE_NAME"]</th>
|
|
|
|
<th scope="col">@loc["WEBFRONT_PENALTY_TEMPLATE_TYPE"]</th>
|
|
|
|
<th scope="col">@loc["WEBFRONT_PENALTY_TEMPLATE_OFFENSE"]</th>
|
|
|
|
<th scope="col">@loc["WEBFRONT_PENALTY_TEMPLATE_ADMIN"]</th>
|
|
|
|
<th scope="col" class="text-right">@loc["WEBFRONT_PENALTY_TEMPLATE_TIME"]</th>
|
2018-02-21 20:29:23 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="penalty_table" class="border-bottom bg-dark">
|
2018-05-04 00:22:10 -04:00
|
|
|
@await Component.InvokeAsync("PenaltyList", new WebfrontCore.ViewModels.PenaltyFilterInfo()
|
|
|
|
{
|
|
|
|
Offset = 0,
|
|
|
|
ShowOnly = Model
|
|
|
|
})
|
2018-02-21 20:29:23 -05:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<table class="table d-table d-md-none">
|
|
|
|
<tbody></tbody>
|
|
|
|
</table>
|
2018-04-16 16:31:14 -04:00
|
|
|
<span id="load_penalties_button" class="oi oi-chevron-bottom text-center text-primary w-100 h3 pb-0 mb-0 d-none d-md-block"></span>
|
2018-02-21 20:29:23 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@section scripts {
|
2018-04-09 23:33:42 -04:00
|
|
|
<environment include="Development">
|
|
|
|
<script type="text/javascript" src="~/js/penalty.js"></script>
|
|
|
|
</environment>
|
2018-05-04 00:22:10 -04:00
|
|
|
}
|