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

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Schvalování videopříspěvků
</asp:Content>

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

<h2>Schvalování videopříspěvků</h2>

<table>
    <tr>
        <th>
            <%: Html.DisplayNameFor(model => model.author) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.disabled) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.videoLink) %>
        </th>
        <th>
            <%: Html.DisplayNameFor(model => model.created) %>
        </th>
        <th></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.author) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.disabled) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.videoLink) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.created) %>
        </td>
        <td>
            <%: Html.ActionLink("Nastavit", "ApproveSet", new { id=item.id }) %> |
            <%: Html.ActionLink("Detail", "Details", new { id=item.id }) %>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>

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