You are here

yamlform.yamlform.example_layout_flexbox.yml in YAML Form 8

modules/yamlform_examples/config/install/yamlform.yamlform.example_layout_flexbox.yml

File

modules/yamlform_examples/config/install/yamlform.yamlform.example_layout_flexbox.yml
View source
  1. langcode: en
  2. status: true
  3. dependencies:
  4. enforced:
  5. module:
  6. - yamlform_examples
  7. uid: null
  8. template: false
  9. id: example_layout_flexbox
  10. title: 'Example: Layout: Flexbox'
  11. description: 'Examples of multiple column form layout using <a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/">Flexbox</a>.'
  12. elements: |
  13. name:
  14. '#type': flexbox
  15. title:
  16. '#type': textfield
  17. '#title': 'Title'
  18. first_name:
  19. '#type': textfield
  20. '#title': 'First name'
  21. '#flex': 3
  22. middle_name:
  23. '#type': textfield
  24. '#title': 'Middle name'
  25. '#flex': 3
  26. last_name:
  27. '#type': textfield
  28. '#title': 'Last name'
  29. '#flex': 5
  30. suffix:
  31. '#type': textfield
  32. '#title': 'Suffix'
  33. personal_information_1:
  34. '#type': flexbox
  35. birth_date:
  36. '#type': datelist
  37. '#title': 'Birth date'
  38. '#date_part_order':
  39. - month
  40. - day
  41. - year
  42. gender:
  43. '#type': radios
  44. '#title': 'Gender'
  45. '#options': gender
  46. '#options_display': two_columns
  47. personal_information_2:
  48. '#type': flexbox
  49. ethnicity:
  50. '#type': checkboxes_other
  51. '#title': 'Ethnicity'
  52. '#options': ethnicity
  53. '#options_display': three_columns
  54. marital_status:
  55. '#type': radios
  56. '#title': 'Marital status'
  57. '#options': marital_status
  58. '#options_display': two_columns
  59. work:
  60. '#type': flexbox
  61. employment_status:
  62. '#type': select_other
  63. '#title': 'Employment status'
  64. '#options': employment_status
  65. industry:
  66. '#type': select_other
  67. '#title': 'If employed, industry of employer'
  68. '#options': industry
  69. address_line_1:
  70. '#type': flexbox
  71. address:
  72. '#type': textfield
  73. '#title': 'Street address (Line 1)'
  74. address_line_2:
  75. '#type': flexbox
  76. address_1:
  77. '#type': textfield
  78. '#title': 'Street address (Line 2)'
  79. address_line_3:
  80. '#type': flexbox
  81. city:
  82. '#type': textfield
  83. '#title': 'City'
  84. state_province:
  85. '#type': select_other
  86. '#title': 'State/Province'
  87. '#options': state_province_names
  88. zip:
  89. '#type': textfield
  90. '#title': 'Zip'
  91. address_line_4:
  92. country:
  93. '#type': select
  94. '#title': 'Country'
  95. '#options': country_names
  96. phone_number:
  97. '#type': flexbox
  98. mobile_phone:
  99. '#type': tel
  100. '#title': 'Mobile phone'
  101. home_phone:
  102. '#type': tel
  103. '#title': 'Home phone'
  104. work_phone:
  105. '#type': tel
  106. '#title': 'Home phone'
  107. web:
  108. '#type': flexbox
  109. email:
  110. '#type': email
  111. '#title': 'E-mail address'
  112. url:
  113. '#type': url
  114. '#title': 'Home page (URL)'
  115. css: ''
  116. javascript: ''
  117. settings:
  118. page: true
  119. page_submit_path: ''
  120. page_confirm_path: ''
  121. form_submit_label: ''
  122. form_submit_attributes: { }
  123. form_exception_message: ''
  124. form_closed_message: ''
  125. form_confidential: false
  126. form_confidential_message: ''
  127. form_prepopulate: false
  128. form_prepopulate_source_entity: false
  129. form_novalidate: false
  130. form_unsaved: false
  131. form_disable_back: false
  132. form_autofocus: false
  133. form_details_toggle: false
  134. wizard_progress_bar: true
  135. wizard_progress_pages: false
  136. wizard_progress_percentage: false
  137. wizard_next_button_label: ''
  138. wizard_next_button_attributes: { }
  139. wizard_prev_button_label: ''
  140. wizard_prev_button_attributes: { }
  141. wizard_start_label: ''
  142. wizard_complete: true
  143. wizard_complete_label: ''
  144. preview: 0
  145. preview_next_button_label: ''
  146. preview_next_button_attributes: { }
  147. preview_prev_button_label: ''
  148. preview_prev_button_attributes: { }
  149. preview_message: ''
  150. draft: false
  151. draft_auto_save: false
  152. draft_button_label: ''
  153. draft_button_attributes: { }
  154. draft_saved_message: ''
  155. draft_loaded_message: ''
  156. confirmation_type: page
  157. confirmation_message: ''
  158. confirmation_url: ''
  159. confirmation_attributes: { }
  160. confirmation_back: true
  161. confirmation_back_label: ''
  162. confirmation_back_attributes: { }
  163. limit_total: null
  164. limit_total_message: ''
  165. limit_user: null
  166. limit_user_message: ''
  167. entity_limit_total: null
  168. entity_limit_user: null
  169. results_disabled: false
  170. results_disabled_ignore: false
  171. token_update: false
  172. access:
  173. create:
  174. roles:
  175. - anonymous
  176. - authenticated
  177. users: { }
  178. view_any:
  179. roles: { }
  180. users: { }
  181. update_any:
  182. roles: { }
  183. users: { }
  184. delete_any:
  185. roles: { }
  186. users: { }
  187. purge_any:
  188. roles: { }
  189. users: { }
  190. view_own:
  191. roles: { }
  192. users: { }
  193. update_own:
  194. roles: { }
  195. users: { }
  196. delete_own:
  197. roles: { }
  198. users: { }
  199. handlers: { }