create.hbs 1.7 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. <div class="row">
  14. <form method="post">
  15. <label>type</label>
  16. <select class="form-select form-select-sm mb-3" aria-label=".form-select-sm example" name="hardType">
  17. <option value="Processor">proc</option>
  18. <option value="VideoCard">videocard</option>
  19. </select>
  20. <label>vendor</label>
  21. <select class="form-select form-select-sm mb-3" aria-label=".form-select-sm example" name="hardVendor">
  22. {{#each vendor}}
  23. <option value="{{this.id}}">{{this.companyName}}</option>
  24. {{/each}}
  25. </select>
  26. <input name="modelName" type="text" class="form-control md-3" placeholder="modelName"
  27. aria-label="modelName">
  28. <button type="submit" class="btn btn-primary float-end md-8">
  29. добавить
  30. </button>
  31. </form>
  32. </div>
  33. </div>
  34. <script src="jquery/dist/jquery.slim.min.js"></script>
  35. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
  36. integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
  37. crossorigin="anonymous"></script>
  38. <script src="bootstrap/dist/js/bootstrap.min.js"></script>
  39. </body>
  40. </html>