@using System.Linq; @using WeApp.Views.Shared.Modals @model ModalBodyViewModel @{ //string type = "text"; foreach (var i in Model.Inputs) { if (i.IsHidden) { continue; } string oBefore = "", oAfter = "", iBefore = "", iAfter = ""; var special = Model.Specials?.FirstOrDefault(a => a.Id == i.Id); string help = i.Help.IsEmpty() ? "" : "" + i.Help + ""; if (!string.IsNullOrEmpty(i.DivOutBefore)) { oBefore = i.DivOutBefore; } if (!string.IsNullOrEmpty(i.DivOutAfter)) { oAfter = i.DivOutAfter; } if (!string.IsNullOrEmpty(i.DivInterBefore)) { iBefore = i.DivInterBefore; } if (!string.IsNullOrEmpty(i.DivInterAfter)) { iAfter = i.DivInterAfter; } @Html.Raw(oBefore)
@Html.Raw(i.Label) @if (special != null) { @Html.Raw(special.InputStr) continue; }
@Html.Raw(iBefore) @Html.Partial("Modals/_InputView", i) @Html.Raw(help) @Html.Raw(iAfter)
@Html.Raw(oAfter) } }