comparison 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
comparison
equal deleted inserted replaced
117:7ef7e4bb71f6 118:b74734a1a755
6 <table> 6 <table>
7 <thead> 7 <thead>
8 <tr> 8 <tr>
9 <th>Fecha</th> 9 <th>Fecha</th>
10 <th>Evento</th> 10 <th>Evento</th>
11 <th>Estado</th>
11 <th>Acciones</th> 12 <th>Acciones</th>
12 </tr> 13 </tr>
13 </thead> 14 </thead>
14 <tbody> 15 <tbody>
15 @foreach (var item in Model.ProximosEventos) 16 @foreach (var item in Model.ProximosEventos)
16 { 17 {
17 <tr> 18 <tr>
18 <td>@item.Fecha.ToShortDateString()</td> 19 <td>@item.Fecha</td>
19 <td>@item.Titulo</td> 20 <td>@item.Titulo</td>
21 <td>@item.Estado</td>
20 <td> 22 <td>
23 @if (item.PuedeAgendar)
24 {
25 @Html.ActionLink("Agendar", "Agendar", "Evento", new { id = item.Id }, null)
26 }
21 @if (item.PuedeModificar) 27 @if (item.PuedeModificar)
22 { 28 {
23 @Html.ActionLink("Modificar", "Edit", new { id = item.Id }) 29 @Html.ActionLink("Modificar", "Modificar", new { id = item.Id })
24 } 30 }
25 @if (item.PuedeConfirmar) 31 @if (item.PuedeConfirmar)
26 { 32 {
27 @Html.ActionLink("Confirmar", "Confirm", new { id = item.Id }) 33 @Html.ActionLink("Confirmar", "Confirmar", new { id = item.Id })
28 } 34 }
29 @if (item.PuedePublicar) 35 @if (item.PuedePublicar)
30 { 36 {
31 @Html.ActionLink("Publicar", "Publish", new { id = item.Id }) 37 @Html.ActionLink("Publicar", "Publicar", new { id = item.Id })
32 } 38 }
33 </td> 39 </td>
34 </tr> 40 </tr>
35 } 41 }
36 </tbody> 42 </tbody>
37 </table> 43 </table>
38 44
39 <p> 45 <p>
40 @Html.ActionLink("Nuevo", "New") 46 @Html.ActionLink("Nuevo", "Nuevo")
47 @Html.ActionLink("Proponer", "Proponer")
41 </p> 48 </p>