Basic implementation - largely untested

This commit is contained in:
2014-01-20 22:40:40 -05:00
parent 6fbde2bc13
commit 1feda1b520
5 changed files with 194 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
@model MileageTraker.Web.ViewModels.CreateLog.EditPastViewModel
@{
ViewBag.Title = "Edit Mileage Log";
}
@Html.Partial("_StatusMessage")
<h2 class="center-content">@ViewBag.Title</h2>
@using (Html.BeginForm("EditPast", "CreateLog", FormMethod.Post, new { @class = "form-horizontal well center-content" }))
{
<fieldset>
<legend></legend>
@Html.Partial("_ValidationSummary")
@Html.EditorForModel()
<div class="form-actions">
<input type="submit" value="Submit" class="btn btn-primary" />
</div>
</fieldset>
}
+4
View File
@@ -20,6 +20,7 @@
<th>
Type
</th>
<th></th>
</tr>
</thead>
@foreach (var log in Model)
@@ -37,6 +38,9 @@
<td>
@Html.Encode(log.LogType.Enum.GetDisplayName())
</td>
<td>
@Html.ActionLink("Edit", "EditPast", new { id = log.LogId }, new { @class = "btn btn-mini" })
</td>
</tr>
}
</table>