diff --git a/Lombiq.HelpfulExtensions/Views/TextField-Label.Edit.cshtml b/Lombiq.HelpfulExtensions/Views/TextField-Label.Edit.cshtml new file mode 100644 index 00000000..022f3860 --- /dev/null +++ b/Lombiq.HelpfulExtensions/Views/TextField-Label.Edit.cshtml @@ -0,0 +1,19 @@ +@using OrchardCore +@using OrchardCore.ContentFields.Settings +@using OrchardCore.ContentManagement.Metadata.Models +@model OrchardCore.ContentFields.ViewModels.EditTextFieldViewModel + +@{ + var settings = Model.PartFieldDefinition.GetSettings(); +} + +
+ +
+ @(Model.Text ?? T[""].Value) + @if (!string.IsNullOrEmpty(settings.Hint)) + { + @settings.Hint + } +
+
diff --git a/Lombiq.HelpfulExtensions/Views/TextField-Label.Option.cshtml b/Lombiq.HelpfulExtensions/Views/TextField-Label.Option.cshtml new file mode 100644 index 00000000..90318007 --- /dev/null +++ b/Lombiq.HelpfulExtensions/Views/TextField-Label.Option.cshtml @@ -0,0 +1,4 @@ +@{ + string currentEditor = Model.Editor; +} +