diff Agendas/trunk/src/Agendas.Web/Views/Shared/DefaultEditor.cshtml @ 155:23aaf98b8377

Generalizando editores en EditorDefault basando los textos en recursos
author Nelo@Guinea.neluz.int
date Wed, 03 Aug 2011 09:38:23 -0300
parents
children 97e51ddeeb58
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Agendas/trunk/src/Agendas.Web/Views/Shared/DefaultEditor.cshtml	Wed Aug 03 09:38:23 2011 -0300
@@ -0,0 +1,22 @@
+<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>
+
+@using (Html.BeginForm())
+{
+    @Html.ValidationSummary(true, @LayoutResources.ValidationSummaryDefault)
+    <div>
+        <fieldset>
+            <legend>@Html.GetLegendForModel()</legend>
+            @Html.EditorForModel()
+            <p>
+                <input type="submit" value="@LayoutResources.SaveButton" />
+                @Html.ActionLink(@LayoutResources.CancelButton, "Index")
+            </p>
+        </fieldset>
+    </div>
+}
\ No newline at end of file