From 68c485206d23ddadf02365598280e1f00f936390 Mon Sep 17 00:00:00 2001 From: Matthew Harris Date: Thu, 22 Sep 2016 20:12:36 +0100 Subject: [PATCH] Labels hidden when datetime field added (#7146) Fixes #7144 --- .../DefinitionTemplates/BooleanFieldSettings.cshtml | 10 +++++----- .../EnumerationFieldSettings.cshtml | 4 ++-- .../DefinitionTemplates/InputFieldSettings.cshtml | 12 ++++++------ .../DefinitionTemplates/LinkFieldSettings.cshtml | 4 ++-- .../DefinitionTemplates/NumericFieldSettings.cshtml | 6 +++--- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/BooleanFieldSettings.cshtml b/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/BooleanFieldSettings.cshtml index 8b64ca9de..4362dc7ee 100644 --- a/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/BooleanFieldSettings.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/BooleanFieldSettings.cshtml @@ -9,7 +9,7 @@
- + @Html.TextBoxFor(m => m.NotSetLabel, new { @class = "text" }) @Html.ValidationMessageFor(m => m.NotSetLabel) @T("The text displayed when the field is not selected.") @@ -17,14 +17,14 @@
- + @Html.TextBoxFor(m => m.OnLabel, new { @class = "text"}) @Html.ValidationMessageFor(m => m.OnLabel) @T("The text displayed when the field is selected.")
- +
@Html.TextBoxFor(m => m.OffLabel, new { @class = "text" }) @Html.ValidationMessageFor(m => m.OffLabel) @@ -32,7 +32,7 @@
- + @Html.SelectOption((object)String.Empty, !Model.DefaultValue.HasValue, T("Neutral").ToString()) @Html.SelectOption((object)true, Model.DefaultValue.HasValue && Model.DefaultValue == true, T("True").ToString()) diff --git a/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/EnumerationFieldSettings.cshtml b/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/EnumerationFieldSettings.cshtml index c11d5ba73..c9e0b6529 100644 --- a/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/EnumerationFieldSettings.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/EnumerationFieldSettings.cshtml @@ -7,14 +7,14 @@
- +
@Html.TextAreaFor(m => m.Options, new { @class = "text medium", rows = "5" }) @Html.ValidationMessageFor(m => m.Options) @T("Enter an option per line.")
- + @Html.SelectOption(Orchard.Fields.Settings.InputType.Text, Model.Type == Orchard.Fields.Settings.InputType.Text, T("Text").ToString(), new { id = Html.FieldIdFor(m => m.Type) + "-text" }) @Html.SelectOption(Orchard.Fields.Settings.InputType.Url, Model.Type == Orchard.Fields.Settings.InputType.Url, T("Url").ToString()) @@ -12,7 +12,7 @@ @T("Defines what format should be applied to the text.")
- + @Html.TextBoxFor(m => m.Pattern, new { @class = "text medium" }) @Html.ValidationMessageFor(m => m.Pattern) @T("Declaring what pattern should be used for validating a field’s value, in the form of a regular expression. (optional)") @@ -20,7 +20,7 @@
- + @Html.TextBoxFor(m => m.Title, new { @class = "text"}) @Html.ValidationMessageFor(m => m.Title) @T("The title attribute of the field. (optional)") @@ -46,7 +46,7 @@
- + @Html.TextBoxFor(m => m.Placeholder, new { @class = "text" }) @Html.ValidationMessageFor(m => m.Placeholder) @T("A hint to display when the input is empty. (optional)") @@ -54,7 +54,7 @@
- + @Html.TextBoxFor(m => m.EditorCssClass, new { @class = "text" }) @Html.ValidationMessageFor(m => m.EditorCssClass) @T("The css class to use for the editor. (optional)") @@ -62,7 +62,7 @@
- + @Html.TextBoxFor(m => m.MaxLength, new { @class = "text small" }) @Html.ValidationMessageFor(m => m.MaxLength) @T("The maximum number of chars allowed. (optional)") diff --git a/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/LinkFieldSettings.cshtml b/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/LinkFieldSettings.cshtml index b6ebaa61d..103ac55cb 100644 --- a/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/LinkFieldSettings.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/LinkFieldSettings.cshtml @@ -3,7 +3,7 @@
- + @Html.SelectOption(LinkTextMode.Optional, Model.LinkTextMode == LinkTextMode.Optional, T("Optional").ToString()) @Html.SelectOption(LinkTextMode.Required, Model.LinkTextMode == LinkTextMode.Required, T("Required").ToString()) diff --git a/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/NumericFieldSettings.cshtml b/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/NumericFieldSettings.cshtml index 4fe3e888f..632c65052 100644 --- a/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/NumericFieldSettings.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Fields/Views/DefinitionTemplates/NumericFieldSettings.cshtml @@ -9,7 +9,7 @@
- + @Html.TextBoxFor(m => m.Scale, new { @class = "text small" }) @Html.ValidationMessageFor(m => m.Scale) @T("The number of digits to the right of the decimal. Put 0 for integers.") @@ -17,7 +17,7 @@
- + @Html.TextBoxFor(m => m.Minimum, new { @class = "text small" }) @Html.ValidationMessageFor(m => m.Minimum) @T("The minimum value allowed. (optional)") @@ -25,7 +25,7 @@
- + @Html.TextBoxFor(m => m.Maximum, new { @class = "text small" }) @Html.ValidationMessageFor(m => m.Maximum) @T("The maximum value allowed. (optional)")