_InputGroupView.cshtml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. @using IwbZero.ToolCommon.StringModel
  2. @model ContractService.Views.Shared.Modals.Input
  3. @{
  4. string oBefore = "", oAfter = "", iBefore = "", iAfter = "";
  5. string help = Model.Help.Empty() ? "" : "<span class=\"help-block\">" + Model.Help + "</span>";
  6. if (!string.IsNullOrEmpty(Model.DivOutBefore))
  7. {
  8. oBefore = Model.DivOutBefore;
  9. }
  10. if (!string.IsNullOrEmpty(Model.DivOutAfter))
  11. {
  12. oAfter = Model.DivOutAfter;
  13. }
  14. if (!string.IsNullOrEmpty(Model.DivInterBefore))
  15. {
  16. iBefore = Model.DivInterBefore;
  17. }
  18. if (!string.IsNullOrEmpty(Model.DivInterAfter))
  19. {
  20. iAfter = Model.DivInterAfter;
  21. }
  22. }
  23. @Html.Raw(oBefore)
  24. <div class="@Model.DivClass" @Model.DivOther>
  25. @Html.Raw(Model.Label)
  26. @if (Model.Special.NotEmpty())
  27. {
  28. @Html.Raw(Model.Special)
  29. }
  30. <div class="@(Model.InputLayoutClass)">
  31. @Html.Raw(iBefore)
  32. @Html.Partial("Modals/_InputView", Model)
  33. @Html.Raw(help)
  34. @Html.Raw(iAfter)
  35. </div>
  36. </div>
  37. @Html.Raw(oAfter)