forked from MRCollective/ChameleonForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppStart.TwitterBootstrap.cs.pp
More file actions
24 lines (22 loc) · 947 Bytes
/
AppStart.TwitterBootstrap.cs.pp
File metadata and controls
24 lines (22 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using ChameleonForms;
using ChameleonForms.Templates.TwitterBootstrap3;
using System.Web.Optimization;
[assembly: WebActivator.PreApplicationStartMethod(typeof($rootnamespace$.App_Start.ConfigureChameleonTwitterBootstrap), "Start")]
namespace $rootnamespace$.App_Start
{
public static class ConfigureChameleonTwitterBootstrap
{
public static void Start()
{
FormTemplate.Default = new TwitterBootstrapFormTemplate();
BundleTable.Bundles.Add(new ScriptBundle("~/bundles/chameleon-bootstrapjs").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/jquery.validate.unobtrusive.twitterbootstrap.js"
));
BundleTable.Bundles.Add(new StyleBundle("~/bundles/chameleon-bootstrapcss").Include(
"~/Content/bootstrap.css",
"~/Content/chameleonforms-twitterbootstrap.css"
));
}
}
}