public
Created

  • Download Gist
gistfile1.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<table>
<thead>
<tr>
<th>Category Name</th>
<th>Enabled?</th>
<th>&nbsp;</th>
</tr>
</thead>
@for (int i = 0; i < Model.Categories.Count; i++)
{
<tr class="category">
<td>@Model.Categories[i].Name</td>
<td class="@(Model.Categories[i].Enabled ? "enabled" : "disabled")">@(Model.Categories[i].Enabled ? "yes" : "no")</td>
<td><a href="@Url.Action("CategoriesEdit", "Admin")"></a></td>
</tr>
}
</table>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.