Hards.hbs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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>model</th>
  18. </thead>
  19. <tbody>
  20. {{#each proc}}
  21. <tr>
  22. <td>{{this.id}}</td>
  23. <td>{{this.modelName}}</td>
  24. <td>
  25. <a class="btn btn-primary" href="/database/edit/proc/{{this.id}}">Edit</a>|
  26. <form action="/database/delete/proc/{{this.id}}" method="post">
  27. <input class="btn btn-danger" type="submit" value="delete" />
  28. </form>
  29. </td>
  30. </tr>
  31. {{/each}}
  32. {{#each videoCard}}
  33. <tr>
  34. <td>{{this.id}}</td>
  35. <td>{{this.modelName}}</td>
  36. <td>
  37. <a class="btn btn-primary" href="/dataBase/edit/videoCard/{{this.id}}">Edit</a>|
  38. <form action="/dataBase/delete/videoCard/{{this.id}}" method="post">
  39. <input class="btn btn-danger" type="submit" value="delete" />
  40. </form>
  41. </td>
  42. </tr>
  43. {{/each}}
  44. </tbody>
  45. </table>
  46. </div>
  47. <script src="jquery/dist/jquery.slim.min.js"></script>
  48. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
  49. integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
  50. crossorigin="anonymous"></script>
  51. <script src="bootstrap/dist/js/bootstrap.min.js"></script>
  52. </body>
  53. </html>