form-elements-1.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {% include "parts/form/input.html" type="static" %}
  2. {% include "parts/form/input.html" type="text" hint="Here's some more info." %}
  3. {% include "parts/form/input.html" type="password" hint="Here's some more info." %}
  4. <div class="mb-3">
  5. <label class="form-label">Disabled</label>
  6. <input type="text" class="form-control" name="example-disabled-input" placeholder="Disabled..."
  7. value="Well, she turned me into a newt." disabled>
  8. </div>
  9. <div class="mb-3">
  10. <label class="form-label">Readonly</label>
  11. <input type="text" class="form-control" name="example-disabled-input" placeholder="Readonly..."
  12. value="Well, how'd you become king, then?" readonly>
  13. </div>
  14. <div class="mb-3">
  15. <label class="form-label required">Required</label>
  16. <input type="text" class="form-control" name="example-required-input" placeholder="Required..." >
  17. </div>
  18. <div class="mb-3">
  19. <label class="form-label">Textarea <span class="form-label-description">56/100</span></label>
  20. <textarea class="form-control" name="example-textarea-input" rows="6" placeholder="Content..">Oh! Come and see the violence inherent in the system! Help, help, I'm being repressed! We shall say 'Ni' again to you, if you do not appease us. I'm not a witch. I'm not a witch. Camelot!</textarea>
  21. </div>
  22. {% include "parts/form/select.html" %}
  23. {% include "parts/form/select.html" label="Select multiple" multiple=true %}
  24. <div class="mb-3">
  25. <div class="form-label">Select multiple states</div>
  26. {% include "ui/select.html" key="states" multiple=true %}
  27. </div>
  28. <div class="mb-3">
  29. <label class="form-label">Input group</label>
  30. <div class="input-group mb-2">
  31. <input type="text" class="form-control" placeholder="Search for…">
  32. <button class="btn" type="button">Go!</button>
  33. </div>
  34. <div class="input-group">
  35. <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  36. Action
  37. </button>
  38. {% include "ui/dropdown-menu.html" %}
  39. <input type="text" class="form-control" aria-label="Text input with dropdown button">
  40. </div>
  41. </div>
  42. <div class="mb-3">
  43. <label class="form-label">Input group buttons</label>
  44. <div class="input-group">
  45. <input type="text" class="form-control">
  46. <button type="button" class="btn">Action</button>
  47. <button data-bs-toggle="dropdown" type="button" class="btn dropdown-toggle dropdown-toggle-split"></button>
  48. {% include "ui/dropdown-menu.html" right=true %}
  49. </div>
  50. </div>
  51. {% include "parts/form/input-icon.html" %}
  52. {% include "parts/form/input-icon-separated.html" %}
  53. <div class="mb-3">
  54. <label class="form-label">Input with help icon</label>
  55. <div class="row g-2">
  56. <div class="col">
  57. <input type="text" class="form-control" placeholder="Search for…">
  58. </div>
  59. <div class="col-auto align-self-center">
  60. <span class="form-help" data-bs-toggle="popover" data-bs-placement="top"
  61. data-bs-content="<p>ZIP Code must be US or CDN format. You can use an extended ZIP+4 code to determine address more accurately.</p><p class='mb-0'><a href='#'>USP ZIP codes lookup tools</a></p>"
  62. data-bs-html="true">?</span>
  63. </div>
  64. </div>
  65. </div>