khirulnizam

create.blade.php Laravel resources/views/trainings

Mar 27th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.88 KB | None | 0 0
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="container">
  4.     <div class="row justify-content-center">
  5.         <div class="col-md-8">
  6.             <div class="card">
  7.                 <div class="card-header">Insert new Training</div>
  8.  
  9.                 <div class="card-body">
  10.                
  11.                 <form method="post" action="{{url('trainings')}}">
  12.                 @csrf
  13.                   <label for="usr">Training Name</label>
  14.                   <input type="text" class="form-control" name="trainingname">
  15.  
  16.                   <label for="pwd">Description</label>
  17.                   <input type="text" class="form-control" name="desc">
  18.  
  19.                   <label for="pwd">Trainer</label>
  20.                   <input type="text" class="form-control" name="trainer">
  21.                   <button type="submit" class="btn btn-info"> Insert to DB </button>
  22.                 </form>
  23.                    
  24.                 </div>
  25.                
  26.             </div>
  27.         </div>
  28.     </div>
  29. </div>
  30. @endsection
Advertisement
Add Comment
Please, Sign In to add comment