form-elements-5.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {% include "parts/form/input-radios.html" %}
  2. {% include "parts/form/input-radios-inline.html" %}
  3. {% include "parts/form/input-checkboxes.html" %}
  4. {% include "parts/form/input-checkboxes-inline.html" %}
  5. <div class="mb-3">
  6. <label class="form-label">Checkboxes with description</label>
  7. <label class="form-check">
  8. <input class="form-check-input" type="checkbox">
  9. <span class="form-check-label">
  10. Default checkbox
  11. </span>
  12. <span class="form-check-description">
  13. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
  14. </span>
  15. </label>
  16. <label class="form-check">
  17. <input class="form-check-input" type="checkbox">
  18. <span class="form-check-label">
  19. Longer checkbox item that wraps on to two separate lines
  20. </span>
  21. <span class="form-check-description">
  22. Ab alias aut, consequuntur cumque esse eveniet incidunt laborum minus molestiae.
  23. </span>
  24. </label>
  25. <label class="form-check">
  26. <input class="form-check-input" type="checkbox">
  27. <span class="form-check-label">
  28. Default checkbox without description
  29. </span>
  30. </label>
  31. </div>
  32. {% include "parts/form/input-toggle.html" %}
  33. {% include "parts/form/input-toggle-single.html" %}
  34. <div class="mb-3">
  35. <label class="form-label">Notification</label>
  36. {% include "parts/form/checkboxes-list.html" %}
  37. </div>
  38. {% include "parts/form/input-file.html" %}
  39. <div class="mb-3">
  40. <label class="form-label">Date of birth</label>
  41. <div class="row g-2">
  42. <div class="col-5">
  43. <select name="user[month]" class="form-select">
  44. <option value="">Month</option>
  45. <option value="1">January</option>
  46. <option value="2">February</option>
  47. <option value="3">March</option>
  48. <option value="4">April</option>
  49. <option value="5">May</option>
  50. <option selected="selected" value="6">June</option>
  51. <option value="7">July</option>
  52. <option value="8">August</option>
  53. <option value="9">September</option>
  54. <option value="10">October</option>
  55. <option value="11">November</option>
  56. <option value="12">December</option>
  57. </select>
  58. </div>
  59. <div class="col-3">
  60. <select name="user[day]" class="form-select">
  61. <option value="">Day</option>
  62. {% for i in (1..31) %}
  63. <option value="{{ i }}" {% if i== 20 %} selected{% endif %}>{{ i }}</option>
  64. {% endfor %}
  65. </select>
  66. </div>
  67. <div class="col-4">
  68. <select name="user[year]" class="form-select">
  69. <option value="">Year</option>
  70. {% for i in (1897..2014) reversed %}
  71. <option value="{{ i }}" {% if i== 1989 %} selected{% endif %}>{{ i }}</option>
  72. {% endfor %}
  73. </select>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="mb-3">
  78. <label class="form-label">Text mask</label>
  79. {% include "ui/form/input-mask.html" mask="00/00/0000" placeholder="00/00/0000" visible=true %}
  80. </div>
  81. <div class="mb-3">
  82. <label class="form-label">Telephone mask</label>
  83. {% include "ui/form/input-mask.html" mask="(00) 0000-0000" placeholder="(00) 0000-0000" visible=true %}
  84. </div>
  85. <div class="mb-3">
  86. <label class="form-label">Autosize textarea</label>
  87. {% include "ui/form/textarea-autosize.html" %}
  88. </div>