Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml @ 116:53bcd338542b
acciones de confirmar y publicar desde la UI
author | Nelo@Kenia.neluz.int |
---|---|
date | Sun, 19 Jun 2011 13:00:02 -0300 |
parents | 2adf55ea9199 |
children | b74734a1a755 |
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>Acciones</th> </tr> </thead> <tbody> @foreach (var item in Model.ProximosEventos) { <tr> <td>@item.Fecha.ToShortDateString()</td> <td>@item.Titulo</td> <td> @if (item.PuedeModificar) { @Html.ActionLink("Modificar", "Edit", new { id = item.Id }) } @if (item.PuedeConfirmar) { @Html.ActionLink("Confirmar", "Confirm", new { id = item.Id }) } @if (item.PuedePublicar) { @Html.ActionLink("Publicar", "Publish", new { id = item.Id }) } </td> </tr> } </tbody> </table> <p> @Html.ActionLink("Nuevo", "New") </p>