Saturday, June 14, 2014

Bootstrap Login Template Example ( Modal Dialog ) Code


The following login template is one of my favourite and simple bootstrap login forms using modal dialog.

Bootstrap Login Template


CODE:


<!DOCTYPE html>
<html lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Bootstrap Login Template</title>
<meta name="viewport"
       content="width=device-width, initial-scale=1, maximum-scale=1">

<link
       href="https://maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"
       rel="stylesheet">

<style type="text/css">
.modal-footer {
       border-top: 0px;
}
</style>
</head>

<body>

       <!--login modal-->
       <div id="loginModal">
              <div class="modal-dialog">
                     <div class="modal-content">
                          
                           <!-- Header Section -->
                           <div class="modal-header">
                                  <h2>Please sign in</h2>
                           </div>
                          
                           <!-- Body Section -->
                           <div class="modal-body">
                                  <form class="form col-md-12">

                                         <input type="text" class="form-control input-lg" placeholder="Email" required autofocus />
                                         <input type="password" class="form-control input-lg" placeholder="Password" required />
                                        
                                         <label class="checkbox"> <input type="checkbox"
                                                value="remember-me" /> Remember me
                                         </label>
                                        
                                         <button class="btn btn-primary btn-lg btn-block">Sign In</button>
                                  </form>
                           </div>
                          
                           <!-- Footer Section -->
                           <div class="modal-footer">
                                  <div class="col-md-12">
                                         <span class="pull-left"><a href="#">Forgot Password?</a></span>
                                         <span><a href="#">Register</a></span>
                                  </div>
                           </div>
                     </div>
              </div>
       </div>

       <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
       <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
</body>
</html>






11 comments :

  1. How do you get this to actually have someone log into your site? I have basic experience building pages with bootstrap but am unsure about how to create a sign in page leading to a members only section.. Thanks! -Matt

    ReplyDelete
  2. Hello Matt,

    Bootstrap does not have anything to do with such logic taking you from sign in page to the members only section. All it does it makes your template/UI more fancy by adding some extra HTML elements and classes. So, in the above page, filter out such extra elements and classes and think as if it only has "form", "input" and "button" elements.

    As per your concern to create a sign in page leading to a members only section, it solely depends on how you've configured your project setup, which framework you're using. If you could provide me some specific details on that, I'd certainly be happy to help.

    Thanks.

    ReplyDelete
  3. Manoj Shrestha'S Blog: Bootstrap Login Template Example ( Modal Dialog ) Code >>>>> Download Now

    >>>>> Download Full

    Manoj Shrestha'S Blog: Bootstrap Login Template Example ( Modal Dialog ) Code >>>>> Download LINK

    >>>>> Download Now

    Manoj Shrestha'S Blog: Bootstrap Login Template Example ( Modal Dialog ) Code >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete
  4. Thanks and I have a tremendous offer: How To Renovate House Exterior home reno costs

    ReplyDelete