<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<FotbalPortal.Models.Club>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Vytvořit nový klub
</asp:Content>

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

<h2>Vytvořit nový klub</h2>

<% using (Html.BeginForm()) { %>
    <%: Html.AntiForgeryToken() %>
    <%: Html.ValidationSummary(true) %>

    <fieldset>
        <legend>Klub</legend>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.name) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.name) %>
            <%: Html.ValidationMessageFor(model => model.name) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.countryID, "country") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("countryID", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.countryID) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.categoryID, "category") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("categoryId", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.categoryID) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.yearFounded) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.yearFounded) %>
            <%: Html.ValidationMessageFor(model => model.yearFounded) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.info) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.info) %>
            <%: Html.ValidationMessageFor(model => model.info) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.email) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.email) %>
            <%: Html.ValidationMessageFor(model => model.email) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.tel) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.tel) %>
            <%: Html.ValidationMessageFor(model => model.tel) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.address) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.address) %>
            <%: Html.ValidationMessageFor(model => model.address) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.stadiumID, "stadium") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("stadiumID", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.stadiumID) %>
        </div>

        <p>
            <input type="submit" value="Vytvořit" />
        </p>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Zpět", "Index") %>
</div>

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
    <%: Scripts.Render("~/bundles/jqueryval") %>
</asp:Content>
