Skip to content

Instantly share code, notes, and snippets.

@wayne-o
Created October 31, 2012 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wayne-o/3989099 to your computer and use it in GitHub Desktop.
Save wayne-o/3989099 to your computer and use it in GitHub Desktop.
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment