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).
This commit is contained in:
Sipke Schoorstra
2015-07-17 12:44:08 +01:00
parent c44167749d
commit ea9e0ca07e

View File

@@ -16,9 +16,11 @@
<label for="@stepId" class="forcheckbox">@exportStep.DisplayName</label>
</legend>
@Html.Hint(@exportStep.Description)
@if (exportStep.Editor != null) {
<div data-controllerid="@stepId">
@Display(exportStep.Editor)
</div>
}
</fieldset>
exportStepIndex++;
if (exportStepIndex < Model.Steps.Count) {