form-elements.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. ---
  2. title: Form elements
  3. page-header: Form elements
  4. menu: forms
  5. libs: nouislider, autosize, tabler-flags, tabler-payments, litepicker, tom-select
  6. ---
  7. <div class="row row-cards">
  8. <div class="col-12">
  9. <form action="https://httpbin.org/post" method="post" class="card">
  10. <div class="card-header">
  11. <h4 class="card-title">Form elements</h4>
  12. </div>
  13. <div class="card-body">
  14. <div class="row g-5">
  15. <div class="col-xl-4">
  16. <div class="row">
  17. <div class="col-md-6 col-xl-12">{% include forms/form-elements-1.html %}</div>
  18. <div class="col-md-6 col-xl-12">{% include forms/form-elements-2.html %}</div>
  19. </div>
  20. </div>
  21. <div class="col-xl-4">
  22. <div class="row">
  23. <div class="col-md-6 col-xl-12">{% include forms/form-elements-3.html %}</div>
  24. <div class="col-md-6 col-xl-12">{% include forms/form-elements-4.html %}</div>
  25. </div>
  26. </div>
  27. <div class="col-xl-4">
  28. <div class="row">
  29. <div class="col-md-6 col-xl-12">{% include forms/form-elements-5.html %}</div>
  30. <div class="col-md-6 col-xl-12">{% include forms/form-elements-6.html %}</div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="card-footer text-end">
  36. <div class="d-flex">
  37. <a href="#" class="btn btn-link">Cancel</a>
  38. <button type="submit" class="btn btn-primary ms-auto">Send data</button>
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. <div class="col-md-6">
  44. <div class="card">
  45. <div class="card-body">
  46. <h3 class="card-title">Project ID</h3>
  47. <p class="card-subtitle">Used when interacting with the API.</p>
  48. {% include ui/form/input-icon.html icon="files" value="prj_5ae74426fe935327a8fa178b07d84ad9" readonly=true
  49. %}
  50. </div>
  51. <div class="card-footer">
  52. <div class="row align-items-center">
  53. <div class="col">Learn more about <a href="#">Project ID</a></div>
  54. <div class="col-auto">
  55. {% include ui/button.html text="Save" color="primary" %}
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="col-md-6">
  62. <div class="card">
  63. <div class="card-body">
  64. <h3 class="card-title">Node.js Version</h3>
  65. <p class="card-subtitle">The version of Node.js that is used in the Build Step and for Serverless Functions.
  66. A new Deployment is required for your changes to take effect.</p>
  67. <select class="form-select">
  68. <option>14.x</option>
  69. <option>12.x</option>
  70. </select>
  71. </div>
  72. <div class="card-footer">
  73. Learn more about <a href="#">Node.js Version</a>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="col-md-6">
  78. {% include cards/form/layout.html %}
  79. </div>
  80. <div class="col-md-6">
  81. {% include cards/form/layout.html horizontal=true title="Horizontal form" %}
  82. </div>
  83. <div class="col-lg-4">
  84. <div class="row row-cards">
  85. <div class="col-12">
  86. <div class="card">
  87. <div class="card-header">
  88. <h3 class="card-title">Input mask</h3>
  89. </div>
  90. <div class="card-body">
  91. <div class="mb-3">
  92. <label class="form-label">Date</label>
  93. {% include ui/form/input-mask.html mask="00/00/0000" visible=true %}
  94. </div>
  95. <div class="mb-3">
  96. <label class="form-label">Hour</label>
  97. {% include ui/form/input-mask.html mask="00:00:00" visible=true %}
  98. </div>
  99. <div class="mb-3">
  100. <label class="form-label">Date &amp; Hour</label>
  101. {% include ui/form/input-mask.html mask="00/00/0000 00:00:00" visible=true %}
  102. </div>
  103. <div class="mb-3">
  104. <label class="form-label">ZIP Code</label>
  105. {% include ui/form/input-mask.html mask="00000-000" visible=true %}
  106. </div>
  107. <div class="mb-3">
  108. <label class="form-label">Money</label>
  109. {% include ui/form/input-mask.html mask="000.000.000.000.000,00" visible=true reverse=true %}
  110. </div>
  111. <div class="mb-3">
  112. <label class="form-label">Telephone</label>
  113. {% include ui/form/input-mask.html mask="0000-0000" visible=true %}
  114. </div>
  115. <div class="mb-3">
  116. <label class="form-label">Telephone with Code Area</label>
  117. {% include ui/form/input-mask.html mask="(00) 0000-0000" visible=true %}
  118. </div>
  119. <div class="mb-3">
  120. <label class="form-label">IP Address</label>
  121. {% include ui/form/input-mask.html mask="099.099.099.099" placeholder="000.000.000.000" visible=true %}
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. <div class="col-12">
  127. <form class="card">
  128. <div class="card-header">
  129. <h3 class="card-title">My Profile</h3>
  130. </div>
  131. <div class="card-body">
  132. <div class="mb-3">
  133. <div class="row">
  134. <div class="col-auto">
  135. {% include ui/avatar.html person-id=3 size="md" %}
  136. </div>
  137. <div class="col">
  138. <div class="mb-3">
  139. <label class="form-label">Email-Address</label>
  140. <input class="form-control" placeholder="your-email@domain.com">
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="mb-3">
  146. <label class="form-label">Bio</label>
  147. <textarea class="form-control"
  148. rows="5">Big belly rude boy, million dollar hustler. Unemployed.</textarea>
  149. </div>
  150. <div class="mb-3">
  151. <label class="form-label">Email-Address</label>
  152. <input class="form-control" placeholder="your-email@domain.com">
  153. </div>
  154. <div class="mb-3">
  155. <label class="form-label">Password</label>
  156. <input type="password" class="form-control" value="password">
  157. </div>
  158. </div>
  159. <div class="card-footer text-end">
  160. {% include ui/button.html text="Save" color="primary" %}
  161. </div>
  162. </form>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="col-lg-8">
  167. <div class="row row-cards">
  168. <div class="col-12">
  169. <form class="card">
  170. <div class="card-body">
  171. <h3 class="card-title">Edit Profile</h3>
  172. <div class="row row-cards">
  173. <div class="col-md-5">
  174. <div class="mb-3">
  175. <label class="form-label">Company</label>
  176. <input type="text" class="form-control" disabled="" placeholder="Company"
  177. value="Creative Code Inc.">
  178. </div>
  179. </div>
  180. <div class="col-sm-6 col-md-3">
  181. <div class="mb-3">
  182. <label class="form-label">Username</label>
  183. <input type="text" class="form-control" placeholder="Username" value="michael23">
  184. </div>
  185. </div>
  186. <div class="col-sm-6 col-md-4">
  187. <div class="mb-3">
  188. <label class="form-label">Email address</label>
  189. <input type="email" class="form-control" placeholder="Email">
  190. </div>
  191. </div>
  192. <div class="col-sm-6 col-md-6">
  193. <div class="mb-3">
  194. <label class="form-label">First Name</label>
  195. <input type="text" class="form-control" placeholder="Company" value="Chet">
  196. </div>
  197. </div>
  198. <div class="col-sm-6 col-md-6">
  199. <div class="mb-3">
  200. <label class="form-label">Last Name</label>
  201. <input type="text" class="form-control" placeholder="Last Name" value="Faker">
  202. </div>
  203. </div>
  204. <div class="col-md-12">
  205. <div class="mb-3">
  206. <label class="form-label">Address</label>
  207. <input type="text" class="form-control" placeholder="Home Address"
  208. value="Melbourne, Australia">
  209. </div>
  210. </div>
  211. <div class="col-sm-6 col-md-4">
  212. <div class="mb-3">
  213. <label class="form-label">City</label>
  214. <input type="text" class="form-control" placeholder="City" value="Melbourne">
  215. </div>
  216. </div>
  217. <div class="col-sm-6 col-md-3">
  218. <div class="mb-3">
  219. <label class="form-label">Postal Code</label>
  220. <input type="test" class="form-control" placeholder="ZIP Code">
  221. </div>
  222. </div>
  223. <div class="col-md-5">
  224. <div class="mb-3">
  225. <label class="form-label">Country</label>
  226. <select class="form-control form-select">
  227. <option value="">Germany</option>
  228. </select>
  229. </div>
  230. </div>
  231. <div class="col-md-12">
  232. <div class="mb-3 mb-0">
  233. <label class="form-label">About Me</label>
  234. <textarea rows="5" class="form-control" placeholder="Here can be your description"
  235. value="Mike">Oh so, your weak rhyme
  236. You doubt I'll bother, reading into it
  237. I'll probably won't, left to my own devices
  238. But that's the difference in our opinions.</textarea>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. <div class="card-footer text-end">
  244. <button type="submit" class="btn btn-primary">Update Profile</button>
  245. </div>
  246. </form>
  247. </div>
  248. <div class="col-12">
  249. <div class="card">
  250. <div class="card-header">
  251. <h3 class="card-title">HTTP Request</h3>
  252. </div>
  253. <div class="card-body">
  254. <div class="row row-cards">
  255. <div class="mb-3 col-sm-4 col-md-2">
  256. <label class="form-label required">Method</label>
  257. <select class="form-select">
  258. <option value="GET">GET</option>
  259. <option value="POST">POST</option>
  260. <option value="PUT">PUT</option>
  261. <option value="HEAD">HEAD</option>
  262. <option value="DELETE">DELETE</option>
  263. <option value="PATCH">PATCH</option>
  264. </select>
  265. </div>
  266. <div class="mb-3 col-sm-8 col-md-10">
  267. <label class="form-label required">URL</label>
  268. <input name="url" type="text" class="form-control"
  269. value="https://content.googleapis.com/discovery/v1/apis/surveys/v2/rest">
  270. </div>
  271. </div>
  272. <div class="form-label">Assertions</div>
  273. <div class="table-responsive">
  274. <table class="table mb-0">
  275. <thead>
  276. <tr>
  277. <th>Source</th>
  278. <th>Property</th>
  279. <th>Comparison</th>
  280. <th>Target</th>
  281. </tr>
  282. </thead>
  283. <tbody>
  284. <tr>
  285. <td>
  286. <select class="form-select">
  287. <option value="STATUS_CODE" selected="">Status code</option>
  288. <option value="JSON_BODY">JSON body</option>
  289. <option value="HEADERS">Headers</option>
  290. <option value="TEXT_BODY">Text body</option>
  291. <option value="RESPONSE_TIME">Response time</option>
  292. </select>
  293. </td>
  294. <td>
  295. <input type="text" class="form-control"></td>
  296. <td>
  297. <select class="form-select">
  298. <option value="EQUALS" selected="">Equals</option>
  299. <option value="NOT_EQUALS">Not equals</option>
  300. <option value="HAS_KEY">Has key</option>
  301. <option value="NOT_HAS_KEY">Not has key</option>
  302. <option value="HAS_VALUE">Has value</option>
  303. <option value="NOT_HAS_VALUE">Not has value</option>
  304. <option value="IS_EMPTY">Is empty</option>
  305. <option value="NOT_EMPTY">Is not empty</option>
  306. <option value="GREATER_THAN">Greater than</option>
  307. <option value="LESS_THAN">Less than</option>
  308. </select>
  309. </td>
  310. <td>
  311. <input type="text" class="form-control" value="200">
  312. </td>
  313. </tr>
  314. <tr>
  315. <td>
  316. <select class="form-select">
  317. <option value="STATUS_CODE">Status code</option>
  318. <option value="JSON_BODY" selected="">JSON body</option>
  319. <option value="HEADERS">Headers</option>
  320. <option value="TEXT_BODY">Text body</option>
  321. <option value="RESPONSE_TIME">Response time</option>
  322. </select>
  323. </td>
  324. <td>
  325. <input type="text" class="form-control" value="parameters.alt.type">
  326. </td>
  327. <td>
  328. <select class="form-select">
  329. <option value="EQUALS">Equals</option>
  330. <option value="NOT_EQUALS">Not equals</option>
  331. <option value="HAS_KEY">Has key</option>
  332. <option value="NOT_HAS_KEY">Not has key</option>
  333. <option value="HAS_VALUE" selected="">Has value</option>
  334. <option value="NOT_HAS_VALUE">Not has value</option>
  335. <option value="IS_EMPTY">Is empty</option>
  336. <option value="NOT_EMPTY">Is not empty</option>
  337. <option value="GREATER_THAN">Greater than</option>
  338. <option value="LESS_THAN">Less than</option>
  339. </select>
  340. </td>
  341. <td>
  342. <input type="text" class="form-control" value="string">
  343. </td>
  344. </tr>
  345. <tr>
  346. <td>
  347. <select class="form-select">
  348. <option value="STATUS_CODE">Status code</option>
  349. <option value="JSON_BODY">JSON body</option>
  350. <option value="HEADERS">Headers</option>
  351. <option value="TEXT_BODY">Text body</option>
  352. <option value="RESPONSE_TIME" selected="">Response time</option>
  353. </select>
  354. </td>
  355. <td>
  356. <input type="text" class="form-control"></td>
  357. <td>
  358. <select class="form-select">
  359. <option value="EQUALS">Equals</option>
  360. <option value="NOT_EQUALS">Not equals</option>
  361. <option value="HAS_KEY">Has key</option>
  362. <option value="NOT_HAS_KEY">Not has key</option>
  363. <option value="HAS_VALUE">Has value</option>
  364. <option value="NOT_HAS_VALUE">Not has value</option>
  365. <option value="IS_EMPTY">Is empty</option>
  366. <option value="NOT_EMPTY">Is not empty</option>
  367. <option value="GREATER_THAN">Greater than</option>
  368. <option value="LESS_THAN" selected="">Less than</option>
  369. </select>
  370. </td>
  371. <td>
  372. <input type="text" class="form-control" value="500">
  373. </td>
  374. </tr>
  375. <tr>
  376. <td>
  377. <select class="form-select">
  378. <option value="STATUS_CODE">Status code</option>
  379. <option value="JSON_BODY">JSON body</option>
  380. <option value="HEADERS" selected="">Headers</option>
  381. <option value="TEXT_BODY">Text body</option>
  382. <option value="RESPONSE_TIME">Response time</option>
  383. </select>
  384. </td>
  385. <td>
  386. <input type="text" class="form-control" value="content-type">
  387. </td>
  388. <td>
  389. <select class="form-select">
  390. <option value="EQUALS" selected="">Equals</option>
  391. <option value="NOT_EQUALS">Not equals</option>
  392. <option value="HAS_KEY">Has key</option>
  393. <option value="NOT_HAS_KEY">Not has key</option>
  394. <option value="HAS_VALUE">Has value</option>
  395. <option value="NOT_HAS_VALUE">Not has value</option>
  396. <option value="IS_EMPTY">Is empty</option>
  397. <option value="NOT_EMPTY">Is not empty</option>
  398. <option value="GREATER_THAN">Greater than</option>
  399. <option value="LESS_THAN">Less than</option>
  400. </select>
  401. </td>
  402. <td>
  403. <input type="text" class="form-control" value="application/json; charset=UTF-8">
  404. </td>
  405. </tr>
  406. </tbody>
  407. </table>
  408. </div>
  409. </div>
  410. <div class="card-footer text-end">
  411. <button type="submit" class="btn btn-primary">Make request</button>
  412. </div>
  413. </div>
  414. </div>
  415. </div>
  416. </div>
  417. </div>