fadlyshafa

Untitled

Jan 25th, 2020
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.76 KB | None | 0 0
  1. @extends('layouts.master')
  2.  
  3. @section('content')
  4.  
  5. <div class="row">
  6.     <div class="col-md-12">
  7.         <h4>{{ $title }}</h4>
  8.         <div class="box box-warning">
  9.             <div class="box-header">
  10.                 <p>
  11.                     <button class="btn btn-sm btn-flat btn-warning btn-refresh"><i class="fa fa-refresh"></i> Refresh</button>
  12.                 </p>
  13.             </div>
  14.             <div class="box-body">
  15.                
  16.                 <form role="form" method="post" action="{{ url('karyawan/add') }}">
  17.                     {{ csrf_field() }}
  18.                   <div class="box-body">
  19.                     <div class="form-group">
  20.                       <label for="exampleInputEmail1">Email address</label>
  21.                       <input type="email" name="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
  22.                     </div>
  23.  
  24.                     <div class="form-group">
  25.                       <label for="exampleInputPassword1">Nama</label>
  26.                       <input type="text" name="name" class="form-control" id="exampleInputPassword1" placeholder="Nama">
  27.                     </div>
  28.  
  29.                   </div>
  30.                   <!-- /.box-body -->
  31.      
  32.                   <div class="box-footer">
  33.                     <button type="submit" class="btn btn-primary">Submit</button>
  34.                   </div>
  35.                 </form>
  36.  
  37.             </div>
  38.         </div>
  39.     </div>
  40. </div>
  41.  
  42. @endsection
  43.  
  44. @section('scripts')
  45.  
  46. <script type="text/javascript">
  47.     $(document).ready(function(){
  48.  
  49.         // btn refresh
  50.         $('.btn-refresh').click(function(e){
  51.             e.preventDefault();
  52.             $('.preloader').fadeIn();
  53.             location.reload();
  54.         })
  55.  
  56.     })
  57. </script>
Add Comment
Please, Sign In to add comment