# HG changeset patch # User juanjose.montesdeocaarbos # Date 1328757120 10800 # Node ID 5f1e3d35e11305141e72da43e4c0a39cbde5f25e # Parent 15b428ae5931029713d3f169113d62eea5d8f6fd Patrocinadores: Correcciones en Vistas. diff -r 15b428ae5931 -r 5f1e3d35e113 Agendas/trunk/src/Agendas.Web/DataProviders.cs --- a/Agendas/trunk/src/Agendas.Web/DataProviders.cs Tue Feb 07 23:29:06 2012 -0300 +++ b/Agendas/trunk/src/Agendas.Web/DataProviders.cs Thu Feb 09 00:12:00 2012 -0300 @@ -54,8 +54,9 @@ var patrocinadores = repository.GetAll(); if (ids == null || !ids.Any()) return new SelectListItem[] { }; - return from p in patrocinadores - select new SelectListItem {Text = p.Nombre, Value = p.Id.ToString()}; + return from p in from id in ids + select repository.GetById(id.ToString()) + select new SelectListItem { Text = p.Nombre, Value = p.Id.ToString() }; } public static IEnumerable GetPatrocinadoresExcepto(this HtmlHelper helper, IEnumerable ids) diff -r 15b428ae5931 -r 5f1e3d35e113 Agendas/trunk/src/Agendas.Web/Views/Shared/DefaultEditor.cshtml --- a/Agendas/trunk/src/Agendas.Web/Views/Shared/DefaultEditor.cshtml Tue Feb 07 23:29:06 2012 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Views/Shared/DefaultEditor.cshtml Thu Feb 09 00:12:00 2012 -0300 @@ -9,16 +9,6 @@ - - @using (Html.BeginForm( null, null, diff -r 15b428ae5931 -r 5f1e3d35e113 Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/Patrocinadores.cshtml --- a/Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/Patrocinadores.cshtml Tue Feb 07 23:29:06 2012 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/Patrocinadores.cshtml Thu Feb 09 00:12:00 2012 -0300 @@ -1,6 +1,10 @@ @model IEnumerable -@Html.ListBox(string.Empty, Html.GetPatrocinadores(Model), new { style = "vertical-align: top;" }) +@Html.ListBox(string.Empty, Html.GetPatrocinadores(Model), new { style = "vertical-align: top; min-width: 160px;" })
- @Html.DropDownList("posiblesPatrocinadores", Html.GetPatrocinadoresExcepto(Model), new { style = "vertical-align: top;", id = "posiblesPatrocinadores" }) + @Html.DropDownList("posiblesPatrocinadores", Html.GetPatrocinadoresExcepto(Model), new { style = "vertical-align: top; min-width: 160px;", id = "posiblesPatrocinadores" })
diff -r 15b428ae5931 -r 5f1e3d35e113 Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/Ponentes.cshtml --- a/Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/Ponentes.cshtml Tue Feb 07 23:29:06 2012 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/Ponentes.cshtml Thu Feb 09 00:12:00 2012 -0300 @@ -1,13 +1,23 @@ @model IEnumerable -@Html.ListBox(string.Empty, Html.GetPonentes(Model), new { style = "vertical-align: top;" }) +@Html.ListBox(string.Empty, Html.GetPonentes(Model), new { style = "vertical-align: top; min-width: 160px;" })
- @Html.DropDownList("posiblesPonentes", Html.GetPonentesExcepto(Model), new { style = "vertical-align: top;", id = "posiblesPonentes" }) + @Html.DropDownList("posiblesPonentes", Html.GetPonentesExcepto(Model), new { style = "vertical-align: top; min-width: 160px;", id = "posiblesPonentes" })