Add index and create
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
@model MileageTraker.Web.Models.City
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Create City";
|
||||
}
|
||||
|
||||
<h2 class="center-content">@ViewBag.Title</h2>
|
||||
|
||||
@using (Html.BeginForm("Create", "City", FormMethod.Post, new { @class = "form-horizontal well center-content" }))
|
||||
{
|
||||
@Html.Partial("_ValidationSummary")
|
||||
<fieldset>
|
||||
<legend></legend>
|
||||
@Html.DisplayFor(m => m.County)
|
||||
@* <div class="control-group">
|
||||
<div class="control-label">
|
||||
@Html.DisplayNameFor(m => m.County)
|
||||
</div>
|
||||
<div class="controls">
|
||||
@Html.DisplayTextFor(m => m.County)
|
||||
</div>
|
||||
</div>*@
|
||||
@Html.HiddenFor(m => m.County)
|
||||
|
||||
@Html.EditorFor(m => m.Name)
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</fieldset>
|
||||
}
|
||||
Reference in New Issue
Block a user