예제 #1
0
 public override void Configure(HtmlConventionsManager conventions)
 {
     conventions.Validation.Always.Modify((tag, model) =>
     {
         return tag.AddClass("bg-danger");
     });
 }
예제 #2
0
 public override void Configure(HtmlConventionsManager conventions)
 {
     var l = conventions.Labels;
     //l.Always.Modify((tag, model) =>
     //{
     //    return tag.AddClass("control-label");
     //});
 }
 public static HtmlConventionsManager CreateProfile(string profile)
 {
     if (!profiles.ContainsKey(profile))
     {
         profiles[profile] = new HtmlConventionsManager();
     }
     return profiles[profile];
 }
예제 #4
0
 public static HtmlConventionsManager SetDefaults(this HtmlConventionsManager conventions)
 {
     conventions.Displays.DefaultBuilder(DefaultBuilders.BasicTagBuilder);
     conventions.Editors.DefaultBuilder(DefaultBuilders.FormInputBuilder);
     conventions.Labels.DefaultBuilder(DefaultBuilders.LabelBuilder);
     conventions.Validation.DefaultBuilder(DefaultBuilders.ValidationBuilder);
     return(conventions);
 }
예제 #5
0
 public static HtmlConventionsManager CreateProfile(string profile)
 {
     if (!profiles.ContainsKey(profile))
     {
         profiles[profile] = new HtmlConventionsManager();
     }
     return(profiles[profile]);
 }
예제 #6
0
 public override void Configure(HtmlConventionsManager conventions)
 {
     var e = conventions.Editors;
   //  TwitterBootstrap(e);
 }
예제 #7
0
 public static HtmlConventionsManager ConventionsRegistry(this ModelInfo info)
 {
     return(HtmlConventionsManager.GetCurrentRequestProfile(info.ViewContext.HttpContext));
 }
예제 #8
0
 public override void Configure(HtmlConventionsManager conventions)
 {
    
 }