added submit-button attiribute

pull/279/head
yekalkan 7 years ago
parent 52be5cc196
commit 00e3ed3512

@ -16,6 +16,8 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
[HtmlAttributeNotBound]
[ViewContext]
public ViewContext ViewContext { get; set; }
public bool? SubmitButton { get; set; }
#region MvcFormTagHelperAttiributes

@ -47,7 +47,10 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
SetFormAttributes(output);
SetSubmitButton(context, output);
if (TagHelper.SubmitButton ?? false)
{
SetSubmitButton(context, output);
}
}
protected virtual async Task ConvertToMvcForm(TagHelperContext context, TagHelperOutput output)

Loading…
Cancel
Save