Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
105 lines (88 sloc) 3.15 KB
@model PeerLearn.Web.Models.NewEvent
@{
View.Title = "Create";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Create</h2>
@using (Html.BeginForm("Create","Event")) {
@Html.ValidationSummary(true)
<fieldset>
<legend>Fields</legend>
<div class="editor-label">
@Html.LabelFor(model => model.EventName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.EventName)
@Html.ValidationMessageFor(model => model.EventName)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.EventDescription)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.EventDescription)
@Html.ValidationMessageFor(model => model.EventDescription)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.EventBeginTime)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.EventBeginTime)
@Html.ValidationMessageFor(model => model.EventBeginTime)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.EventEndTime)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.EventEndTime)
@Html.ValidationMessageFor(model => model.EventEndTime)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.RegistrationBegins)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.RegistrationBegins)
@Html.ValidationMessageFor(model => model.RegistrationBegins)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.StreetAddress)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.StreetAddress)
@Html.ValidationMessageFor(model => model.StreetAddress)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.StreetAddress2)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.StreetAddress2)
@Html.ValidationMessageFor(model => model.StreetAddress2)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.City)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.City)
@Html.ValidationMessageFor(model => model.City)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.State)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.State)
@Html.ValidationMessageFor(model => model.State)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.PostalCode)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.PostalCode)
@Html.ValidationMessageFor(model => model.PostalCode)
</div>
<p>
<input type="submit" value="Create Event" />
</p>
</fieldset>
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>