templates/tables-editable.html.twig line 1

Open in your IDE?
  1. {{ include('partials/main.html.twig') }}
  2.     <head>
  3.         
  4.         {{ include('partials/title-meta.html.twig', {title: 'Editable Tables'}) }}
  5.         {{ include('partials/head-css.html.twig') }}
  6.     </head>
  7.     {{ include('partials/body.html.twig') }}
  8.         <!-- Begin page -->
  9.         <div id="layout-wrapper">
  10.             {{ include('partials/menu.html.twig') }}
  11.             <!-- ============================================================== -->
  12.             <!-- Start right Content here -->
  13.             <!-- ============================================================== -->
  14.             <div class="main-content">
  15.                 <div class="page-content">
  16.                     <div class="container-fluid">
  17.                         {{ include('partials/page-title.html.twig', {pagetitle: 'Tables', title: 'Editable Tables'}) }}
  18.                         <div class="row">
  19.                             <div class="col-12">
  20.                                 <div class="card">
  21.                                     <div class="card-header">
  22.                                         <h4 class="card-title">Table Edit</h4>
  23.                                         <p class="card-title-desc">Table Edits is a lightweight jQuery plugin for making table rows editable.</p>
  24.                                     </div>
  25.                                     <div class="card-body">
  26.         
  27.                                         <div class="table-responsive">
  28.                                             <table class="table table-editable table-nowrap align-middle table-edits">
  29.                                                 <thead>
  30.                                                     <tr>
  31.                                                         <th>ID</th>
  32.                                                         <th>Name</th>
  33.                                                         <th>Age</th>
  34.                                                         <th>Gender</th>
  35.                                                         <th>Edit</th>
  36.                                                     </tr>
  37.                                                 </thead>
  38.                                                 <tbody>
  39.                                                     <tr data-id="1">
  40.                                                         <td data-field="id" style="width: 80px">1</td>
  41.                                                         <td data-field="name">David McHenry</td>
  42.                                                         <td data-field="age">24</td>
  43.                                                         <td data-field="gender">Male</td>
  44.                                                         <td style="width: 100px">
  45.                                                             <a class="btn btn-outline-secondary btn-sm edit" title="Edit">
  46.                                                                 <i class="fas fa-pencil-alt"></i>
  47.                                                             </a>
  48.                                                         </td>
  49.                                                     </tr>
  50.                                                     <tr data-id="2">
  51.                                                         <td data-field="id">2</td>
  52.                                                         <td data-field="name">Frank Kirk</td>
  53.                                                         <td data-field="age">22</td>
  54.                                                         <td data-field="gender">Male</td>
  55.                                                         <td>
  56.                                                             <a class="btn btn-outline-secondary btn-sm edit" title="Edit">
  57.                                                                 <i class="fas fa-pencil-alt"></i>
  58.                                                             </a>
  59.                                                         </td>
  60.                                                     </tr>
  61.                                                     <tr data-id="3">
  62.                                                         <td data-field="id">3</td>
  63.                                                         <td data-field="name">Rafael Morales</td>
  64.                                                         <td data-field="age">26</td>
  65.                                                         <td data-field="gender">Male</td>
  66.                                                         <td>
  67.                                                             <a class="btn btn-outline-secondary btn-sm edit" title="Edit">
  68.                                                                 <i class="fas fa-pencil-alt"></i>
  69.                                                             </a>
  70.                                                         </td>
  71.                                                     </tr>
  72.                                                     <tr data-id="4">
  73.                                                         <td data-field="id">4</td>
  74.                                                         <td data-field="name">Mark Ellison</td>
  75.                                                         <td data-field="age">32</td>
  76.                                                         <td data-field="gender">Male</td>
  77.                                                         <td>
  78.                                                             <a class="btn btn-outline-secondary btn-sm edit" title="Edit">
  79.                                                                 <i class="fas fa-pencil-alt"></i>
  80.                                                             </a>
  81.                                                         </td>
  82.                                                     </tr>
  83.                                                     <tr data-id="5">
  84.                                                         <td data-field="id">5</td>
  85.                                                         <td data-field="name">Minnie Walter</td>
  86.                                                         <td data-field="age">27</td>
  87.                                                         <td data-field="gender">Female</td>
  88.                                                         <td>
  89.                                                             <a class="btn btn-outline-secondary btn-sm edit" title="Edit">
  90.                                                                 <i class="fas fa-pencil-alt"></i>
  91.                                                             </a>
  92.                                                         </td>
  93.                                                     </tr>
  94.                                                 </tbody>
  95.                                                 </table>
  96.                                         </div>
  97.         
  98.                                     </div>
  99.                                 </div>
  100.                             </div> <!-- end col -->
  101.                         </div> <!-- end row -->
  102.                         
  103.                     </div> <!-- container-fluid -->
  104.                 </div>
  105.                 <!-- End Page-content -->
  106.                 
  107.                 {{ include('partials/footer.html.twig') }}
  108.             </div>
  109.             <!-- end main content-->
  110.         </div>
  111.         <!-- END layout-wrapper -->
  112.         {{ include('partials/right-sidebar.html.twig') }}
  113.         {{ include('partials/vendor-scripts.html.twig') }}
  114.          <!-- Table Editable plugin -->
  115.          <script src="/libs/table-edits/build/table-edits.min.js"></script>
  116.         <script src="/js/pages/table-editable.int.js"></script> 
  117.         <script src="/js/app.js"></script>
  118.     </body>
  119. </html>