108 lines
4.8 KiB
Plaintext
108 lines
4.8 KiB
Plaintext
@model Church.Net.Entity.NewVisitor
|
|
|
|
@{
|
|
ViewBag.Title = "Create";
|
|
}
|
|
|
|
<h2>Create</h2>
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
|
|
<div class="form-horizontal">
|
|
<h4>NewVisitor</h4>
|
|
<hr />
|
|
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Id, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.Id, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.Id, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.FirstName, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.FirstName, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.FirstName, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.LastName, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.LastName, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.LastName, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Gender, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EnumDropDownListFor(model => model.Gender, htmlAttributes: new { @class = "form-control" })
|
|
@Html.ValidationMessageFor(model => model.Gender, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Address, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.Address, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.Address, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Phone, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.Phone, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.Phone, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Email, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.ComunityAppId, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.ComunityAppId, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.ComunityAppId, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.VisitingDate, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.VisitingDate, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.VisitingDate, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Note, htmlAttributes: new { @class = "control-label col-md-2" })
|
|
<div class="col-md-10">
|
|
@Html.EditorFor(model => model.Note, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.Note, "", 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>
|