view Agendas/trunk/src/Agendas.Web/Views/Shared/DefaultEditor.cshtml @ 257:730b80afa70d

Ticket #191: Perfil de Usuarios
author juanjose.montesdeocaarbos
date Wed, 19 Oct 2011 09:19:20 -0300
parents b43dc14886e3
children bf993f99cee3
line wrap: on
line source

<h2>@Html.GetTitleForModel()</h2>
<p>
    @Html.GetDescriptionForModel()
</p>

<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 src="@Url.Content("~/Scripts/subpanels-0.9.js")" type="text/javascript"></script>
<link rel="stylesheet" href="@Url.Content("~/Content/subpanels-0.9.css")" type="text/css" />

<script type="text/javascript">
	$(document).ready(function () {
		$("form:first").submit(function () {
			$("#Ponentes option").each(function () {
				$(this).attr("selected", "selected");
			});
		});
	});
</script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <div>
        <fieldset>
            <legend>@Html.GetLegendForModel()</legend>
			<div id="content">
				@Html.EditorForModel()
			</div>
            <div class="buttons">
                <input type="submit" value="@LayoutResources.SaveButton" />
                @Html.ActionLink(@LayoutResources.CancelButton, "Index")
            </div>
        </fieldset>
    </div>
}