annotate Agendas/trunk/src/Agendas.Web/Views/Shared/DefaultEditor.cshtml @ 278:6f5ab71614d4

#125: ABM de patrocinadores.
author juanjose.montesdeocaarbos
date Wed, 21 Dec 2011 08:47:05 -0300
parents bf993f99cee3
children 5f1e3d35e113
rev   line source
155
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
1 <h2>@Html.GetTitleForModel()</h2>
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
2 <p>
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
3 @Html.GetDescriptionForModel()
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
4 </p>
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
5
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
6 <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
7 <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
8
219
b9850b647a4e Agregando alta de ponente durante la carga del evento
nelopauselli
parents: 208
diff changeset
9 <script src="@Url.Content("~/Scripts/subpanels-0.9.js")" type="text/javascript"></script>
b9850b647a4e Agregando alta de ponente durante la carga del evento
nelopauselli
parents: 208
diff changeset
10 <link rel="stylesheet" href="@Url.Content("~/Content/subpanels-0.9.css")" type="text/css" />
b9850b647a4e Agregando alta de ponente durante la carga del evento
nelopauselli
parents: 208
diff changeset
11
225
f23ee59ef1bd Otros ponentes
nelopauselli
parents: 219
diff changeset
12 <script type="text/javascript">
f23ee59ef1bd Otros ponentes
nelopauselli
parents: 219
diff changeset
13 $(document).ready(function () {
f23ee59ef1bd Otros ponentes
nelopauselli
parents: 219
diff changeset
14 $("form:first").submit(function () {
238
b43dc14886e3 Quitando ponente principal de la UI
nelopauselli
parents: 225
diff changeset
15 $("#Ponentes option").each(function () {
225
f23ee59ef1bd Otros ponentes
nelopauselli
parents: 219
diff changeset
16 $(this).attr("selected", "selected");
f23ee59ef1bd Otros ponentes
nelopauselli
parents: 219
diff changeset
17 });
f23ee59ef1bd Otros ponentes
nelopauselli
parents: 219
diff changeset
18 });
f23ee59ef1bd Otros ponentes
nelopauselli
parents: 219
diff changeset
19 });
f23ee59ef1bd Otros ponentes
nelopauselli
parents: 219
diff changeset
20 </script>
f23ee59ef1bd Otros ponentes
nelopauselli
parents: 219
diff changeset
21
275
bf993f99cee3 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 238
diff changeset
22 @using (Html.BeginForm(
bf993f99cee3 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 238
diff changeset
23 null,
bf993f99cee3 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 238
diff changeset
24 null,
bf993f99cee3 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 238
diff changeset
25 FormMethod.Post,
bf993f99cee3 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 238
diff changeset
26 (ViewData.ModelMetadata.Properties.Count(p => p.ModelType.Name == "HttpPostedFileBase") > 0 ?
bf993f99cee3 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 238
diff changeset
27 new { enctype = "multipart/form-data" } :
bf993f99cee3 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 238
diff changeset
28 null
bf993f99cee3 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 238
diff changeset
29 )
bf993f99cee3 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 238
diff changeset
30 )
bf993f99cee3 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 238
diff changeset
31 )
155
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
32 {
208
607384590bf8 Mejorando el mensaje de error que se muestra cuando hay un error de validación del lado del servidor
nelopauselli
parents: 168
diff changeset
33 @Html.ValidationSummary(true)
155
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
34 <div>
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
35 <fieldset>
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
36 <legend>@Html.GetLegendForModel()</legend>
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 155
diff changeset
37 <div id="content">
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 155
diff changeset
38 @Html.EditorForModel()
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 155
diff changeset
39 </div>
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 155
diff changeset
40 <div class="buttons">
155
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
41 <input type="submit" value="@LayoutResources.SaveButton" />
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
42 @Html.ActionLink(@LayoutResources.CancelButton, "Index")
168
97e51ddeeb58 Cambios menores en UI
nelopauselli
parents: 155
diff changeset
43 </div>
155
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
44 </fieldset>
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
45 </div>
23aaf98b8377 Generalizando editores en EditorDefault basando los textos en recursos
Nelo@Guinea.neluz.int
parents:
diff changeset
46 }