Created
September 17, 2018 06:14
-
-
Save davinaleong/5b93706d6013dae316f833b00e616be8 to your computer and use it in GitHub Desktop.
Bootstrap 4 Laravel Blade example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php $var = "Hello World" ?> | |
| @extends('main') | |
| @section('title', 'Form') | |
| @section('content') | |
| <form id="formSignup" method="post" action=""> | |
| <div class="form-group"> | |
| <label for="name">Name <span class="text-danger">*</span></label> | |
| <input id="name" name="name" type="text" class="form-control" maxLength="50" required> | |
| </div> | |
| <div class="form-group"> | |
| <label for="type">Type <span class="text-danger">*</span></label> | |
| <select id="type" name="type" class="form-control" required> | |
| <option value="P">Photo</option> | |
| <option value="T">Text</option> | |
| </select> | |
| </div> | |
| <div class="form-group"> | |
| <label for="countryId">Country <span class="text-danger">*</span></label> | |
| <select id="countryId" name="countryId" class="form-control" required> | |
| <option value="1">Indonesia</option> | |
| <option value="2">Malaysia</option> | |
| <option value="3">Singapore</option> | |
| </select> | |
| </div> | |
| <div class="form-group"> | |
| <label for="categoryId">Category <span class="text-danger">*</span></label> | |
| <select id="categoryId" name="categoryId" class="form-control" required> | |
| <option value="1">Interests</option> | |
| <option value="2">Topics</option> | |
| </select> | |
| </div> | |
| <div class="form-group"> | |
| <label for="description">Description <span class="text-danger">*</span></label> | |
| <textarea id="description" name="description" class="form-control" rows="3" maxlength="150"></textarea> | |
| </div> | |
| <button id="btnSubmit" name="btnSubmit" type="submit" class="btn btn-primary">Submit {{$var}}</button> | |
| </form> | |
| @endsection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="description" content="Klick CMS"> | |
| <meta name="author" content="The Pixel Age"> | |
| <!-- Bootstrap Core CSS --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
| <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | |
| <!--[if lt IE 9]> | |
| <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | |
| <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> | |
| <![endif]--> | |
| <!-- Font Awesome --> | |
| <script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script> | |
| <link href="./../favicon.ico" type="image/png" rel="icon" /> | |
| <title>Klick CMS - @yield('title')</title> | |
| </head> | |
| <body> | |
| <div id="main" class="container"> | |
| <h1 class="display-1">Klick CMS - @yield('title')</h1> | |
| <hr> | |
| @yield('content') | |
| </div> | |
| <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment