Edit.hbs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. <div class="row">
  14. <div class="container">
  15. <label>old data:</label>
  16. <p>ID - {{obj.id}} Vendor -{{venID}} modelName - {{obj.modelName}}</p>
  17. </div>
  18. <form method="POST">
  19. <label>Vendor
  20. </label><br>
  21. <select class="form-select form-select-sm mb-3" aria-label=".form-select-sm example" id="Type"
  22. name="Vendor">
  23. {{#each vendor}}
  24. <option value="{{this.id}}">{{this.companyName}}</option>
  25. {{/each}}
  26. </select>
  27. <div class="input-group mb-3">
  28. <input type="text" name="modelName" class="form-control md-5" placeholder="modelName">
  29. </div>
  30. <div class="input-group mb-3">
  31. <select class="form-select form-select" aria-label=".form-select-sm example" id="Type"
  32. name="linuxVendor">
  33. {{#each linux}}
  34. <option value="{{this.id}}">{{this.vendor}}</option>
  35. {{/each}}
  36. </select>
  37. <input type="text" name="linuxStatus" class="form-control" placeholder="LinuxStatus">
  38. </div>
  39. <button type="submit" class="btn btn-primary float-end md-8">
  40. Изменить
  41. </button>
  42. </form>
  43. </div>
  44. </div>
  45. <script src="jquery/dist/jquery.slim.min.js"></script>
  46. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
  47. integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
  48. crossorigin="anonymous"></script>
  49. <script src="bootstrap/dist/js/bootstrap.min.js"></script>
  50. </body>
  51. </html>