demo20230512/Areas/admin/Views/LCA/Create.cshtml
2023-05-12 10:20:28 +08:00

72 lines
2.4 KiB
Plaintext

@using Resources
@model Weee.Models.LCA
@{
ViewBag.Title = Resource.StaticLabelLCAList;
Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml";
}
<h2>Create</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>LCA</h4>
<hr />
@Html.ValidationSummary(true)
<div class="form-group">
@Html.LabelFor(model => model.StartDate, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.StartDate)
@Html.ValidationMessageFor(model => model.StartDate, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.EndDate, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.EndDate)
@Html.ValidationMessageFor(model => model.EndDate, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.DeadLine, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.DeadLine)
@Html.ValidationMessageFor(model => model.DeadLine, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.VerifierCompanyID, "VerifierCompanyID", new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownList("VerifierCompanyID", String.Empty)
@Html.ValidationMessageFor(model => model.VerifierCompanyID, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Status, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Status)
@Html.ValidationMessageFor(model => model.Status, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Create" class="btn btn-default" />
</div>
</div>
</div>
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>