show hidden with grey background

This commit is contained in:
2017-04-08 00:34:21 +02:00
parent e6fa3834be
commit 88dd84c56e

View File

@ -3,7 +3,13 @@
@{
ViewData["Title"] = "Index";
}
@section scripts {
<script>
$(document).ready(function(){
$("tr[data-hidden=True]").css('background-color','grey')
})
</script>
}
<h2>Index</h2>
<p>
@ -39,7 +45,7 @@
</tr>
@foreach (var item in Model) {
<tr>
<tr data-hidden="@item.Hidden">
<td>
<a name="@item.Code" class="btn btn-link"></a> @Html.DisplayFor(modelItem => item.Name)
</td>