<%@ 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">
    Detail klubu
</asp:Content>

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

<h2>Detail klubu</h2>

<fieldset>
    <legend>Klub</legend>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.name) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.name) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.country.name) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.country.name) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.yearFounded) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.yearFounded) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.info) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.info) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.email) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.email) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.tel) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.tel) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.address) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.address) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.stadium.name) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.stadium.name) %>
    </div>
</fieldset>
<p>

    <%: Html.ActionLink("Upravit", "Edit", new { id=Model.id }) %> |
    <%: Html.ActionLink("Zpět", "Index") %>  |
    <%: Html.ActionLink("Soupiska", "Team", new { id=Model.id }) %>  |
    
    <% if (ViewBag.favorite == true) { %>
        <%: Html.ActionLink("Odebrat z oblíbených", "Unfavorite", new { clubId=Model.id }, new{@onclick="return confirm('Odebrat klub z oblíbených?')"}) %>    
    <% } else { %>
        <%: Html.ActionLink("Přidat do oblíbených", "Favorite", new { clubId=Model.id }, new{@onclick="return confirm('Přidat klub do oblíbených?')"}) %>
    <% } %>

    
</p>

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
</asp:Content>
