comparison 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
comparison
equal deleted inserted replaced
154:2233039ac2eb 155:23aaf98b8377
1 <h2>@Html.GetTitleForModel()</h2>
2 <p>
3 @Html.GetDescriptionForModel()
4 </p>
5
6 <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
7 <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
8
9 @using (Html.BeginForm())
10 {
11 @Html.ValidationSummary(true, @LayoutResources.ValidationSummaryDefault)
12 <div>
13 <fieldset>
14 <legend>@Html.GetLegendForModel()</legend>
15 @Html.EditorForModel()
16 <p>
17 <input type="submit" value="@LayoutResources.SaveButton" />
18 @Html.ActionLink(@LayoutResources.CancelButton, "Index")
19 </p>
20 </fieldset>
21 </div>
22 }