Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml @ 118:b74734a1a755
Manejo de eventos por estado
author | Nelo@Kenia.neluz.int |
---|---|
date | Wed, 22 Jun 2011 09:32:59 -0300 |
parents | 53bcd338542b |
children | 6f1041301797 |
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) } @if (item.PuedeModificar) { @Html.ActionLink("Modificar", "Modificar", new { id = item.Id }) } @if (item.PuedeConfirmar) { @Html.ActionLink("Confirmar", "Confirmar", new { id = item.Id }) } @if (item.PuedePublicar) { @Html.ActionLink("Publicar", "Publicar", new { id = item.Id }) } </td> </tr> } </tbody> </table> <p> @Html.ActionLink("Nuevo", "Nuevo") @Html.ActionLink("Proponer", "Proponer") </p>