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] [ViewContext]
public ViewContext ViewContext { get; set; } public ViewContext ViewContext { get; set; }
public bool? SubmitButton { get; set; }
#region MvcFormTagHelperAttiributes #region MvcFormTagHelperAttiributes
private const string ActionAttributeName = "asp-action"; private const string ActionAttributeName = "asp-action";

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

Loading…
Cancel
Save