view Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml @ 148:c99636fbdc5f

Ticket 155: Agregar Nro de Orden, Tipo y Duración real en la pantalla de Histórico, similar a como es la página actual en altnethispano.org. Pendiente: Falta que tome la duración cargada.
author juanjose.montesdeocaarbos
date Tue, 02 Aug 2011 23:05:50 -0300
parents 6f1041301797
children 97e51ddeeb58
line wrap: on
line source

@model AltNetHispano.Agendas.Web.Models.EventoIndexModel
<h2>Agenda</h2>
<p>
    Los próximos eventos son:
</p>
<table>
    <thead>
        <tr>
            <th>Fecha</th>
            <th>Evento</th>
            <th>Estado</th>
            <th>Acciones</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.ProximosEventos)
        {
            <tr>
                <td>@item.Fecha</td>
                <td>@item.Titulo</td>
                <td>@item.Estado</td>
                <td>
                    @if (item.PuedeAgendar)
                    {
                        @Html.ActionLink("Agendar", "Agendar", "Evento", new {id = item.Id}, null)
                        <span>&nbsp;</span>
                    }
                    @if (item.PuedeModificar)
                    {
                        @Html.ActionLink("Modificar", "Modificar", new { id = item.Id })
                        <span>&nbsp;</span>
                    }
                    @if (item.PuedeConfirmar)
                    {
                        @Html.ActionLink("Confirmar", "Confirmar", new { id = item.Id })
                        <span>&nbsp;</span>
                    }
                    @if (item.PuedePublicar)
                    {
                        @Html.ActionLink("Publicar", "Publicar", new { id = item.Id })
                        <span>&nbsp;</span>
                    }
                    @if (item.PuedeCancelar)
                    {
                        @Html.ActionLink("Cancelar", "Cancelar", new { id = item.Id })
                        <span>&nbsp;</span>
                    }
                    @if (item.PuedeDescartar)
                    {
                        @Html.ActionLink("Descartar", "Descartar", new { id = item.Id })
                        <span>&nbsp;</span>
                    }
                    @if (item.PuedeReAgendar)
                    {
                        @Html.ActionLink("Re-Agendar", "ReAgendar", new { id = item.Id })
                        <span>&nbsp;</span>
                    }
                    @if (item.PuedeReProponer)
                    {
                        @Html.ActionLink("Re-Proponer", "ReProponer", new { id = item.Id })
                        <span>&nbsp;</span>
                    }
                </td>
            </tr>
        }
    </tbody>
</table>
    
<p>
@Html.ActionLink("Nuevo", "Nuevo")
@Html.ActionLink("Proponer", "Proponer")
</p>