The SB Admin template comes with a variety of different page styles, which can be used to build our own views. We'll create a custom view that displays two panels, one with a simple Bootstrap form and another one that displays an image, by completing the following steps:
Add a new empty MVC 5 controller called
FormsController
to your project.Add a new empty view for the
Index
method of the controller and select the layout page we've created earlier as its layout page.Open the
Index.cshtml
file inside theViews\Forms
folder.Add the following markup to the view:
@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Forms</h1> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="panel panel-primary"> <div class="panel-heading"> Firs Panel with simple...