From ea9e0ca07eff55edc22677a96670f7bc63e8abe9 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Fri, 17 Jul 2015 12:44:08 +0100 Subject: [PATCH] Improved export UI. When recipe builder steps provide no UI, no need for rendering a controlled subsection (which would cause a slight glitch when checking the step checkbox by expanding the div a few pixels). --- .../EditorTemplates/ExportActions/BuildRecipe.cshtml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.ImportExport/Views/EditorTemplates/ExportActions/BuildRecipe.cshtml b/src/Orchard.Web/Modules/Orchard.ImportExport/Views/EditorTemplates/ExportActions/BuildRecipe.cshtml index 25b165c65..1e60195c2 100644 --- a/src/Orchard.Web/Modules/Orchard.ImportExport/Views/EditorTemplates/ExportActions/BuildRecipe.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ImportExport/Views/EditorTemplates/ExportActions/BuildRecipe.cshtml @@ -16,9 +16,11 @@ @Html.Hint(@exportStep.Description) -
- @Display(exportStep.Editor) -
+ @if (exportStep.Editor != null) { +
+ @Display(exportStep.Editor) +
+ } exportStepIndex++; if (exportStepIndex < Model.Steps.Count) {