diff --git a/src/Orchard.Web/Core/Common/Views/EditorTemplates/DateTimeEditor.cshtml b/src/Orchard.Web/Core/Common/Views/EditorTemplates/DateTimeEditor.cshtml index d546a7b82..f72b093d0 100644 --- a/src/Orchard.Web/Core/Common/Views/EditorTemplates/DateTimeEditor.cshtml +++ b/src/Orchard.Web/Core/Common/Views/EditorTemplates/DateTimeEditor.cshtml @@ -6,12 +6,12 @@ @if (Model.ShowDate) { - @Html.EditorFor(m => m.Date) + @Html.TextBoxFor(m => m.Date, new { placeholder = T("Date").Text }) } @if (Model.ShowTime) { - @Html.EditorFor(m => m.Time) + @Html.TextBoxFor(m => m.Time, new { placeholder = T("Time").Text }) } @if (Model.ShowDate) { @Html.ValidationMessageFor(m => m.Date) } diff --git a/src/Orchard.Web/Modules/Orchard.jQuery/Views/EditorTemplates/DateTimeEditor.cshtml b/src/Orchard.Web/Modules/Orchard.jQuery/Views/EditorTemplates/DateTimeEditor.cshtml index 6e0e3efc6..d39518771 100644 --- a/src/Orchard.Web/Modules/Orchard.jQuery/Views/EditorTemplates/DateTimeEditor.cshtml +++ b/src/Orchard.Web/Modules/Orchard.jQuery/Views/EditorTemplates/DateTimeEditor.cshtml @@ -9,17 +9,16 @@ Script.Require("jQueryCalendars_All").AtFoot(); Script.Require("jQueryCalendars_Picker_Ext").AtFoot(); Script.Require("jQueryTimeEntry").AtFoot(); - Script.Require("jQueryDateTimeEditor").AtFoot(); } @if (Model.ShowDate) { - @Html.EditorFor(m => m.Date) + @Html.TextBoxFor(m => m.Date, new { placeholder = T("Date").Text, @class = "text" }) } @if (Model.ShowTime) { - @Html.EditorFor(m => m.Time) + @Html.TextBoxFor(m => m.Time, new { placeholder = T("Time").Text, @class = "text" }) } @if (Model.ShowDate) { @Html.ValidationMessageFor(m => m.Date) }