public MvcHtmlString FormGroup(string label, Html.InputType inputType, string inputName, string inputValue = "") { var e = new BootstrapFormGroup(); e.Label.InnerText = label; e.Input.Type = inputType; e.Input.Name = inputName; e.Input.Id = inputName; e.Input.Value = inputValue; return(Render(e)); }
public MvcHtmlString Input(Html.InputType type, string name, string @class = "", string value = "") { var e = new BootstrapFormInput(); e.Type = type; e.Id = name; e.Name = name; e.Classes.Add(@class); e.Value = value; return(Render(e)); }