SBAdmin2.Template
1.0.1
dotnet add package SBAdmin2.Template --version 1.0.1
NuGet\Install-Package SBAdmin2.Template -Version 1.0.1
<PackageReference Include="SBAdmin2.Template" Version="1.0.1" />
paket add SBAdmin2.Template --version 1.0.1
#r "nuget: SBAdmin2.Template, 1.0.1"
// Install SBAdmin2.Template as a Cake Addin #addin nuget:?package=SBAdmin2.Template&version=1.0.1 // Install SBAdmin2.Template as a Cake Tool #tool nuget:?package=SBAdmin2.Template&version=1.0.1
SB Admin 2
SB Admin 2 is an open source template project created by David Miller for Bootstrap 4+.
Installation
Use the package manager to install this package or use the console.
Install-Package SBAdmin2.Template
Change Tracking
The following files will be replaced by this package:
~/Views/Shared/_Layout.cshtml
~/Views/Content/Site.css
The following files will be added:
~/Views/Shared/_AdminLayout.cshtml
~/Content/sb-admin.css
~/Content/sb-admin.min.css
~/Scritps/vendor
~/Scripts/sb-admin.js
~/Scripts/sb-admin.min.js
Usage
This package should work out of the box, however you must make some additional changes to your project.
To utilize the Admin Dashboard using _AdminLayout.cshtml you must perform this change in _ViewStart.cshtml file located in the Views folder.
Layout = "~/Views/Shared/_AdminLayout.cshtml";
OPTIONAL: SB Admin CSS and JS files can be added to BundleConfig.cs
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/sb-admin.css",
"~/Content/site.css"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/sb-admin.css",
"~/Content/site.css"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/sb-admin.js",
"~/Scripts/respond.js"));
If you add these lines to the BundleConfig you must remove them from the _AdminLayout.cshtml
NOTE: All Bootstrap 4 navigation links must include the css class "nav-link"
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Learn more about Target Frameworks and .NET Standard.
-
- bootstrap (>= 4.1.3)
- FontAwesome (>= 4.7.0)
- jQuery (>= 3.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Update 1.0.1 release