Basic implementation - largely untested
This commit is contained in:
@@ -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>
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user