view Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml @ 173:3095a0b960c8

Ticket 153: UI de Publicar. Se agregó ui-button-confirm a botones que requieren confirmación y el comportamiento.
author juanjose.montesdeocaarbos
date Mon, 08 Aug 2011 06:13:34 -0300
parents 97e51ddeeb58
children 784d81e32366
line wrap: on
line source

@model AltNetHispano.Agendas.Web.Models.EventoIndexModel
<h2>Agenda</h2>
<p>
    Los próximos eventos son:
</p>
<div id="content">
	<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 class="buttons">
						@if (item.PuedeAgendar)
						{
							@Html.ActionLink("Agendar", "Agendar", "Evento", new { id = item.Id }, null)
							<span>&nbsp;</span>
						}
						@if (item.PuedeModificar)
						{
							@Html.ActionLink("Modificar", "Modificar", new { id = item.Id })
							<span>&nbsp;</span>
						}
						@if (item.PuedeConfirmar)
						{
							@Html.ActionLink("Confirmar", "Confirmar", new { id = item.Id }, new { @class = "ui-button-confirm" })
							<span>&nbsp;</span>
						}
						@if (item.PuedePublicar)
						{
							@Html.ActionLink("Publicar", "Publicar", new { id = item.Id })
							<span>&nbsp;</span>
						}
						@if (item.PuedeCancelar)
						{
							@Html.ActionLink("Cancelar", "Cancelar", new { id = item.Id }, new { @class = "ui-button-confirm"})
							<span>&nbsp;</span>
						}
						@if (item.PuedeDescartar)
						{
							@Html.ActionLink("Descartar", "Descartar", new { id = item.Id }, new { @class = "ui-button-confirm"})
							<span>&nbsp;</span>
						}
						@if (item.PuedeReAgendar)
						{
							@Html.ActionLink("Re-Agendar", "ReAgendar", new { id = item.Id })
							<span>&nbsp;</span>
						}
						@if (item.PuedeReProponer)
						{
							@Html.ActionLink("Re-Proponer", "ReProponer", new { id = item.Id })
							<span>&nbsp;</span>
						}
					</td>
				</tr>
			}
		</tbody>
	</table>
</div>
<div class="buttons">
	@Html.ActionLink("Nuevo", "Nuevo")
	@Html.ActionLink("Proponer", "Proponer")
</div>