<%@ Page Title="" ValidateRequest="false" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Maticsoft.Model.News>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	增加新闻
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>增加新闻</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>输入信息</legend>
            <p>
                <label for="Heading">标题：</label>
                <%= Html.TextBox("Heading")%>
                <%= Html.ValidationMessage("Heading", "*")%>
            </p>
            <p>
                <label for="Content">内容：</label>
                <%= Html.TextArea("Content")%>
                <%= Html.ValidationMessage("Content", "*")%>
            </p>
            <p>
                <label for="Focus">关键字：</label>
                <%= Html.TextBox("Focus")%>
                <%= Html.ValidationMessage("Focus", "*")%>
            </p>
            <p>
                <label for="Dormancy">是否发布：</label>
                <%= Html.CheckBox("Dormancy",true)%>发布
                <%= Html.ValidationMessage("Dormancy", "*")%>
            </p>
            <p>
                <input type="submit" value=" 保存 " />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("返回列表", "List") %>
    </div>

</asp:Content>

