Example #1
0
        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));
        }
Example #2
0
 public static FieldSet RenderFieldSet(this HtmlHelper helper, FieldSetOptions options)
 {
     return(helper.BeginFieldSet(options.IsFlagSet(FieldSetOptions.LabelsOnLeft) ? "with-labels-on-left" : ""));
 }