You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
3.4 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <% layout('./../layout.html') %>
  2. <div class="container container--app">
  3. <div class="grid">
  4. <div class="col-12">
  5. <h1 class="highlight">
  6. Create Bucket
  7. </h1>
  8. </div>
  9. <div class="col-12">
  10. <form id="form" action="/bucket/store" method="POST" novalidate >
  11. <div class="field-group">
  12. <label class="field-label">
  13. title*
  14. <input class="field-text" name="title" type="text" />
  15. </label>
  16. <field-error name="title"></field-error>
  17. </div>
  18. <div class="field-group">
  19. <label class="field-label">
  20. description*
  21. <input class="field-text" name="description" type="text" />
  22. </label>
  23. <field-error name="description"></field-error>
  24. </div>
  25. <div class="field-group">
  26. <div class="m-top-4 m-bottom-3">
  27. type*
  28. </div>
  29. <% it.types.forEach(function(type) { %>
  30. <label class="field-label m-right-3">
  31. <input class="field-choice" name="type" type="radio" value="<%= type.value %>" />
  32. <svg class="icon field-choice__unchecked" aria-hidden="true">
  33. <use xlink:href="/symbol-defs.svg#icon-circle"></use>
  34. </svg>
  35. <svg class="icon field-choice__checked" aria-hidden="true">
  36. <use xlink:href="/symbol-defs.svg#icon-circle-check"></use>
  37. </svg>
  38. <%= type %>
  39. </label>
  40. <% }) %>
  41. <field-error name="type"></field-error>
  42. </div>
  43. <div class="field-group">
  44. <div class="m-top-4 m-bottom-3">
  45. visiblity*
  46. </div>
  47. <% it.visiblities.forEach(function(visiblity) { %>
  48. <label class="field-label m-right-3">
  49. <input class="field-choice" name="visiblity" type="radio" value="<%= visiblity.value %>" />
  50. <svg class="icon field-choice__unchecked" aria-hidden="true">
  51. <use xlink:href="/symbol-defs.svg#icon-circle"></use>
  52. </svg>
  53. <svg class="icon field-choice__checked" aria-hidden="true">
  54. <use xlink:href="/symbol-defs.svg#icon-circle-check"></use>
  55. </svg>
  56. <%= visiblity %>
  57. </label>
  58. <% }) %>
  59. <field-error name="visiblity"></field-error>
  60. </div>
  61. <div class="m-top-5">
  62. <button class="button hover-fill-text-constrast">
  63. Create
  64. <svg class="icon p-left-3 size-large" aria-hidden="true">
  65. <use xlink:href="/symbol-defs.svg#icon-circle-add"></use>
  66. </svg>
  67. </button>
  68. </div>
  69. </form>
  70. </div>
  71. </div>
  72. </div>
  73. <script type="text/javascript" src="/js/create-bucket.js" defer></script>