A little more cleanup to the user management index

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044456
This commit is contained in:
skewed
2009-12-22 17:47:19 +00:00
parent 576d33811e
commit 645f0a08b8

View File

@@ -5,38 +5,40 @@
<h2>Manage Users</h2>
<% using (Html.BeginForm()) { %>
<%=Html.ValidationSummary()%>
<%=Html.ActionLink("Add a new user", "Create", new { }, new { @class = "floatRight topSpacer" })%>
<table class="items">
<colgroup>
<col id="Name" />
<col id="Email" />
<col id="Edit" />
</colgroup>
<thead>
<div class="manage"><%=Html.ActionLink("Add a new user", "Create", new { }, new { @class = "button" })%></div>
<fieldset>
<table class="items">
<colgroup>
<col id="Name" />
<col id="Email" />
<col id="Edit" />
</colgroup>
<thead>
<tr>
<th scope="col">
Name
</th>
<th scope="col">
Email
</th>
<th scope="col">
</th>
</tr>
</thead>
<% foreach (var row in Model.Rows)
{ %>
<tr>
<th scope="col">
Name
</th>
<th scope="col">
Email
</th>
<th scope="col">
</th>
<td>
<%=Html.Encode(row.User.UserName)%>
</td>
<td>
<%=Html.Encode(row.User.Email)%>
</td>
<td>
<%=Html.ActionLink("Edit", "Edit", new { row.User.Id })%>
</td>
</tr>
</thead>
<% foreach (var row in Model.Rows)
{ %>
<tr>
<td>
<%=Html.Encode(row.User.UserName)%>
</td>
<td>
<%=Html.Encode(row.User.Email)%>
</td>
<td>
<%=Html.ActionLink("Edit", "Edit", new { row.User.Id })%>
</td>
</tr>
<%}%>
</table>
<%}%>
</table>
</fieldset>
<% } %>