Browse Source
Merge pull request #16511 from blackWins/dynamicFormTagHelper
DynamicForm columnSize optimize
pull/16749/head
Yunus Emre Kalkan
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
3 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpDynamicformTagHelperService.cs
|
|
|
@ -100,14 +100,16 @@ public class AbpDynamicFormTagHelperService : AbpTagHelperService<AbpDynamicForm |
|
|
|
{ |
|
|
|
var contentBuilder = new StringBuilder(""); |
|
|
|
|
|
|
|
contentBuilder.AppendLine("<div class=\"row\">"); |
|
|
|
|
|
|
|
foreach (var item in items.OrderBy(o => o.Order)) |
|
|
|
{ |
|
|
|
contentBuilder.AppendLine(SetColumn(item.HtmlContent)); |
|
|
|
} |
|
|
|
|
|
|
|
contentBuilder.AppendLine("</div>"); |
|
|
|
if (TagHelper.ColumnSize != ColumnSize.Undefined && TagHelper.ColumnSize != ColumnSize._) |
|
|
|
{ |
|
|
|
contentBuilder.Insert(0, "<div class=\"row\">"); |
|
|
|
contentBuilder.AppendLine("</div>"); |
|
|
|
} |
|
|
|
|
|
|
|
var content = childContent.GetContent(); |
|
|
|
if (content.Contains(AbpFormContentPlaceHolder)) |
|
|
|
|