annotate Agendas/trunk/src/Agendas.Web/Views/Shared/EditorTemplates/DateTime.cshtml @ 156:6e554de521aa

Estética de altnet hispano
author Nelo@Guinea.neluz.int
date Thu, 04 Aug 2011 18:44:57 -0300
parents 19bab30521da
children ea85bd893247
rev   line source
150
19bab30521da Pasando DateTime a un EditorTemplates
Nelo@Guinea.neluz.int
parents:
diff changeset
1 @model DateTime?
19bab30521da Pasando DateTime a un EditorTemplates
Nelo@Guinea.neluz.int
parents:
diff changeset
2 <script type="text/javascript">
19bab30521da Pasando DateTime a un EditorTemplates
Nelo@Guinea.neluz.int
parents:
diff changeset
3 $(document).ready(function () {
19bab30521da Pasando DateTime a un EditorTemplates
Nelo@Guinea.neluz.int
parents:
diff changeset
4 $("#@ViewData.TemplateInfo.GetFullHtmlFieldId(string.Empty)").datepicker({ dateFormat: 'dd-mm-yy' });
19bab30521da Pasando DateTime a un EditorTemplates
Nelo@Guinea.neluz.int
parents:
diff changeset
5 });
19bab30521da Pasando DateTime a un EditorTemplates
Nelo@Guinea.neluz.int
parents:
diff changeset
6 </script>
19bab30521da Pasando DateTime a un EditorTemplates
Nelo@Guinea.neluz.int
parents:
diff changeset
7 @Html.TextBox(string.Empty, (Model.HasValue ? Model.Value.ToShortDateString() : string.Empty))