added submit-button attiribute

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

@ -17,6 +17,8 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
[ViewContext]
public ViewContext ViewContext { get; set; }
public bool? SubmitButton { get; set; }
#region MvcFormTagHelperAttiributes
private const string ActionAttributeName = "asp-action";

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

Loading…
Cancel
Save