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.

54 lines
2.0 KiB

3 years ago
  1. <% layout('./../layout.html') %>
  2. <div class="container">
  3. <div class="grid">
  4. <div class="col-12">
  5. <h2>
  6. Create Bucket
  7. </h2>
  8. </div>
  9. <div class="col-12">
  10. <form action="/bucket/store" method="POST" novalidate>
  11. <div class="field">
  12. <label class="field__label">
  13. title*
  14. <input class="field__text" name="title" type="text" />
  15. </label>
  16. </div>
  17. <div class="field">
  18. <label class="field__label">
  19. description*
  20. <input class="field__text" name="description" type="text" />
  21. </label>
  22. </div>
  23. <div class="field">
  24. <label class="field__label">
  25. type*
  26. <% it.types.forEach(function(type) { %>
  27. <input class="field__choice" name="type" type="radio" value="<%= type.value %>" />
  28. <span class="field__help">
  29. <%= type %>
  30. </span>
  31. <% }) %>
  32. </label>
  33. </div>
  34. <div class="field">
  35. <label class="field__label">
  36. visiblity*
  37. <% it.visiblities.forEach(function(visiblity) { %>
  38. <input class="field__choice" name="visiblity" type="radio" value="<%= visiblity.value %>" />
  39. <span>
  40. <%= visiblity %>
  41. </span>
  42. <% }) %>
  43. </label>
  44. </div>
  45. <div class="">
  46. <button class="button">
  47. Create
  48. </button>
  49. </div>
  50. </form>
  51. </div>
  52. </div>
  53. </div>