Mercurial > altnet-hispano
diff 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 diff
--- a/Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml Sun Jun 19 13:35:34 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml Wed Jun 22 09:32:59 2011 -0300 @@ -8,6 +8,7 @@ <tr> <th>Fecha</th> <th>Evento</th> + <th>Estado</th> <th>Acciones</th> </tr> </thead> @@ -15,21 +16,26 @@ @foreach (var item in Model.ProximosEventos) { <tr> - <td>@item.Fecha.ToShortDateString()</td> + <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", "Edit", new { id = item.Id }) - } + { + @Html.ActionLink("Modificar", "Modificar", new { id = item.Id }) + } @if (item.PuedeConfirmar) - { - @Html.ActionLink("Confirmar", "Confirm", new { id = item.Id }) - } + { + @Html.ActionLink("Confirmar", "Confirmar", new { id = item.Id }) + } @if (item.PuedePublicar) - { - @Html.ActionLink("Publicar", "Publish", new { id = item.Id }) - } + { + @Html.ActionLink("Publicar", "Publicar", new { id = item.Id }) + } </td> </tr> } @@ -37,5 +43,6 @@ </table> <p> -@Html.ActionLink("Nuevo", "New") +@Html.ActionLink("Nuevo", "Nuevo") +@Html.ActionLink("Proponer", "Proponer") </p>