view Agendas/trunk/src/Agendas.Web/Views/Evento/Nuevo.cshtml @ 118:b74734a1a755

Manejo de eventos por estado
author Nelo@Kenia.neluz.int
date Wed, 22 Jun 2011 09:32:59 -0300
parents
children a5ff4de4a1d3
line wrap: on
line source

@model AltNetHispano.Agendas.Web.Models.EventoNewModel
<h2>Agenda</h2>
<p>
    Complete los siguiente datos para agendar un nuevo evento
</p>

<link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-ui.js")" type="text/javascript"></script>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<script type="text/javascript">
	$(document).ready(function () {
		$("#Fecha").datepicker({ dateFormat: 'dd-mm-yy' });
	});
</script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Los datos ingresados no son validos, por favor verifíquelos")
    <div>
        <fieldset>
            <legend>Datos del evento:</legend>

            <div class="editor-label">
              @Html.LabelFor(model=>model.Tipo)
            </div>
            <div class="editor-field">
              @Html.DropDownListFor(model => model.Tipo, new SelectList(Model.Tipos, "TipoEvento", "TipoEventoStr"))
              @Html.ValidationMessageFor(model => model.Tipo)
            </div>

            <div class="editor-label">
              @Html.LabelFor(model=>model.Titulo)
            </div>
            <div class="editor-field">
              @Html.EditorFor(model=>model.Titulo)
              @Html.ValidationMessageFor(model => model.Titulo)
            </div>

            <div class="editor-label">
              @Html.LabelFor(model=>model.Ponente)
            </div>
            <div class="editor-field">
              @Html.EditorFor(model=>model.Ponente)
              @Html.ValidationMessageFor(model => model.Ponente)
            </div>

            <div class="editor-label">
              @Html.LabelFor(model=>model.Fecha)
            </div>
            <div class="editor-field">
              @Html.EditorFor(model=>model.Fecha)
              @Html.ValidationMessageFor(model => model.Fecha)
            </div>

            <div class="editor-label">
              @Html.LabelFor(model=>model.UrlInvitacion)
            </div>
            <div class="editor-field">
              @Html.EditorFor(model => model.UrlInvitacion)
              @Html.ValidationMessageFor(model => model.UrlInvitacion)
            </div>

            <p>
                <input type="submit" value="Guardar" />
            </p>
        </fieldset>
    </div>
}