|
|
@ -58,7 +58,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form |
|
|
protected virtual async Task<(string, bool)> GetFormInputGroupAsHtmlAsync(TagHelperContext context, TagHelperOutput output) |
|
|
protected virtual async Task<(string, bool)> GetFormInputGroupAsHtmlAsync(TagHelperContext context, TagHelperOutput output) |
|
|
{ |
|
|
{ |
|
|
var (inputTag, isCheckBox) = await GetInputTagHelperOutputAsync(context, output); |
|
|
var (inputTag, isCheckBox) = await GetInputTagHelperOutputAsync(context, output); |
|
|
|
|
|
|
|
|
var inputHtml = inputTag.Render(_encoder); |
|
|
var inputHtml = inputTag.Render(_encoder); |
|
|
var label = await GetLabelAsHtmlAsync(context, output, inputTag, isCheckBox); |
|
|
var label = await GetLabelAsHtmlAsync(context, output, inputTag, isCheckBox); |
|
|
var info = GetInfoAsHtml(context, output, inputTag, isCheckBox); |
|
|
var info = GetInfoAsHtml(context, output, inputTag, isCheckBox); |
|
|
@ -161,7 +161,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form |
|
|
|
|
|
|
|
|
protected virtual void AddDisabledAttribute(TagHelperOutput inputTagHelperOutput) |
|
|
protected virtual void AddDisabledAttribute(TagHelperOutput inputTagHelperOutput) |
|
|
{ |
|
|
{ |
|
|
if (inputTagHelperOutput.Attributes.ContainsName("disabled") == false && |
|
|
if (inputTagHelperOutput.Attributes.ContainsName("disabled") == false && |
|
|
(TagHelper.IsDisabled || TagHelper.AspFor.ModelExplorer.GetAttribute<DisabledInput>() != null)) |
|
|
(TagHelper.IsDisabled || TagHelper.AspFor.ModelExplorer.GetAttribute<DisabledInput>() != null)) |
|
|
{ |
|
|
{ |
|
|
inputTagHelperOutput.Attributes.Add("disabled", ""); |
|
|
inputTagHelperOutput.Attributes.Add("disabled", ""); |
|
|
@ -170,7 +170,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form |
|
|
|
|
|
|
|
|
protected virtual void AddReadOnlyAttribute(TagHelperOutput inputTagHelperOutput) |
|
|
protected virtual void AddReadOnlyAttribute(TagHelperOutput inputTagHelperOutput) |
|
|
{ |
|
|
{ |
|
|
if (inputTagHelperOutput.Attributes.ContainsName("readonly") == false && |
|
|
if (inputTagHelperOutput.Attributes.ContainsName("readonly") == false && |
|
|
(TagHelper.IsReadonly != false || TagHelper.AspFor.ModelExplorer.GetAttribute<ReadOnlyInput>() != null)) |
|
|
(TagHelper.IsReadonly != false || TagHelper.AspFor.ModelExplorer.GetAttribute<ReadOnlyInput>() != null)) |
|
|
{ |
|
|
{ |
|
|
inputTagHelperOutput.Attributes.Add("readonly", ""); |
|
|
inputTagHelperOutput.Attributes.Add("readonly", ""); |
|
|
@ -400,9 +400,10 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form |
|
|
list.Add(new FormGroupItem |
|
|
list.Add(new FormGroupItem |
|
|
{ |
|
|
{ |
|
|
HtmlContent = html, |
|
|
HtmlContent = html, |
|
|
Order = order |
|
|
Order = order, |
|
|
|
|
|
PropertyName = propertyName |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|