Distros.hbs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html>
  2. <html lang="ru">
  3. <head>
  4. <title>{{title}}</title>
  5. <!-- Required meta tags -->
  6. <meta charset="utf-8" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  8. <link rel="stylesheet" href="/bootstrap/dist/css/bootstrap.min.css" />
  9. </head>
  10. <body>
  11. {{> menu}}
  12. <div class="container">
  13. <table class="table table-striped table-sm">
  14. <thead>
  15. <th>id</th>
  16. <th>vendor</th>
  17. <th></th>
  18. </thead>
  19. <tbody>
  20. {{#each distr}}
  21. <tr>
  22. <td>{{this.id}}</td>
  23. <td>{{this.vendor}}</td>
  24. <td>
  25. <a href="/dataBase/edit/distr{{this.id}}">Edit</a>|
  26. <form action="/dataBase/delete/distr{{this.id}}" method="POST" style="display:inline;">
  27. <input type="submit" value="Delete" />
  28. </form>
  29. </td>
  30. </tr>
  31. {{/each}}
  32. </tbody>
  33. </table>
  34. </div>
  35. <script src="jquery/dist/jquery.slim.min.js"></script>
  36. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
  37. integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
  38. crossorigin="anonymous"></script>
  39. <script src="bootstrap/dist/js/bootstrap.min.js"></script>
  40. </body>
  41. </html>