fadlyshafa

Untitled

Mar 3rd, 2020
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.04 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('supplier/add') }}">
  17.                     @csrf
  18.                   <div class="box-body">
  19.                     <div class="form-group">
  20.                       <label for="exampleInputEmail1">Nama Supplier</label>
  21.                       <input type="text" name="nama" class="form-control" id="exampleInputEmail1" placeholder="Nama Supplier">
  22.                     </div>
  23.                     <div class="form-group">
  24.                       <label for="exampleInputPassword1">No Telp</label>
  25.                       <input type="number" name="no_telp" class="form-control" id="exampleInputPassword1" placeholder="No Telp">
  26.                     </div>
  27.                    
  28.                     <div class="form-group">
  29.                       <label for="exampleInputPassword1">Alamat</label>
  30.                       <textarea class="form-control" name="alamat" rows="5"></textarea>
  31.                     </div>
  32.                    
  33.                   </div>
  34.                   <!-- /.box-body -->
  35.      
  36.                   <div class="box-footer">
  37.                     <button type="submit" class="btn btn-primary">Submit</button>
  38.                   </div>
  39.                 </form>
  40.  
  41.             </div>
  42.         </div>
  43.     </div>
  44. </div>
  45.  
  46. @endsection
  47.  
  48. @section('scripts')
  49.  
  50. <script type="text/javascript">
  51.     $(document).ready(function(){
  52.  
  53.         // btn refresh
  54.         $('.btn-refresh').click(function(e){
  55.             e.preventDefault();
  56.             $('.preloader').fadeIn();
  57.             location.reload();
  58.         })
  59.  
  60.     })
  61. </script>
  62.  
  63. @endsection
Add Comment
Please, Sign In to add comment