annotate Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml @ 185:2d02adb79322

Se agrega fecha de termino de un Evento y se incluye la hora a la fecha de inicio. Se modifica la propiedad Fecha del Evento, renombrandola FechaInicio. En el ModelView se agrega propiedades Duración y Hora del Evento cuando es Modificado, Nuevo y Agendado. Las fechas ingresadas son creadas en sistema UTC Queda pendiente Agregar duración a Google Calendar.
author alabra
date Tue, 09 Aug 2011 01:04:27 -0400
parents 212c664db5aa
children 6944c54f834f
rev   line source
34
475be11edf56 Ajuste en los nombre de los assemblies y namespaces
nelo@MTEySS.neluz.int
parents: 25
diff changeset
1 @model AltNetHispano.Agendas.Web.Models.EventoIndexModel
48
08dbe42fdde1 Cambios menores en UI
nelopauselli
parents: 34
diff changeset
2 <h2>Agenda</h2>
25
e8d2be47a6b0 Cambios de nombre en Portal.Web (Agenda x Evento)
nelo@MTEySS.neluz.int
parents:
diff changeset
3 <p>
e8d2be47a6b0 Cambios de nombre en Portal.Web (Agenda x Evento)
nelo@MTEySS.neluz.int
parents:
diff changeset
4 Los próximos eventos son:
e8d2be47a6b0 Cambios de nombre en Portal.Web (Agenda x Evento)
nelo@MTEySS.neluz.int
parents:
diff changeset
5 </p>
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
6 <div id="content">
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
7 <table>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
8 <thead>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
9 <tr>
185
2d02adb79322 Se agrega fecha de termino de un Evento y se incluye la hora a la fecha de inicio.
alabra
parents: 183
diff changeset
10 <th>Fecha (GMT +0)</th>
2d02adb79322 Se agrega fecha de termino de un Evento y se incluye la hora a la fecha de inicio.
alabra
parents: 183
diff changeset
11 <th>Duraci&oacute;n</th>
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
12 <th>Evento</th>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
13 <th>Estado</th>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
14 <th>Acciones</th>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
15 </tr>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
16 </thead>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
17 <tbody>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
18 @foreach (var item in Model.ProximosEventos)
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
19 {
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
20 <tr>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
21 <td>@item.Fecha</td>
185
2d02adb79322 Se agrega fecha de termino de un Evento y se incluye la hora a la fecha de inicio.
alabra
parents: 183
diff changeset
22 <td>@item.Duracion</td>
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
23 <td>@item.Titulo</td>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
24 <td>@item.Estado</td>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
25 <td class="buttons">
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
26 @if (item.PuedeAgendar)
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
27 {
173
3095a0b960c8 Ticket 153: UI de Publicar. Se agregó ui-button-confirm a botones que requieren confirmación y el comportamiento.
juanjose.montesdeocaarbos
parents: 168
diff changeset
28 @Html.ActionLink("Agendar", "Agendar", "Evento", new { id = item.Id }, null)
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
29 <span>&nbsp;</span>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
30 }
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
31 @if (item.PuedeModificar)
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
32 {
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
33 @Html.ActionLink("Modificar", "Modificar", new { id = item.Id })
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
34 <span>&nbsp;</span>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
35 }
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
36 @if (item.PuedeConfirmar)
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
37 {
173
3095a0b960c8 Ticket 153: UI de Publicar. Se agregó ui-button-confirm a botones que requieren confirmación y el comportamiento.
juanjose.montesdeocaarbos
parents: 168
diff changeset
38 @Html.ActionLink("Confirmar", "Confirmar", new { id = item.Id }, new { @class = "ui-button-confirm" })
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
39 <span>&nbsp;</span>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
40 }
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
41 @if (item.PuedePublicar)
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
42 {
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
43 @Html.ActionLink("Publicar", "Publicar", new { id = item.Id })
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
44 <span>&nbsp;</span>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
45 }
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
46 @if (item.PuedeCancelar)
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
47 {
173
3095a0b960c8 Ticket 153: UI de Publicar. Se agregó ui-button-confirm a botones que requieren confirmación y el comportamiento.
juanjose.montesdeocaarbos
parents: 168
diff changeset
48 @Html.ActionLink("Cancelar", "Cancelar", new { id = item.Id }, new { @class = "ui-button-confirm"})
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
49 <span>&nbsp;</span>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
50 }
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
51 @if (item.PuedeDescartar)
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
52 {
173
3095a0b960c8 Ticket 153: UI de Publicar. Se agregó ui-button-confirm a botones que requieren confirmación y el comportamiento.
juanjose.montesdeocaarbos
parents: 168
diff changeset
53 @Html.ActionLink("Descartar", "Descartar", new { id = item.Id }, new { @class = "ui-button-confirm"})
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
54 <span>&nbsp;</span>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
55 }
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
56 @if (item.PuedeReAgendar)
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
57 {
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
58 @Html.ActionLink("Re-Agendar", "ReAgendar", new { id = item.Id })
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
59 <span>&nbsp;</span>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
60 }
183
212c664db5aa Generalización del manejo de las acciones sobre eventos
nelopauselli
parents: 177
diff changeset
61 <!--
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
62 @if (item.PuedeReProponer)
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
63 {
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
64 @Html.ActionLink("Re-Proponer", "ReProponer", new { id = item.Id })
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
65 <span>&nbsp;</span>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
66 }
183
212c664db5aa Generalización del manejo de las acciones sobre eventos
nelopauselli
parents: 177
diff changeset
67 -->
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
68 </td>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
69 </tr>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
70 }
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
71 </tbody>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
72 </table>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
73 </div>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
74 <div class="buttons">
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
75 @Html.ActionLink("Nuevo", "Nuevo")
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 133
diff changeset
76 </div>