public static FieldSet BeginFieldSet(this HtmlHelper helper, FieldSetOptions options) { var cssClass = "forms_v2"; if (options.IsFlagSet(FieldSetOptions.LabelsOnLeft)) { cssClass += " with-labels-on-left"; } return(helper.BeginFieldSet(cssClass)); }
public static FieldSet RenderFieldSet(this HtmlHelper helper, FieldSetOptions options) { return(helper.BeginFieldSet(options.IsFlagSet(FieldSetOptions.LabelsOnLeft) ? "with-labels-on-left" : "")); }