daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- Tell the browser to be responsive to screen width -->
  2.   <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  3.   <link rel="stylesheet" href="/adminlte/bootstrap/dist/css/bootstrap.min.css">
  4.   <!-- Font Awesome -->
  5.   <link rel="stylesheet" href="/adminlte/font-awesome/css/font-awesome.min.css">
  6.   <!-- Ionicons -->
  7.   <link rel="stylesheet" href="/adminlte/Ionicons/css/ionicons.min.css">
  8.   <!-- DataTables -->
  9.   <link rel="stylesheet" href="/adminlte/plugins/datatables.net-bs/css/dataTables.bootstrap.min.css">
  10.  
  11.   <!-- Theme style -->
  12.   <link rel="stylesheet" href="/adminlte/css/AdminLTE.min.css">
  13.   <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
  14.         page. However, you can choose any other skin. Make sure you
  15.         apply the skin class to the body tag so the changes take effect. -->
  16.   <link rel="stylesheet" href="/adminlte/css/skins/skin-blue.min.css">  
  17.  
  18.   <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  19.   <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  20.   <!--[if lt IE 9]>
  21.   <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  22.   <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  23.   <![endif]-->
  24.  
  25.   <!-- Google Font -->
  26.   <link rel="stylesheet"
  27.         href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
  28.    
  29. <!-- jQuery 3 -->
  30. <script src="/adminlte/jquery/dist/jquery.min.js"></script>
  31. <!-- Bootstrap 3.3.7 -->
  32. <script src="/adminlte/bootstrap/dist/js/bootstrap.min.js"></script>
  33. <!-- DataTables -->
  34. <script src="/adminlte/plugins/datatables.net/js/jquery.dataTables.min.js"></script>
  35. <script src="/adminlte/plugins/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
  36. <!-- SlimScroll -->
  37. <script src="/adminlte/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
  38. <!-- FastClick -->
  39. <script src="/adminlte/plugins/fastclick/lib/fastclick.js"></script>
  40. <!-- AdminLTE App -->
  41. <script src="/adminlte/js/adminlte.min.js"></script>
  42.  
  43. <!-- Optionally, you can add Slimscroll and FastClick plugins.
  44.      Both of these plugins are recommended to enhance the
  45.      user experience. -->
  46. <!-- page script -->
  47. <script>
  48.   $(function () {
  49.     $('#posts-table').DataTable({
  50.       'paging'      : true,
  51.       'lengthChange': false,
  52.       'searching'   : false,
  53.       'ordering'    : true,
  54.       'info'        : true,
  55.       'autoWidth'   : false
  56.     })
  57.   })
  58. </script>
  59.    
  60. <div class="box">
  61.             <div class="box-header">
  62.               <h3 class="box-title">Listado de publicaciones</h3>
  63.             </div>
  64.             <!-- /.box-header -->
  65.             <div class="box-body">
  66.               <table id="posts-table" class="table table-bordered table-striped">
  67.                 <thead>
  68.                 <tr>
  69.                   <th>ID</th>
  70.                   <th>Título</th>
  71.                   <th>Extracto</th>
  72.                   <th>Acciones</th>
  73.                 </tr>
  74.                 </thead>
  75.                 <tbody>
  76.                     @foreach($posts as $post)
  77.                         <tr>
  78.                             <td>{{ $post->id }}</td>
  79.                             <td>{{ $post->title }}</td>
  80.                             <td>{{ $post->excerpt }}</td>
  81.                             <td>
  82.                                 <a href="#" class="btn btn-xs btn-info"><i class="fa fa-pencil"></i></a>
  83.                                 <a href="#" class="btn btn-xs btn-danger"><i class="fa fa-times"></i></a>
  84.                             </td>
  85.                         </tr>
  86.                     @endforeach
  87.                 </tbody>
  88.               </table>
  89.             </div>
  90.             <!-- /.box-body -->
  91.           </div>
  92.    
  93. $(function () {
  94.     $('#posts-table').DataTable({
  95.       'paging'      : true,
  96.       'lengthChange': true,
  97.       'searching'   : true,
  98.       'ordering'    : true,
  99.       'info'        : true,
  100.       'autoWidth'   : false
  101.     })
  102.   })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top