<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcApplication2.Models.Course>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Create</h2>
<% Html.EnableClientValidation(); %>
<% using (Html.BeginForm()) {%>
<%: Html.ValidationSummary(true) %>
<fieldset>
<legend>Fields</legend>
<div class="editor-label">
<%: Html.LabelFor(model => model.CourseID) %>
</div>
<div class="editor-field">
<%: Html.TextBoxFor(model => model.CourseID) %>
<%: Html.ValidationMessageFor(model => model.CourseID) %>
</div>
<div class="editor-label">
<%: Html.LabelFor(model => model.Title) %>
</div>
<div class="editor-field">
<%: Html.TextBoxFor(model => model.Title) %>
<%: Html.ValidationMessageFor(model => model.Title) %>
</div>
<div class="editor-label">
<%: Html.LabelFor(model => model.Days) %>
</div>
<div class="editor-field">
<%: Html.TextBoxFor(model => model.Days) %>
<%: Html.ValidationMessageFor(model => model.Days) %>
</div>
<div class="editor-label">
<%: Html.LabelFor(model => model.Time) %>
</div>
<div class="editor-field">
<%: Html.TextBoxFor(model => model.Time) %>
<%: Html.ValidationMessageFor(model => model.Time) %>
</div>
<div class="editor-label">
<%: Html.LabelFor(model => model.Location) %>
</div>
<div class="editor-field">
<%: Html.TextBoxFor(model => model.Location) %>
<%: Html.ValidationMessageFor(model => model.Location) %>
</div>
<div class="editor-label">
<%: Html.LabelFor(model => model.Credits) %>
</div>
<div class="editor-field">
<%: Html.TextBoxFor(model => model.Credits) %>
<%: Html.ValidationMessageFor(model => model.Credits) %>
</div>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
<% } %>
<div>
<%: Html.ActionLink("Back to List", "Index") %>
</div>
</asp:Content>