padrino_bootstrap_forms 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (862) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +6 -1
  3. data/Changes +8 -0
  4. data/README.markdown +6 -0
  5. data/lib/bootstrap_forms/form_builder.rb +60 -68
  6. data/lib/bootstrap_forms/helpers/form_helper.rb +2 -2
  7. data/lib/bootstrap_forms/helpers/form_tag_helper.rb +22 -16
  8. data/lib/bootstrap_forms/helpers/wrappers.rb +30 -23
  9. data/padrino_bootstrap_forms.gemspec +7 -5
  10. data/spec/app/app.rb +59 -0
  11. data/spec/app/views/erb/bootstrap_actions.erb +1 -0
  12. data/spec/app/views/erb/bootstrap_actions_with_block.erb +3 -0
  13. data/spec/app/views/erb/check_box.erb +1 -0
  14. data/spec/app/views/erb/check_box_tag.erb +1 -0
  15. data/spec/app/views/erb/check_box_tag_with_append.erb +1 -0
  16. data/spec/app/views/erb/check_box_tag_with_error.erb +1 -0
  17. data/spec/app/views/erb/check_box_tag_with_help_block.erb +1 -0
  18. data/spec/app/views/erb/check_box_tag_with_help_inline.erb +1 -0
  19. data/spec/app/views/erb/check_box_tag_with_info.erb +1 -0
  20. data/spec/app/views/erb/check_box_tag_with_prepend.erb +1 -0
  21. data/spec/app/views/erb/check_box_tag_with_prepend_append_and_help_inline.erb +1 -0
  22. data/spec/app/views/erb/check_box_tag_with_success.erb +1 -0
  23. data/spec/app/views/erb/check_box_tag_with_warning.erb +1 -0
  24. data/spec/app/views/erb/check_box_with_append.erb +1 -0
  25. data/spec/app/views/erb/check_box_with_error.erb +1 -0
  26. data/spec/app/views/erb/check_box_with_help_block.erb +1 -0
  27. data/spec/app/views/erb/check_box_with_help_inline.erb +1 -0
  28. data/spec/app/views/erb/check_box_with_info.erb +1 -0
  29. data/spec/app/views/erb/check_box_with_success.erb +1 -0
  30. data/spec/app/views/erb/check_box_with_warning.erb +1 -0
  31. data/spec/app/views/erb/collection_check_boxes.erb +1 -0
  32. data/spec/app/views/erb/collection_check_boxes_with_checked.erb +2 -0
  33. data/spec/app/views/erb/collection_check_boxes_with_help_block.erb +1 -0
  34. data/spec/app/views/erb/collection_radio_buttons.erb +1 -0
  35. data/spec/app/views/erb/collection_radio_buttons_with_checked.erb +2 -0
  36. data/spec/app/views/erb/email_field.erb +1 -0
  37. data/spec/app/views/erb/email_field_tag.erb +1 -0
  38. data/spec/app/views/erb/email_field_tag_tag.erb +1 -0
  39. data/spec/app/views/erb/email_field_tag_with_append.erb +1 -0
  40. data/spec/app/views/erb/email_field_tag_with_error.erb +1 -0
  41. data/spec/app/views/erb/email_field_tag_with_help_block.erb +1 -0
  42. data/spec/app/views/erb/email_field_tag_with_help_inline.erb +1 -0
  43. data/spec/app/views/erb/email_field_tag_with_info.erb +1 -0
  44. data/spec/app/views/erb/email_field_tag_with_prepend.erb +1 -0
  45. data/spec/app/views/erb/email_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  46. data/spec/app/views/erb/email_field_tag_with_success.erb +1 -0
  47. data/spec/app/views/erb/email_field_tag_with_warning.erb +1 -0
  48. data/spec/app/views/erb/email_field_with_append.erb +1 -0
  49. data/spec/app/views/erb/email_field_with_error.erb +1 -0
  50. data/spec/app/views/erb/email_field_with_help_block.erb +1 -0
  51. data/spec/app/views/erb/email_field_with_help_inline.erb +1 -0
  52. data/spec/app/views/erb/email_field_with_info.erb +1 -0
  53. data/spec/app/views/erb/email_field_with_prepend.erb +1 -0
  54. data/spec/app/views/erb/email_field_with_prepend_append_and_help_inline.erb +1 -0
  55. data/spec/app/views/erb/email_field_with_success.erb +1 -0
  56. data/spec/app/views/erb/email_field_with_warning.erb +1 -0
  57. data/spec/app/views/erb/file_field.erb +1 -0
  58. data/spec/app/views/erb/file_field_tag.erb +1 -0
  59. data/spec/app/views/erb/file_field_tag_tag.erb +1 -0
  60. data/spec/app/views/erb/file_field_tag_with_append.erb +1 -0
  61. data/spec/app/views/erb/file_field_tag_with_error.erb +1 -0
  62. data/spec/app/views/erb/file_field_tag_with_help_block.erb +1 -0
  63. data/spec/app/views/erb/file_field_tag_with_help_inline.erb +1 -0
  64. data/spec/app/views/erb/file_field_tag_with_info.erb +1 -0
  65. data/spec/app/views/erb/file_field_tag_with_prepend.erb +1 -0
  66. data/spec/app/views/erb/file_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  67. data/spec/app/views/erb/file_field_tag_with_success.erb +1 -0
  68. data/spec/app/views/erb/file_field_tag_with_warning.erb +1 -0
  69. data/spec/app/views/erb/file_field_with_append.erb +1 -0
  70. data/spec/app/views/erb/file_field_with_error.erb +1 -0
  71. data/spec/app/views/erb/file_field_with_help_block.erb +1 -0
  72. data/spec/app/views/erb/file_field_with_help_inline.erb +1 -0
  73. data/spec/app/views/erb/file_field_with_info.erb +1 -0
  74. data/spec/app/views/erb/file_field_with_prepend.erb +1 -0
  75. data/spec/app/views/erb/file_field_with_prepend_append_and_help_inline.erb +1 -0
  76. data/spec/app/views/erb/file_field_with_success.erb +1 -0
  77. data/spec/app/views/erb/file_field_with_warning.erb +1 -0
  78. data/spec/app/views/erb/label_field.erb +1 -0
  79. data/spec/app/views/erb/number_field.erb +1 -0
  80. data/spec/app/views/erb/number_field_tag.erb +1 -0
  81. data/spec/app/views/erb/number_field_tag_tag.erb +1 -0
  82. data/spec/app/views/erb/number_field_tag_with_append.erb +1 -0
  83. data/spec/app/views/erb/number_field_tag_with_error.erb +1 -0
  84. data/spec/app/views/erb/number_field_tag_with_help_block.erb +1 -0
  85. data/spec/app/views/erb/number_field_tag_with_help_inline.erb +1 -0
  86. data/spec/app/views/erb/number_field_tag_with_info.erb +1 -0
  87. data/spec/app/views/erb/number_field_tag_with_prepend.erb +1 -0
  88. data/spec/app/views/erb/number_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  89. data/spec/app/views/erb/number_field_tag_with_success.erb +1 -0
  90. data/spec/app/views/erb/number_field_tag_with_warning.erb +1 -0
  91. data/spec/app/views/erb/number_field_with_append.erb +1 -0
  92. data/spec/app/views/erb/number_field_with_error.erb +1 -0
  93. data/spec/app/views/erb/number_field_with_help_block.erb +1 -0
  94. data/spec/app/views/erb/number_field_with_help_inline.erb +1 -0
  95. data/spec/app/views/erb/number_field_with_info.erb +1 -0
  96. data/spec/app/views/erb/number_field_with_prepend.erb +1 -0
  97. data/spec/app/views/erb/number_field_with_prepend_append_and_help_inline.erb +1 -0
  98. data/spec/app/views/erb/number_field_with_success.erb +1 -0
  99. data/spec/app/views/erb/number_field_with_warning.erb +1 -0
  100. data/spec/app/views/erb/password_field.erb +1 -0
  101. data/spec/app/views/erb/password_field_tag.erb +1 -0
  102. data/spec/app/views/erb/password_field_tag_tag.erb +1 -0
  103. data/spec/app/views/erb/password_field_tag_with_append.erb +1 -0
  104. data/spec/app/views/erb/password_field_tag_with_error.erb +1 -0
  105. data/spec/app/views/erb/password_field_tag_with_help_block.erb +1 -0
  106. data/spec/app/views/erb/password_field_tag_with_help_inline.erb +1 -0
  107. data/spec/app/views/erb/password_field_tag_with_info.erb +1 -0
  108. data/spec/app/views/erb/password_field_tag_with_prepend.erb +1 -0
  109. data/spec/app/views/erb/password_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  110. data/spec/app/views/erb/password_field_tag_with_success.erb +1 -0
  111. data/spec/app/views/erb/password_field_tag_with_warning.erb +1 -0
  112. data/spec/app/views/erb/password_field_with_append.erb +1 -0
  113. data/spec/app/views/erb/password_field_with_error.erb +1 -0
  114. data/spec/app/views/erb/password_field_with_help_block.erb +1 -0
  115. data/spec/app/views/erb/password_field_with_help_inline.erb +1 -0
  116. data/spec/app/views/erb/password_field_with_info.erb +1 -0
  117. data/spec/app/views/erb/password_field_with_prepend.erb +1 -0
  118. data/spec/app/views/erb/password_field_with_prepend_append_and_help_inline.erb +1 -0
  119. data/spec/app/views/erb/password_field_with_success.erb +1 -0
  120. data/spec/app/views/erb/password_field_with_warning.erb +1 -0
  121. data/spec/app/views/erb/phone_field.erb +1 -0
  122. data/spec/app/views/erb/phone_field_tag.erb +1 -0
  123. data/spec/app/views/erb/phone_field_tag_tag.erb +1 -0
  124. data/spec/app/views/erb/phone_field_tag_with_append.erb +1 -0
  125. data/spec/app/views/erb/phone_field_tag_with_error.erb +1 -0
  126. data/spec/app/views/erb/phone_field_tag_with_help_block.erb +1 -0
  127. data/spec/app/views/erb/phone_field_tag_with_help_inline.erb +1 -0
  128. data/spec/app/views/erb/phone_field_tag_with_info.erb +1 -0
  129. data/spec/app/views/erb/phone_field_tag_with_prepend.erb +1 -0
  130. data/spec/app/views/erb/phone_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  131. data/spec/app/views/erb/phone_field_tag_with_success.erb +1 -0
  132. data/spec/app/views/erb/phone_field_tag_with_warning.erb +1 -0
  133. data/spec/app/views/erb/phone_field_with_append.erb +1 -0
  134. data/spec/app/views/erb/phone_field_with_error.erb +1 -0
  135. data/spec/app/views/erb/phone_field_with_help_block.erb +1 -0
  136. data/spec/app/views/erb/phone_field_with_help_inline.erb +1 -0
  137. data/spec/app/views/erb/phone_field_with_info.erb +1 -0
  138. data/spec/app/views/erb/phone_field_with_prepend.erb +1 -0
  139. data/spec/app/views/erb/phone_field_with_prepend_append_and_help_inline.erb +1 -0
  140. data/spec/app/views/erb/phone_field_with_success.erb +1 -0
  141. data/spec/app/views/erb/phone_field_with_warning.erb +1 -0
  142. data/spec/app/views/erb/radio_buttons.erb +1 -0
  143. data/spec/app/views/erb/radio_buttons_with_error.erb +1 -0
  144. data/spec/app/views/erb/search_field.erb +1 -0
  145. data/spec/app/views/erb/search_field_tag.erb +1 -0
  146. data/spec/app/views/erb/search_field_tag_tag.erb +1 -0
  147. data/spec/app/views/erb/search_field_tag_with_append.erb +1 -0
  148. data/spec/app/views/erb/search_field_tag_with_error.erb +1 -0
  149. data/spec/app/views/erb/search_field_tag_with_help_block.erb +1 -0
  150. data/spec/app/views/erb/search_field_tag_with_help_inline.erb +1 -0
  151. data/spec/app/views/erb/search_field_tag_with_info.erb +1 -0
  152. data/spec/app/views/erb/search_field_tag_with_prepend.erb +1 -0
  153. data/spec/app/views/erb/search_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  154. data/spec/app/views/erb/search_field_tag_with_success.erb +1 -0
  155. data/spec/app/views/erb/search_field_tag_with_warning.erb +1 -0
  156. data/spec/app/views/erb/search_field_with_append.erb +1 -0
  157. data/spec/app/views/erb/search_field_with_error.erb +1 -0
  158. data/spec/app/views/erb/search_field_with_help_block.erb +1 -0
  159. data/spec/app/views/erb/search_field_with_help_inline.erb +1 -0
  160. data/spec/app/views/erb/search_field_with_info.erb +1 -0
  161. data/spec/app/views/erb/search_field_with_prepend.erb +1 -0
  162. data/spec/app/views/erb/search_field_with_prepend_append_and_help_inline.erb +1 -0
  163. data/spec/app/views/erb/search_field_with_success.erb +1 -0
  164. data/spec/app/views/erb/search_field_with_warning.erb +1 -0
  165. data/spec/app/views/erb/select.erb +1 -0
  166. data/spec/app/views/erb/select_tag.erb +1 -0
  167. data/spec/app/views/erb/select_tag_tag.erb +1 -0
  168. data/spec/app/views/erb/select_tag_with_append.erb +1 -0
  169. data/spec/app/views/erb/select_tag_with_error.erb +1 -0
  170. data/spec/app/views/erb/select_tag_with_help_block.erb +1 -0
  171. data/spec/app/views/erb/select_tag_with_help_inline.erb +1 -0
  172. data/spec/app/views/erb/select_tag_with_info.erb +1 -0
  173. data/spec/app/views/erb/select_tag_with_prepend.erb +1 -0
  174. data/spec/app/views/erb/select_tag_with_prepend_append_and_help_inline.erb +1 -0
  175. data/spec/app/views/erb/select_tag_with_success.erb +1 -0
  176. data/spec/app/views/erb/select_tag_with_warning.erb +1 -0
  177. data/spec/app/views/erb/select_with_append.erb +1 -0
  178. data/spec/app/views/erb/select_with_error.erb +1 -0
  179. data/spec/app/views/erb/select_with_help_block.erb +1 -0
  180. data/spec/app/views/erb/select_with_help_inline.erb +1 -0
  181. data/spec/app/views/erb/select_with_info.erb +1 -0
  182. data/spec/app/views/erb/select_with_prepend.erb +1 -0
  183. data/spec/app/views/erb/select_with_prepend_append_and_help_inline.erb +1 -0
  184. data/spec/app/views/erb/select_with_success.erb +1 -0
  185. data/spec/app/views/erb/select_with_warning.erb +1 -0
  186. data/spec/app/views/erb/telephone_field_tag.erb +1 -0
  187. data/spec/app/views/erb/telephone_field_tag_tag.erb +1 -0
  188. data/spec/app/views/erb/telephone_field_tag_with_append.erb +1 -0
  189. data/spec/app/views/erb/telephone_field_tag_with_error.erb +1 -0
  190. data/spec/app/views/erb/telephone_field_tag_with_help_block.erb +1 -0
  191. data/spec/app/views/erb/telephone_field_tag_with_help_inline.erb +1 -0
  192. data/spec/app/views/erb/telephone_field_tag_with_info.erb +1 -0
  193. data/spec/app/views/erb/telephone_field_tag_with_prepend.erb +1 -0
  194. data/spec/app/views/erb/telephone_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  195. data/spec/app/views/erb/telephone_field_tag_with_success.erb +1 -0
  196. data/spec/app/views/erb/telephone_field_tag_with_warning.erb +1 -0
  197. data/spec/app/views/erb/text_area.erb +1 -0
  198. data/spec/app/views/erb/text_area_tag.erb +1 -0
  199. data/spec/app/views/erb/text_area_tag_tag.erb +1 -0
  200. data/spec/app/views/erb/text_area_tag_with_append.erb +1 -0
  201. data/spec/app/views/erb/text_area_tag_with_error.erb +1 -0
  202. data/spec/app/views/erb/text_area_tag_with_help_block.erb +1 -0
  203. data/spec/app/views/erb/text_area_tag_with_help_inline.erb +1 -0
  204. data/spec/app/views/erb/text_area_tag_with_info.erb +1 -0
  205. data/spec/app/views/erb/text_area_tag_with_prepend.erb +1 -0
  206. data/spec/app/views/erb/text_area_tag_with_prepend_append_and_help_inline.erb +1 -0
  207. data/spec/app/views/erb/text_area_tag_with_success.erb +1 -0
  208. data/spec/app/views/erb/text_area_tag_with_warning.erb +1 -0
  209. data/spec/app/views/erb/text_area_with_append.erb +1 -0
  210. data/spec/app/views/erb/text_area_with_error.erb +1 -0
  211. data/spec/app/views/erb/text_area_with_help_block.erb +1 -0
  212. data/spec/app/views/erb/text_area_with_help_inline.erb +1 -0
  213. data/spec/app/views/erb/text_area_with_info.erb +1 -0
  214. data/spec/app/views/erb/text_area_with_prepend.erb +1 -0
  215. data/spec/app/views/erb/text_area_with_prepend_append_and_help_inline.erb +1 -0
  216. data/spec/app/views/erb/text_area_with_success.erb +1 -0
  217. data/spec/app/views/erb/text_area_with_warning.erb +1 -0
  218. data/spec/app/views/erb/text_field.erb +1 -0
  219. data/spec/app/views/erb/text_field_tag.erb +1 -0
  220. data/spec/app/views/erb/text_field_tag_tag.erb +1 -0
  221. data/spec/app/views/erb/text_field_tag_with_append.erb +1 -0
  222. data/spec/app/views/erb/text_field_tag_with_error.erb +1 -0
  223. data/spec/app/views/erb/text_field_tag_with_help_block.erb +1 -0
  224. data/spec/app/views/erb/text_field_tag_with_help_inline.erb +1 -0
  225. data/spec/app/views/erb/text_field_tag_with_info.erb +1 -0
  226. data/spec/app/views/erb/text_field_tag_with_prepend.erb +1 -0
  227. data/spec/app/views/erb/text_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  228. data/spec/app/views/erb/text_field_tag_with_success.erb +1 -0
  229. data/spec/app/views/erb/text_field_tag_with_warning.erb +1 -0
  230. data/spec/app/views/erb/text_field_with_append.erb +1 -0
  231. data/spec/app/views/erb/text_field_with_error.erb +1 -0
  232. data/spec/app/views/erb/text_field_with_help_block.erb +1 -0
  233. data/spec/app/views/erb/text_field_with_help_inline.erb +1 -0
  234. data/spec/app/views/erb/text_field_with_info.erb +1 -0
  235. data/spec/app/views/erb/text_field_with_prepend.erb +1 -0
  236. data/spec/app/views/erb/text_field_with_prepend_append_and_help_inline.erb +1 -0
  237. data/spec/app/views/erb/text_field_with_success.erb +1 -0
  238. data/spec/app/views/erb/text_field_with_warning.erb +1 -0
  239. data/spec/app/views/erb/uneditable_input.erb +1 -0
  240. data/spec/app/views/erb/uneditable_input_tag.erb +1 -0
  241. data/spec/app/views/erb/uneditable_input_tag_with_append.erb +1 -0
  242. data/spec/app/views/erb/uneditable_input_tag_with_error.erb +1 -0
  243. data/spec/app/views/erb/uneditable_input_tag_with_help_block.erb +1 -0
  244. data/spec/app/views/erb/uneditable_input_tag_with_help_inline.erb +1 -0
  245. data/spec/app/views/erb/uneditable_input_tag_with_info.erb +1 -0
  246. data/spec/app/views/erb/uneditable_input_tag_with_prepend.erb +1 -0
  247. data/spec/app/views/erb/uneditable_input_tag_with_prepend_append_and_help_inline.erb +1 -0
  248. data/spec/app/views/erb/uneditable_input_tag_with_success.erb +1 -0
  249. data/spec/app/views/erb/uneditable_input_tag_with_warning.erb +1 -0
  250. data/spec/app/views/erb/uneditable_input_with_append.erb +1 -0
  251. data/spec/app/views/erb/uneditable_input_with_error.erb +1 -0
  252. data/spec/app/views/erb/uneditable_input_with_help_block.erb +1 -0
  253. data/spec/app/views/erb/uneditable_input_with_help_inline.erb +1 -0
  254. data/spec/app/views/erb/uneditable_input_with_info.erb +1 -0
  255. data/spec/app/views/erb/uneditable_input_with_prepend.erb +1 -0
  256. data/spec/app/views/erb/uneditable_input_with_prepend_append_and_help_inline.erb +1 -0
  257. data/spec/app/views/erb/uneditable_input_with_success.erb +1 -0
  258. data/spec/app/views/erb/uneditable_input_with_warning.erb +1 -0
  259. data/spec/app/views/erb/url_field.erb +1 -0
  260. data/spec/app/views/erb/url_field_tag.erb +1 -0
  261. data/spec/app/views/erb/url_field_tag_tag.erb +1 -0
  262. data/spec/app/views/erb/url_field_tag_with_append.erb +1 -0
  263. data/spec/app/views/erb/url_field_tag_with_error.erb +1 -0
  264. data/spec/app/views/erb/url_field_tag_with_help_block.erb +1 -0
  265. data/spec/app/views/erb/url_field_tag_with_help_inline.erb +1 -0
  266. data/spec/app/views/erb/url_field_tag_with_info.erb +1 -0
  267. data/spec/app/views/erb/url_field_tag_with_prepend.erb +1 -0
  268. data/spec/app/views/erb/url_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  269. data/spec/app/views/erb/url_field_tag_with_success.erb +1 -0
  270. data/spec/app/views/erb/url_field_tag_with_warning.erb +1 -0
  271. data/spec/app/views/erb/url_field_with_append.erb +1 -0
  272. data/spec/app/views/erb/url_field_with_error.erb +1 -0
  273. data/spec/app/views/erb/url_field_with_help_block.erb +1 -0
  274. data/spec/app/views/erb/url_field_with_help_inline.erb +1 -0
  275. data/spec/app/views/erb/url_field_with_info.erb +1 -0
  276. data/spec/app/views/erb/url_field_with_prepend.erb +1 -0
  277. data/spec/app/views/erb/url_field_with_prepend_append_and_help_inline.erb +1 -0
  278. data/spec/app/views/erb/url_field_with_success.erb +1 -0
  279. data/spec/app/views/erb/url_field_with_warning.erb +1 -0
  280. data/spec/app/views/haml/bootstrap_actions.haml +1 -0
  281. data/spec/app/views/haml/bootstrap_actions_with_block.haml +2 -0
  282. data/spec/app/views/haml/check_box.haml +1 -0
  283. data/spec/app/views/haml/check_box_tag.haml +1 -0
  284. data/spec/app/views/haml/check_box_tag_with_append.haml +1 -0
  285. data/spec/app/views/haml/check_box_tag_with_error.haml +1 -0
  286. data/spec/app/views/haml/check_box_tag_with_help_block.haml +1 -0
  287. data/spec/app/views/haml/check_box_tag_with_help_inline.haml +1 -0
  288. data/spec/app/views/haml/check_box_tag_with_info.haml +1 -0
  289. data/spec/app/views/haml/check_box_tag_with_prepend.haml +1 -0
  290. data/spec/app/views/haml/check_box_tag_with_prepend_append_and_help_inline.haml +1 -0
  291. data/spec/app/views/haml/check_box_tag_with_success.haml +1 -0
  292. data/spec/app/views/haml/check_box_tag_with_warning.haml +1 -0
  293. data/spec/app/views/haml/check_box_with_append.haml +1 -0
  294. data/spec/app/views/haml/check_box_with_error.haml +1 -0
  295. data/spec/app/views/haml/check_box_with_help_block.haml +1 -0
  296. data/spec/app/views/haml/check_box_with_help_inline.haml +1 -0
  297. data/spec/app/views/haml/check_box_with_info.haml +1 -0
  298. data/spec/app/views/haml/check_box_with_success.haml +1 -0
  299. data/spec/app/views/haml/check_box_with_warning.haml +1 -0
  300. data/spec/app/views/haml/collection_check_boxes.haml +1 -0
  301. data/spec/app/views/haml/collection_check_boxes_with_checked.haml +2 -0
  302. data/spec/app/views/haml/collection_check_boxes_with_help_block.haml +1 -0
  303. data/spec/app/views/haml/collection_radio_buttons.haml +1 -0
  304. data/spec/app/views/haml/collection_radio_buttons_with_checked.haml +2 -0
  305. data/spec/app/views/haml/email_field.haml +1 -0
  306. data/spec/app/views/haml/email_field_tag.haml +1 -0
  307. data/spec/app/views/haml/email_field_tag_tag.haml +1 -0
  308. data/spec/app/views/haml/email_field_tag_with_append.haml +1 -0
  309. data/spec/app/views/haml/email_field_tag_with_error.haml +1 -0
  310. data/spec/app/views/haml/email_field_tag_with_help_block.haml +1 -0
  311. data/spec/app/views/haml/email_field_tag_with_help_inline.haml +1 -0
  312. data/spec/app/views/haml/email_field_tag_with_info.haml +1 -0
  313. data/spec/app/views/haml/email_field_tag_with_prepend.haml +1 -0
  314. data/spec/app/views/haml/email_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  315. data/spec/app/views/haml/email_field_tag_with_success.haml +1 -0
  316. data/spec/app/views/haml/email_field_tag_with_warning.haml +1 -0
  317. data/spec/app/views/haml/email_field_with_append.haml +1 -0
  318. data/spec/app/views/haml/email_field_with_error.haml +1 -0
  319. data/spec/app/views/haml/email_field_with_help_block.haml +1 -0
  320. data/spec/app/views/haml/email_field_with_help_inline.haml +1 -0
  321. data/spec/app/views/haml/email_field_with_info.haml +1 -0
  322. data/spec/app/views/haml/email_field_with_prepend.haml +1 -0
  323. data/spec/app/views/haml/email_field_with_prepend_append_and_help_inline.haml +1 -0
  324. data/spec/app/views/haml/email_field_with_success.haml +1 -0
  325. data/spec/app/views/haml/email_field_with_warning.haml +1 -0
  326. data/spec/app/views/haml/file_field.haml +1 -0
  327. data/spec/app/views/haml/file_field_tag.haml +1 -0
  328. data/spec/app/views/haml/file_field_tag_tag.haml +1 -0
  329. data/spec/app/views/haml/file_field_tag_with_append.haml +1 -0
  330. data/spec/app/views/haml/file_field_tag_with_error.haml +1 -0
  331. data/spec/app/views/haml/file_field_tag_with_help_block.haml +1 -0
  332. data/spec/app/views/haml/file_field_tag_with_help_inline.haml +1 -0
  333. data/spec/app/views/haml/file_field_tag_with_info.haml +1 -0
  334. data/spec/app/views/haml/file_field_tag_with_prepend.haml +1 -0
  335. data/spec/app/views/haml/file_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  336. data/spec/app/views/haml/file_field_tag_with_success.haml +1 -0
  337. data/spec/app/views/haml/file_field_tag_with_warning.haml +1 -0
  338. data/spec/app/views/haml/file_field_with_append.haml +1 -0
  339. data/spec/app/views/haml/file_field_with_error.haml +1 -0
  340. data/spec/app/views/haml/file_field_with_help_block.haml +1 -0
  341. data/spec/app/views/haml/file_field_with_help_inline.haml +1 -0
  342. data/spec/app/views/haml/file_field_with_info.haml +1 -0
  343. data/spec/app/views/haml/file_field_with_prepend.haml +1 -0
  344. data/spec/app/views/haml/file_field_with_prepend_append_and_help_inline.haml +1 -0
  345. data/spec/app/views/haml/file_field_with_success.haml +1 -0
  346. data/spec/app/views/haml/file_field_with_warning.haml +1 -0
  347. data/spec/app/views/haml/number_field.haml +1 -0
  348. data/spec/app/views/haml/number_field_tag.haml +1 -0
  349. data/spec/app/views/haml/number_field_tag_tag.haml +1 -0
  350. data/spec/app/views/haml/number_field_tag_with_append.haml +1 -0
  351. data/spec/app/views/haml/number_field_tag_with_error.haml +1 -0
  352. data/spec/app/views/haml/number_field_tag_with_help_block.haml +1 -0
  353. data/spec/app/views/haml/number_field_tag_with_help_inline.haml +1 -0
  354. data/spec/app/views/haml/number_field_tag_with_info.haml +1 -0
  355. data/spec/app/views/haml/number_field_tag_with_prepend.haml +1 -0
  356. data/spec/app/views/haml/number_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  357. data/spec/app/views/haml/number_field_tag_with_success.haml +1 -0
  358. data/spec/app/views/haml/number_field_tag_with_warning.haml +1 -0
  359. data/spec/app/views/haml/number_field_with_append.haml +1 -0
  360. data/spec/app/views/haml/number_field_with_error.haml +1 -0
  361. data/spec/app/views/haml/number_field_with_help_block.haml +1 -0
  362. data/spec/app/views/haml/number_field_with_help_inline.haml +1 -0
  363. data/spec/app/views/haml/number_field_with_info.haml +1 -0
  364. data/spec/app/views/haml/number_field_with_prepend.haml +1 -0
  365. data/spec/app/views/haml/number_field_with_prepend_append_and_help_inline.haml +1 -0
  366. data/spec/app/views/haml/number_field_with_success.haml +1 -0
  367. data/spec/app/views/haml/number_field_with_warning.haml +1 -0
  368. data/spec/app/views/haml/password_field.haml +1 -0
  369. data/spec/app/views/haml/password_field_tag.haml +1 -0
  370. data/spec/app/views/haml/password_field_tag_tag.haml +1 -0
  371. data/spec/app/views/haml/password_field_tag_with_append.haml +1 -0
  372. data/spec/app/views/haml/password_field_tag_with_error.haml +1 -0
  373. data/spec/app/views/haml/password_field_tag_with_help_block.haml +1 -0
  374. data/spec/app/views/haml/password_field_tag_with_help_inline.haml +1 -0
  375. data/spec/app/views/haml/password_field_tag_with_info.haml +1 -0
  376. data/spec/app/views/haml/password_field_tag_with_prepend.haml +1 -0
  377. data/spec/app/views/haml/password_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  378. data/spec/app/views/haml/password_field_tag_with_success.haml +1 -0
  379. data/spec/app/views/haml/password_field_tag_with_warning.haml +1 -0
  380. data/spec/app/views/haml/password_field_with_append.haml +1 -0
  381. data/spec/app/views/haml/password_field_with_error.haml +1 -0
  382. data/spec/app/views/haml/password_field_with_help_block.haml +1 -0
  383. data/spec/app/views/haml/password_field_with_help_inline.haml +1 -0
  384. data/spec/app/views/haml/password_field_with_info.haml +1 -0
  385. data/spec/app/views/haml/password_field_with_prepend.haml +1 -0
  386. data/spec/app/views/haml/password_field_with_prepend_append_and_help_inline.haml +1 -0
  387. data/spec/app/views/haml/password_field_with_success.haml +1 -0
  388. data/spec/app/views/haml/password_field_with_warning.haml +1 -0
  389. data/spec/app/views/haml/phone_field.haml +1 -0
  390. data/spec/app/views/haml/phone_field_tag.haml +1 -0
  391. data/spec/app/views/haml/phone_field_tag_tag.haml +1 -0
  392. data/spec/app/views/haml/phone_field_tag_with_append.haml +1 -0
  393. data/spec/app/views/haml/phone_field_tag_with_error.haml +1 -0
  394. data/spec/app/views/haml/phone_field_tag_with_help_block.haml +1 -0
  395. data/spec/app/views/haml/phone_field_tag_with_help_inline.haml +1 -0
  396. data/spec/app/views/haml/phone_field_tag_with_info.haml +1 -0
  397. data/spec/app/views/haml/phone_field_tag_with_prepend.haml +1 -0
  398. data/spec/app/views/haml/phone_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  399. data/spec/app/views/haml/phone_field_tag_with_success.haml +1 -0
  400. data/spec/app/views/haml/phone_field_tag_with_warning.haml +1 -0
  401. data/spec/app/views/haml/phone_field_with_append.haml +1 -0
  402. data/spec/app/views/haml/phone_field_with_error.haml +1 -0
  403. data/spec/app/views/haml/phone_field_with_help_block.haml +1 -0
  404. data/spec/app/views/haml/phone_field_with_help_inline.haml +1 -0
  405. data/spec/app/views/haml/phone_field_with_info.haml +1 -0
  406. data/spec/app/views/haml/phone_field_with_prepend.haml +1 -0
  407. data/spec/app/views/haml/phone_field_with_prepend_append_and_help_inline.haml +1 -0
  408. data/spec/app/views/haml/phone_field_with_success.haml +1 -0
  409. data/spec/app/views/haml/phone_field_with_warning.haml +1 -0
  410. data/spec/app/views/haml/radio_buttons.haml +1 -0
  411. data/spec/app/views/haml/radio_buttons_with_error.haml +1 -0
  412. data/spec/app/views/haml/search_field.haml +1 -0
  413. data/spec/app/views/haml/search_field_tag.haml +1 -0
  414. data/spec/app/views/haml/search_field_tag_tag.haml +1 -0
  415. data/spec/app/views/haml/search_field_tag_with_append.haml +1 -0
  416. data/spec/app/views/haml/search_field_tag_with_error.haml +1 -0
  417. data/spec/app/views/haml/search_field_tag_with_help_block.haml +1 -0
  418. data/spec/app/views/haml/search_field_tag_with_help_inline.haml +1 -0
  419. data/spec/app/views/haml/search_field_tag_with_info.haml +1 -0
  420. data/spec/app/views/haml/search_field_tag_with_prepend.haml +1 -0
  421. data/spec/app/views/haml/search_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  422. data/spec/app/views/haml/search_field_tag_with_success.haml +1 -0
  423. data/spec/app/views/haml/search_field_tag_with_warning.haml +1 -0
  424. data/spec/app/views/haml/search_field_with_append.haml +1 -0
  425. data/spec/app/views/haml/search_field_with_error.haml +1 -0
  426. data/spec/app/views/haml/search_field_with_help_block.haml +1 -0
  427. data/spec/app/views/haml/search_field_with_help_inline.haml +1 -0
  428. data/spec/app/views/haml/search_field_with_info.haml +1 -0
  429. data/spec/app/views/haml/search_field_with_prepend.haml +1 -0
  430. data/spec/app/views/haml/search_field_with_prepend_append_and_help_inline.haml +1 -0
  431. data/spec/app/views/haml/search_field_with_success.haml +1 -0
  432. data/spec/app/views/haml/search_field_with_warning.haml +1 -0
  433. data/spec/app/views/haml/select.haml +1 -0
  434. data/spec/app/views/haml/select_tag.haml +1 -0
  435. data/spec/app/views/haml/select_tag_with_append.haml +1 -0
  436. data/spec/app/views/haml/select_tag_with_error.haml +1 -0
  437. data/spec/app/views/haml/select_tag_with_help_block.haml +1 -0
  438. data/spec/app/views/haml/select_tag_with_help_inline.haml +1 -0
  439. data/spec/app/views/haml/select_tag_with_info.haml +1 -0
  440. data/spec/app/views/haml/select_tag_with_prepend.haml +1 -0
  441. data/spec/app/views/haml/select_tag_with_prepend_append_and_help_inline.haml +1 -0
  442. data/spec/app/views/haml/select_tag_with_success.haml +1 -0
  443. data/spec/app/views/haml/select_tag_with_warning.haml +1 -0
  444. data/spec/app/views/haml/select_with_append.haml +1 -0
  445. data/spec/app/views/haml/select_with_error.haml +1 -0
  446. data/spec/app/views/haml/select_with_help_block.haml +1 -0
  447. data/spec/app/views/haml/select_with_help_inline.haml +1 -0
  448. data/spec/app/views/haml/select_with_info.haml +1 -0
  449. data/spec/app/views/haml/select_with_prepend.haml +1 -0
  450. data/spec/app/views/haml/select_with_prepend_append_and_help_inline.haml +1 -0
  451. data/spec/app/views/haml/select_with_success.haml +1 -0
  452. data/spec/app/views/haml/select_with_warning.haml +1 -0
  453. data/spec/app/views/haml/telephone_field.haml +1 -0
  454. data/spec/app/views/haml/telephone_field_tag.haml +1 -0
  455. data/spec/app/views/haml/telephone_field_tag_tag.haml +1 -0
  456. data/spec/app/views/haml/telephone_field_tag_with_append.haml +1 -0
  457. data/spec/app/views/haml/telephone_field_tag_with_error.haml +1 -0
  458. data/spec/app/views/haml/telephone_field_tag_with_help_block.haml +1 -0
  459. data/spec/app/views/haml/telephone_field_tag_with_help_inline.haml +1 -0
  460. data/spec/app/views/haml/telephone_field_tag_with_info.haml +1 -0
  461. data/spec/app/views/haml/telephone_field_tag_with_prepend.haml +1 -0
  462. data/spec/app/views/haml/telephone_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  463. data/spec/app/views/haml/telephone_field_tag_with_success.haml +1 -0
  464. data/spec/app/views/haml/telephone_field_tag_with_warning.haml +1 -0
  465. data/spec/app/views/haml/telephone_field_with_append.haml +1 -0
  466. data/spec/app/views/haml/telephone_field_with_error.haml +1 -0
  467. data/spec/app/views/haml/telephone_field_with_help_block.haml +1 -0
  468. data/spec/app/views/haml/telephone_field_with_help_inline.haml +1 -0
  469. data/spec/app/views/haml/telephone_field_with_info.haml +1 -0
  470. data/spec/app/views/haml/telephone_field_with_prepend.haml +1 -0
  471. data/spec/app/views/haml/telephone_field_with_prepend_append_and_help_inline.haml +1 -0
  472. data/spec/app/views/haml/telephone_field_with_success.haml +1 -0
  473. data/spec/app/views/haml/telephone_field_with_warning.haml +1 -0
  474. data/spec/app/views/haml/text_area.haml +1 -0
  475. data/spec/app/views/haml/text_area_field.haml +1 -0
  476. data/spec/app/views/haml/text_area_field_with_append.haml +1 -0
  477. data/spec/app/views/haml/text_area_field_with_error.haml +1 -0
  478. data/spec/app/views/haml/text_area_field_with_help_block.haml +1 -0
  479. data/spec/app/views/haml/text_area_field_with_help_inline.haml +1 -0
  480. data/spec/app/views/haml/text_area_field_with_info.haml +1 -0
  481. data/spec/app/views/haml/text_area_field_with_prepend.haml +1 -0
  482. data/spec/app/views/haml/text_area_field_with_prepend_append_and_help_inline.haml +1 -0
  483. data/spec/app/views/haml/text_area_field_with_success.haml +1 -0
  484. data/spec/app/views/haml/text_area_field_with_warning.haml +1 -0
  485. data/spec/app/views/haml/text_area_tag.haml +1 -0
  486. data/spec/app/views/haml/text_area_tag_tag.haml +1 -0
  487. data/spec/app/views/haml/text_area_tag_with_append.haml +1 -0
  488. data/spec/app/views/haml/text_area_tag_with_error.haml +1 -0
  489. data/spec/app/views/haml/text_area_tag_with_help_block.haml +1 -0
  490. data/spec/app/views/haml/text_area_tag_with_help_inline.haml +1 -0
  491. data/spec/app/views/haml/text_area_tag_with_info.haml +1 -0
  492. data/spec/app/views/haml/text_area_tag_with_prepend.haml +1 -0
  493. data/spec/app/views/haml/text_area_tag_with_prepend_append_and_help_inline.haml +1 -0
  494. data/spec/app/views/haml/text_area_tag_with_success.haml +1 -0
  495. data/spec/app/views/haml/text_area_tag_with_warning.haml +1 -0
  496. data/spec/app/views/haml/text_area_with_append.haml +1 -0
  497. data/spec/app/views/haml/text_area_with_error.haml +1 -0
  498. data/spec/app/views/haml/text_area_with_help_block.haml +1 -0
  499. data/spec/app/views/haml/text_area_with_help_inline.haml +1 -0
  500. data/spec/app/views/haml/text_area_with_info.haml +1 -0
  501. data/spec/app/views/haml/text_area_with_prepend.haml +1 -0
  502. data/spec/app/views/haml/text_area_with_prepend_append_and_help_inline.haml +1 -0
  503. data/spec/app/views/haml/text_area_with_success.haml +1 -0
  504. data/spec/app/views/haml/text_area_with_warning.haml +1 -0
  505. data/spec/app/views/haml/text_field.haml +1 -0
  506. data/spec/app/views/haml/text_field_tag.haml +1 -0
  507. data/spec/app/views/haml/text_field_tag_tag.haml +1 -0
  508. data/spec/app/views/haml/text_field_tag_with_append.haml +1 -0
  509. data/spec/app/views/haml/text_field_tag_with_error.haml +1 -0
  510. data/spec/app/views/haml/text_field_tag_with_help_block.haml +1 -0
  511. data/spec/app/views/haml/text_field_tag_with_help_inline.haml +1 -0
  512. data/spec/app/views/haml/text_field_tag_with_info.haml +1 -0
  513. data/spec/app/views/haml/text_field_tag_with_prepend.haml +1 -0
  514. data/spec/app/views/haml/text_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  515. data/spec/app/views/haml/text_field_tag_with_success.haml +1 -0
  516. data/spec/app/views/haml/text_field_tag_with_warning.haml +1 -0
  517. data/spec/app/views/haml/text_field_with_append.haml +1 -0
  518. data/spec/app/views/haml/text_field_with_error.haml +1 -0
  519. data/spec/app/views/haml/text_field_with_help_block.haml +1 -0
  520. data/spec/app/views/haml/text_field_with_help_inline.haml +1 -0
  521. data/spec/app/views/haml/text_field_with_info.haml +1 -0
  522. data/spec/app/views/haml/text_field_with_prepend.haml +1 -0
  523. data/spec/app/views/haml/text_field_with_prepend_append_and_help_inline.haml +1 -0
  524. data/spec/app/views/haml/text_field_with_success.haml +1 -0
  525. data/spec/app/views/haml/text_field_with_warning.haml +1 -0
  526. data/spec/app/views/haml/uneditable_input.haml +1 -0
  527. data/spec/app/views/haml/uneditable_input_tag.haml +1 -0
  528. data/spec/app/views/haml/uneditable_input_tag_with_append.haml +1 -0
  529. data/spec/app/views/haml/uneditable_input_tag_with_error.haml +1 -0
  530. data/spec/app/views/haml/uneditable_input_tag_with_help_block.haml +1 -0
  531. data/spec/app/views/haml/uneditable_input_tag_with_help_inline.haml +1 -0
  532. data/spec/app/views/haml/uneditable_input_tag_with_info.haml +1 -0
  533. data/spec/app/views/haml/uneditable_input_tag_with_prepend.haml +1 -0
  534. data/spec/app/views/haml/uneditable_input_tag_with_prepend_append_and_help_inline.haml +1 -0
  535. data/spec/app/views/haml/uneditable_input_tag_with_success.haml +1 -0
  536. data/spec/app/views/haml/uneditable_input_tag_with_warning.haml +1 -0
  537. data/spec/app/views/haml/uneditable_input_with_append.haml +1 -0
  538. data/spec/app/views/haml/uneditable_input_with_error.haml +1 -0
  539. data/spec/app/views/haml/uneditable_input_with_help_block.haml +1 -0
  540. data/spec/app/views/haml/uneditable_input_with_help_inline.haml +1 -0
  541. data/spec/app/views/haml/uneditable_input_with_info.haml +1 -0
  542. data/spec/app/views/haml/uneditable_input_with_prepend.haml +1 -0
  543. data/spec/app/views/haml/uneditable_input_with_prepend_append_and_help_inline.haml +1 -0
  544. data/spec/app/views/haml/uneditable_input_with_success.haml +1 -0
  545. data/spec/app/views/haml/uneditable_input_with_warning.haml +1 -0
  546. data/spec/app/views/haml/url_field.haml +1 -0
  547. data/spec/app/views/haml/url_field_tag.haml +1 -0
  548. data/spec/app/views/haml/url_field_tag_tag.haml +1 -0
  549. data/spec/app/views/haml/url_field_tag_with_append.haml +1 -0
  550. data/spec/app/views/haml/url_field_tag_with_error.haml +1 -0
  551. data/spec/app/views/haml/url_field_tag_with_help_block.haml +1 -0
  552. data/spec/app/views/haml/url_field_tag_with_help_inline.haml +1 -0
  553. data/spec/app/views/haml/url_field_tag_with_info.haml +1 -0
  554. data/spec/app/views/haml/url_field_tag_with_prepend.haml +1 -0
  555. data/spec/app/views/haml/url_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  556. data/spec/app/views/haml/url_field_tag_with_success.haml +1 -0
  557. data/spec/app/views/haml/url_field_tag_with_warning.haml +1 -0
  558. data/spec/app/views/haml/url_field_with_append.haml +1 -0
  559. data/spec/app/views/haml/url_field_with_error.haml +1 -0
  560. data/spec/app/views/haml/url_field_with_help_block.haml +1 -0
  561. data/spec/app/views/haml/url_field_with_help_inline.haml +1 -0
  562. data/spec/app/views/haml/url_field_with_info.haml +1 -0
  563. data/spec/app/views/haml/url_field_with_prepend.haml +1 -0
  564. data/spec/app/views/haml/url_field_with_prepend_append_and_help_inline.haml +1 -0
  565. data/spec/app/views/haml/url_field_with_success.haml +1 -0
  566. data/spec/app/views/haml/url_field_with_warning.haml +1 -0
  567. data/spec/app/views/slim/bootstrap_actions.slim +1 -0
  568. data/spec/app/views/slim/bootstrap_actions_with_block.slim +2 -0
  569. data/spec/app/views/slim/check_box.slim +1 -0
  570. data/spec/app/views/slim/check_box_tag.slim +1 -0
  571. data/spec/app/views/slim/check_box_tag_with_append.slim +1 -0
  572. data/spec/app/views/slim/check_box_tag_with_error.slim +1 -0
  573. data/spec/app/views/slim/check_box_tag_with_help_block.slim +1 -0
  574. data/spec/app/views/slim/check_box_tag_with_help_inline.slim +1 -0
  575. data/spec/app/views/slim/check_box_tag_with_info.slim +1 -0
  576. data/spec/app/views/slim/check_box_tag_with_prepend.slim +1 -0
  577. data/spec/app/views/slim/check_box_tag_with_prepend_append_and_help_inline.slim +1 -0
  578. data/spec/app/views/slim/check_box_tag_with_success.slim +1 -0
  579. data/spec/app/views/slim/check_box_tag_with_warning.slim +1 -0
  580. data/spec/app/views/slim/check_box_with_append.slim +1 -0
  581. data/spec/app/views/slim/check_box_with_error.slim +1 -0
  582. data/spec/app/views/slim/check_box_with_help_block.slim +1 -0
  583. data/spec/app/views/slim/check_box_with_help_inline.slim +1 -0
  584. data/spec/app/views/slim/check_box_with_info.slim +1 -0
  585. data/spec/app/views/slim/check_box_with_success.slim +1 -0
  586. data/spec/app/views/slim/check_box_with_warning.slim +1 -0
  587. data/spec/app/views/slim/collection_check_boxes.slim +1 -0
  588. data/spec/app/views/slim/collection_check_boxes_with_checked.slim +2 -0
  589. data/spec/app/views/slim/collection_check_boxes_with_help_block.slim +1 -0
  590. data/spec/app/views/slim/collection_radio_buttons.slim +1 -0
  591. data/spec/app/views/slim/collection_radio_buttons_with_checked.slim +2 -0
  592. data/spec/app/views/slim/email_field.slim +1 -0
  593. data/spec/app/views/slim/email_field_tag.slim +1 -0
  594. data/spec/app/views/slim/email_field_tag_tag.slim +1 -0
  595. data/spec/app/views/slim/email_field_tag_with_append.slim +1 -0
  596. data/spec/app/views/slim/email_field_tag_with_error.slim +1 -0
  597. data/spec/app/views/slim/email_field_tag_with_help_block.slim +1 -0
  598. data/spec/app/views/slim/email_field_tag_with_help_inline.slim +1 -0
  599. data/spec/app/views/slim/email_field_tag_with_info.slim +1 -0
  600. data/spec/app/views/slim/email_field_tag_with_prepend.slim +1 -0
  601. data/spec/app/views/slim/email_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  602. data/spec/app/views/slim/email_field_tag_with_success.slim +1 -0
  603. data/spec/app/views/slim/email_field_tag_with_warning.slim +1 -0
  604. data/spec/app/views/slim/email_field_with_append.slim +1 -0
  605. data/spec/app/views/slim/email_field_with_error.slim +1 -0
  606. data/spec/app/views/slim/email_field_with_help_block.slim +1 -0
  607. data/spec/app/views/slim/email_field_with_help_inline.slim +1 -0
  608. data/spec/app/views/slim/email_field_with_info.slim +1 -0
  609. data/spec/app/views/slim/email_field_with_prepend.slim +1 -0
  610. data/spec/app/views/slim/email_field_with_prepend_append_and_help_inline.slim +1 -0
  611. data/spec/app/views/slim/email_field_with_success.slim +1 -0
  612. data/spec/app/views/slim/email_field_with_warning.slim +1 -0
  613. data/spec/app/views/slim/file_field.slim +1 -0
  614. data/spec/app/views/slim/file_field_tag.slim +1 -0
  615. data/spec/app/views/slim/file_field_tag_tag.slim +1 -0
  616. data/spec/app/views/slim/file_field_tag_with_append.slim +1 -0
  617. data/spec/app/views/slim/file_field_tag_with_error.slim +1 -0
  618. data/spec/app/views/slim/file_field_tag_with_help_block.slim +1 -0
  619. data/spec/app/views/slim/file_field_tag_with_help_inline.slim +1 -0
  620. data/spec/app/views/slim/file_field_tag_with_info.slim +1 -0
  621. data/spec/app/views/slim/file_field_tag_with_prepend.slim +1 -0
  622. data/spec/app/views/slim/file_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  623. data/spec/app/views/slim/file_field_tag_with_success.slim +1 -0
  624. data/spec/app/views/slim/file_field_tag_with_warning.slim +1 -0
  625. data/spec/app/views/slim/file_field_with_append.slim +1 -0
  626. data/spec/app/views/slim/file_field_with_error.slim +1 -0
  627. data/spec/app/views/slim/file_field_with_help_block.slim +1 -0
  628. data/spec/app/views/slim/file_field_with_help_inline.slim +1 -0
  629. data/spec/app/views/slim/file_field_with_info.slim +1 -0
  630. data/spec/app/views/slim/file_field_with_prepend.slim +1 -0
  631. data/spec/app/views/slim/file_field_with_prepend_append_and_help_inline.slim +1 -0
  632. data/spec/app/views/slim/file_field_with_success.slim +1 -0
  633. data/spec/app/views/slim/file_field_with_warning.slim +1 -0
  634. data/spec/app/views/slim/label_tag.slim +2 -0
  635. data/spec/app/views/slim/number_field.slim +1 -0
  636. data/spec/app/views/slim/number_field_tag.slim +1 -0
  637. data/spec/app/views/slim/number_field_tag_tag.slim +1 -0
  638. data/spec/app/views/slim/number_field_tag_with_append.slim +1 -0
  639. data/spec/app/views/slim/number_field_tag_with_error.slim +1 -0
  640. data/spec/app/views/slim/number_field_tag_with_help_block.slim +1 -0
  641. data/spec/app/views/slim/number_field_tag_with_help_inline.slim +1 -0
  642. data/spec/app/views/slim/number_field_tag_with_info.slim +1 -0
  643. data/spec/app/views/slim/number_field_tag_with_prepend.slim +1 -0
  644. data/spec/app/views/slim/number_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  645. data/spec/app/views/slim/number_field_tag_with_success.slim +1 -0
  646. data/spec/app/views/slim/number_field_tag_with_warning.slim +1 -0
  647. data/spec/app/views/slim/number_field_with_append.slim +1 -0
  648. data/spec/app/views/slim/number_field_with_error.slim +1 -0
  649. data/spec/app/views/slim/number_field_with_help_block.slim +1 -0
  650. data/spec/app/views/slim/number_field_with_help_inline.slim +1 -0
  651. data/spec/app/views/slim/number_field_with_info.slim +1 -0
  652. data/spec/app/views/slim/number_field_with_prepend.slim +1 -0
  653. data/spec/app/views/slim/number_field_with_prepend_append_and_help_inline.slim +1 -0
  654. data/spec/app/views/slim/number_field_with_success.slim +1 -0
  655. data/spec/app/views/slim/number_field_with_warning.slim +1 -0
  656. data/spec/app/views/slim/password_field.slim +1 -0
  657. data/spec/app/views/slim/password_field_tag.slim +1 -0
  658. data/spec/app/views/slim/password_field_tag_tag.slim +1 -0
  659. data/spec/app/views/slim/password_field_tag_with_append.slim +1 -0
  660. data/spec/app/views/slim/password_field_tag_with_error.slim +1 -0
  661. data/spec/app/views/slim/password_field_tag_with_help_block.slim +1 -0
  662. data/spec/app/views/slim/password_field_tag_with_help_inline.slim +1 -0
  663. data/spec/app/views/slim/password_field_tag_with_info.slim +1 -0
  664. data/spec/app/views/slim/password_field_tag_with_prepend.slim +1 -0
  665. data/spec/app/views/slim/password_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  666. data/spec/app/views/slim/password_field_tag_with_success.slim +1 -0
  667. data/spec/app/views/slim/password_field_tag_with_warning.slim +1 -0
  668. data/spec/app/views/slim/password_field_with_append.slim +1 -0
  669. data/spec/app/views/slim/password_field_with_error.slim +1 -0
  670. data/spec/app/views/slim/password_field_with_help_block.slim +1 -0
  671. data/spec/app/views/slim/password_field_with_help_inline.slim +1 -0
  672. data/spec/app/views/slim/password_field_with_info.slim +1 -0
  673. data/spec/app/views/slim/password_field_with_prepend.slim +1 -0
  674. data/spec/app/views/slim/password_field_with_prepend_append_and_help_inline.slim +1 -0
  675. data/spec/app/views/slim/password_field_with_success.slim +1 -0
  676. data/spec/app/views/slim/password_field_with_warning.slim +1 -0
  677. data/spec/app/views/slim/phone_field.slim +1 -0
  678. data/spec/app/views/slim/phone_field_tag.slim +1 -0
  679. data/spec/app/views/slim/phone_field_tag_tag.slim +1 -0
  680. data/spec/app/views/slim/phone_field_tag_with_append.slim +1 -0
  681. data/spec/app/views/slim/phone_field_tag_with_error.slim +1 -0
  682. data/spec/app/views/slim/phone_field_tag_with_help_block.slim +1 -0
  683. data/spec/app/views/slim/phone_field_tag_with_help_inline.slim +1 -0
  684. data/spec/app/views/slim/phone_field_tag_with_info.slim +1 -0
  685. data/spec/app/views/slim/phone_field_tag_with_prepend.slim +1 -0
  686. data/spec/app/views/slim/phone_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  687. data/spec/app/views/slim/phone_field_tag_with_success.slim +1 -0
  688. data/spec/app/views/slim/phone_field_tag_with_warning.slim +1 -0
  689. data/spec/app/views/slim/phone_field_with_append.slim +1 -0
  690. data/spec/app/views/slim/phone_field_with_error.slim +1 -0
  691. data/spec/app/views/slim/phone_field_with_help_block.slim +1 -0
  692. data/spec/app/views/slim/phone_field_with_help_inline.slim +1 -0
  693. data/spec/app/views/slim/phone_field_with_info.slim +1 -0
  694. data/spec/app/views/slim/phone_field_with_prepend.slim +1 -0
  695. data/spec/app/views/slim/phone_field_with_prepend_append_and_help_inline.slim +1 -0
  696. data/spec/app/views/slim/phone_field_with_success.slim +1 -0
  697. data/spec/app/views/slim/phone_field_with_warning.slim +1 -0
  698. data/spec/app/views/slim/radio_buttons.slim +1 -0
  699. data/spec/app/views/slim/radio_buttons_with_error.slim +1 -0
  700. data/spec/app/views/slim/search_field.slim +1 -0
  701. data/spec/app/views/slim/search_field_tag.slim +1 -0
  702. data/spec/app/views/slim/search_field_tag_tag.slim +1 -0
  703. data/spec/app/views/slim/search_field_tag_with_append.slim +1 -0
  704. data/spec/app/views/slim/search_field_tag_with_error.slim +1 -0
  705. data/spec/app/views/slim/search_field_tag_with_help_block.slim +1 -0
  706. data/spec/app/views/slim/search_field_tag_with_help_inline.slim +1 -0
  707. data/spec/app/views/slim/search_field_tag_with_info.slim +1 -0
  708. data/spec/app/views/slim/search_field_tag_with_prepend.slim +1 -0
  709. data/spec/app/views/slim/search_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  710. data/spec/app/views/slim/search_field_tag_with_success.slim +1 -0
  711. data/spec/app/views/slim/search_field_tag_with_warning.slim +1 -0
  712. data/spec/app/views/slim/search_field_with_append.slim +1 -0
  713. data/spec/app/views/slim/search_field_with_error.slim +1 -0
  714. data/spec/app/views/slim/search_field_with_help_block.slim +1 -0
  715. data/spec/app/views/slim/search_field_with_help_inline.slim +1 -0
  716. data/spec/app/views/slim/search_field_with_info.slim +1 -0
  717. data/spec/app/views/slim/search_field_with_prepend.slim +1 -0
  718. data/spec/app/views/slim/search_field_with_prepend_append_and_help_inline.slim +1 -0
  719. data/spec/app/views/slim/search_field_with_success.slim +1 -0
  720. data/spec/app/views/slim/search_field_with_warning.slim +1 -0
  721. data/spec/app/views/slim/select.slim +1 -0
  722. data/spec/app/views/slim/select_tag.slim +1 -0
  723. data/spec/app/views/slim/select_tag_with_append.slim +1 -0
  724. data/spec/app/views/slim/select_tag_with_error.slim +1 -0
  725. data/spec/app/views/slim/select_tag_with_help_block.slim +1 -0
  726. data/spec/app/views/slim/select_tag_with_help_inline.slim +1 -0
  727. data/spec/app/views/slim/select_tag_with_info.slim +1 -0
  728. data/spec/app/views/slim/select_tag_with_prepend.slim +1 -0
  729. data/spec/app/views/slim/select_tag_with_prepend_append_and_help_inline.slim +1 -0
  730. data/spec/app/views/slim/select_tag_with_success.slim +1 -0
  731. data/spec/app/views/slim/select_tag_with_warning.slim +1 -0
  732. data/spec/app/views/slim/select_with_append.slim +1 -0
  733. data/spec/app/views/slim/select_with_error.slim +1 -0
  734. data/spec/app/views/slim/select_with_help_block.slim +1 -0
  735. data/spec/app/views/slim/select_with_help_inline.slim +1 -0
  736. data/spec/app/views/slim/select_with_info.slim +1 -0
  737. data/spec/app/views/slim/select_with_prepend.slim +1 -0
  738. data/spec/app/views/slim/select_with_prepend_append_and_help_inline.slim +1 -0
  739. data/spec/app/views/slim/select_with_success.slim +1 -0
  740. data/spec/app/views/slim/select_with_warning.slim +1 -0
  741. data/spec/app/views/slim/telephone_field.slim +1 -0
  742. data/spec/app/views/slim/telephone_field_tag.slim +1 -0
  743. data/spec/app/views/slim/telephone_field_tag_tag.slim +1 -0
  744. data/spec/app/views/slim/telephone_field_tag_with_append.slim +1 -0
  745. data/spec/app/views/slim/telephone_field_tag_with_error.slim +1 -0
  746. data/spec/app/views/slim/telephone_field_tag_with_help_block.slim +1 -0
  747. data/spec/app/views/slim/telephone_field_tag_with_help_inline.slim +1 -0
  748. data/spec/app/views/slim/telephone_field_tag_with_info.slim +1 -0
  749. data/spec/app/views/slim/telephone_field_tag_with_prepend.slim +1 -0
  750. data/spec/app/views/slim/telephone_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  751. data/spec/app/views/slim/telephone_field_tag_with_success.slim +1 -0
  752. data/spec/app/views/slim/telephone_field_tag_with_warning.slim +1 -0
  753. data/spec/app/views/slim/telephone_field_with_append.slim +1 -0
  754. data/spec/app/views/slim/telephone_field_with_error.slim +1 -0
  755. data/spec/app/views/slim/telephone_field_with_help_block.slim +1 -0
  756. data/spec/app/views/slim/telephone_field_with_help_inline.slim +1 -0
  757. data/spec/app/views/slim/telephone_field_with_info.slim +1 -0
  758. data/spec/app/views/slim/telephone_field_with_prepend.slim +1 -0
  759. data/spec/app/views/slim/telephone_field_with_prepend_append_and_help_inline.slim +1 -0
  760. data/spec/app/views/slim/telephone_field_with_success.slim +1 -0
  761. data/spec/app/views/slim/telephone_field_with_warning.slim +1 -0
  762. data/spec/app/views/slim/text_area.slim +1 -0
  763. data/spec/app/views/slim/text_area_field.slim +1 -0
  764. data/spec/app/views/slim/text_area_field_with_append.slim +1 -0
  765. data/spec/app/views/slim/text_area_field_with_error.slim +1 -0
  766. data/spec/app/views/slim/text_area_field_with_help_block.slim +1 -0
  767. data/spec/app/views/slim/text_area_field_with_help_inline.slim +1 -0
  768. data/spec/app/views/slim/text_area_field_with_info.slim +1 -0
  769. data/spec/app/views/slim/text_area_field_with_prepend.slim +1 -0
  770. data/spec/app/views/slim/text_area_field_with_prepend_append_and_help_inline.slim +1 -0
  771. data/spec/app/views/slim/text_area_field_with_success.slim +1 -0
  772. data/spec/app/views/slim/text_area_field_with_warning.slim +1 -0
  773. data/spec/app/views/slim/text_area_tag.slim +1 -0
  774. data/spec/app/views/slim/text_area_tag_tag.slim +1 -0
  775. data/spec/app/views/slim/text_area_tag_with_append.slim +1 -0
  776. data/spec/app/views/slim/text_area_tag_with_error.slim +1 -0
  777. data/spec/app/views/slim/text_area_tag_with_help_block.slim +1 -0
  778. data/spec/app/views/slim/text_area_tag_with_help_inline.slim +1 -0
  779. data/spec/app/views/slim/text_area_tag_with_info.slim +1 -0
  780. data/spec/app/views/slim/text_area_tag_with_prepend.slim +1 -0
  781. data/spec/app/views/slim/text_area_tag_with_prepend_append_and_help_inline.slim +1 -0
  782. data/spec/app/views/slim/text_area_tag_with_success.slim +1 -0
  783. data/spec/app/views/slim/text_area_tag_with_warning.slim +1 -0
  784. data/spec/app/views/slim/text_area_with_append.slim +1 -0
  785. data/spec/app/views/slim/text_area_with_error.slim +1 -0
  786. data/spec/app/views/slim/text_area_with_help_block.slim +1 -0
  787. data/spec/app/views/slim/text_area_with_help_inline.slim +1 -0
  788. data/spec/app/views/slim/text_area_with_info.slim +1 -0
  789. data/spec/app/views/slim/text_area_with_prepend.slim +1 -0
  790. data/spec/app/views/slim/text_area_with_prepend_append_and_help_inline.slim +1 -0
  791. data/spec/app/views/slim/text_area_with_success.slim +1 -0
  792. data/spec/app/views/slim/text_area_with_warning.slim +1 -0
  793. data/spec/app/views/slim/text_field.slim +1 -0
  794. data/spec/app/views/slim/text_field_tag.slim +1 -0
  795. data/spec/app/views/slim/text_field_tag_tag.slim +1 -0
  796. data/spec/app/views/slim/text_field_tag_with_append.slim +1 -0
  797. data/spec/app/views/slim/text_field_tag_with_error.slim +1 -0
  798. data/spec/app/views/slim/text_field_tag_with_help_block.slim +1 -0
  799. data/spec/app/views/slim/text_field_tag_with_help_inline.slim +1 -0
  800. data/spec/app/views/slim/text_field_tag_with_info.slim +1 -0
  801. data/spec/app/views/slim/text_field_tag_with_prepend.slim +1 -0
  802. data/spec/app/views/slim/text_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  803. data/spec/app/views/slim/text_field_tag_with_success.slim +1 -0
  804. data/spec/app/views/slim/text_field_tag_with_warning.slim +1 -0
  805. data/spec/app/views/slim/text_field_with_append.slim +1 -0
  806. data/spec/app/views/slim/text_field_with_error.slim +1 -0
  807. data/spec/app/views/slim/text_field_with_help_block.slim +1 -0
  808. data/spec/app/views/slim/text_field_with_help_inline.slim +1 -0
  809. data/spec/app/views/slim/text_field_with_info.slim +1 -0
  810. data/spec/app/views/slim/text_field_with_prepend.slim +1 -0
  811. data/spec/app/views/slim/text_field_with_prepend_append_and_help_inline.slim +1 -0
  812. data/spec/app/views/slim/text_field_with_success.slim +1 -0
  813. data/spec/app/views/slim/text_field_with_warning.slim +1 -0
  814. data/spec/app/views/slim/uneditable_input.slim +1 -0
  815. data/spec/app/views/slim/uneditable_input_tag.slim +1 -0
  816. data/spec/app/views/slim/uneditable_input_tag_with_append.slim +1 -0
  817. data/spec/app/views/slim/uneditable_input_tag_with_error.slim +1 -0
  818. data/spec/app/views/slim/uneditable_input_tag_with_help_block.slim +1 -0
  819. data/spec/app/views/slim/uneditable_input_tag_with_help_inline.slim +1 -0
  820. data/spec/app/views/slim/uneditable_input_tag_with_info.slim +1 -0
  821. data/spec/app/views/slim/uneditable_input_tag_with_prepend.slim +1 -0
  822. data/spec/app/views/slim/uneditable_input_tag_with_prepend_append_and_help_inline.slim +1 -0
  823. data/spec/app/views/slim/uneditable_input_tag_with_success.slim +1 -0
  824. data/spec/app/views/slim/uneditable_input_tag_with_warning.slim +1 -0
  825. data/spec/app/views/slim/uneditable_input_with_append.slim +1 -0
  826. data/spec/app/views/slim/uneditable_input_with_error.slim +1 -0
  827. data/spec/app/views/slim/uneditable_input_with_help_block.slim +1 -0
  828. data/spec/app/views/slim/uneditable_input_with_help_inline.slim +1 -0
  829. data/spec/app/views/slim/uneditable_input_with_info.slim +1 -0
  830. data/spec/app/views/slim/uneditable_input_with_prepend.slim +1 -0
  831. data/spec/app/views/slim/uneditable_input_with_prepend_append_and_help_inline.slim +1 -0
  832. data/spec/app/views/slim/uneditable_input_with_success.slim +1 -0
  833. data/spec/app/views/slim/uneditable_input_with_warning.slim +1 -0
  834. data/spec/app/views/slim/url_field.slim +1 -0
  835. data/spec/app/views/slim/url_field_tag.slim +1 -0
  836. data/spec/app/views/slim/url_field_tag_tag.slim +1 -0
  837. data/spec/app/views/slim/url_field_tag_with_append.slim +1 -0
  838. data/spec/app/views/slim/url_field_tag_with_error.slim +1 -0
  839. data/spec/app/views/slim/url_field_tag_with_help_block.slim +1 -0
  840. data/spec/app/views/slim/url_field_tag_with_help_inline.slim +1 -0
  841. data/spec/app/views/slim/url_field_tag_with_info.slim +1 -0
  842. data/spec/app/views/slim/url_field_tag_with_prepend.slim +1 -0
  843. data/spec/app/views/slim/url_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  844. data/spec/app/views/slim/url_field_tag_with_success.slim +1 -0
  845. data/spec/app/views/slim/url_field_tag_with_warning.slim +1 -0
  846. data/spec/app/views/slim/url_field_with_append.slim +1 -0
  847. data/spec/app/views/slim/url_field_with_error.slim +1 -0
  848. data/spec/app/views/slim/url_field_with_help_block.slim +1 -0
  849. data/spec/app/views/slim/url_field_with_help_inline.slim +1 -0
  850. data/spec/app/views/slim/url_field_with_info.slim +1 -0
  851. data/spec/app/views/slim/url_field_with_prepend.slim +1 -0
  852. data/spec/app/views/slim/url_field_with_prepend_append_and_help_inline.slim +1 -0
  853. data/spec/app/views/slim/url_field_with_success.slim +1 -0
  854. data/spec/app/views/slim/url_field_with_warning.slim +1 -0
  855. data/spec/bootstrap_forms_spec.rb +25 -0
  856. data/spec/spec_helper.rb +95 -22
  857. data/spec/support/a_form_field.rb +15 -0
  858. data/spec/support/form_builder.rb +166 -0
  859. data/spec/support/form_tag_helpers.rb +87 -0
  860. metadata +1768 -32
  861. data/spec/lib/bootstrap_forms/form_builder_spec.rb +0 -218
  862. data/spec/lib/bootstrap_forms/form_tag_helper_spec.rb +0 -20
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b34692a2c6f71d099f09129543f70dabf3a82b5d
4
+ data.tar.gz: 68dd540269edf65eba6482fd1488da974b51b3f7
5
+ SHA512:
6
+ metadata.gz: cd868d61e6e50ecdd5020b37cf7baec0c1c8550b5adb417acbd4814232a9956b705c8f14b10c3a676f1d40a43f54eb3b5bc0bd261cf2f98d967b37b0fe0e1ef3
7
+ data.tar.gz: acd0d96e401dfda7d247f731c9351bd0d099f5fe5b73f256557fa51fcce13d78d338db0fe9ef702d3e3c8870240f5cc66a8e50fb4518322a556a36e47a12a4df
@@ -2,4 +2,9 @@ language: ruby
2
2
  rvm:
3
3
  - 1.8.7
4
4
  - 1.9.2
5
- - 1.9.3
5
+ - 1.9.3
6
+
7
+ # Fragile tests :(
8
+ matrix:
9
+ allow_failures:
10
+ - rvm: 1.8.7
data/Changes ADDED
@@ -0,0 +1,8 @@
1
+ v0.0.2 2013-07-14
2
+ --------------------
3
+ Bug Fixes:
4
+ * Fix conflict between Wrappers.error and Padrino's error helper (thanks Ivan Zhidkov)
5
+ * Various failures when using Slim (thanks Ivan Zhidkov)
6
+ * Various failures when using ERB (thanks Ken Erickson & Luke Antins)
7
+ * :help_inline and :help_block now use <span> and not <p>
8
+ * FormTagHelpers methods add an id attribute to the fields they create
@@ -18,6 +18,7 @@ Differences Between This & The Rails Version
18
18
  * `country_select`
19
19
  * `time_zone_select`
20
20
  * `range_field`
21
+ * Various other additions made to `bootstrap_forms` after `v3`
21
22
 
22
23
  Bootstrap 2.0 Compliant!
23
24
  ------------------------
@@ -161,6 +162,11 @@ You can add as many options to any form helper tag. If they are interpreted by B
161
162
  <td>Styles the field as success (green)</td>
162
163
  <td>= f.text_field :name, :success => 'This checked out OK'</td>
163
164
  </tr>
165
+ <tr>
166
+ <th>info</th>
167
+ <td>Styles the field as info (blue)</td>
168
+ <td>= f.text_field :name, :info => 'Hey, it's OK'</td>
169
+ </tr>
164
170
  <tr>
165
171
  <th>warning</th>
166
172
  <td>Styles the field as warning (yellow)</td>
@@ -4,32 +4,38 @@ module BootstrapForms
4
4
 
5
5
  delegate :content_tag, :check_box_tag, :radio_button_tag, :link_to, :capture_html, :to => :template
6
6
 
7
- %w(select email_field file_field number_field password_field search_field telephone_field text_area text_field url_field).each do |method_name|
7
+ def initialize(*args)
8
+ @field_options = {}
9
+ super(*args)
10
+ end
11
+
12
+ %w(select email_field file_field number_field password_field phone_field search_field telephone_field text_area text_field url_field).each do |method_name|
8
13
  define_method(method_name) do |name, *args|
9
14
  @name = name
10
15
  @field_options = args.extract_options!
11
16
 
12
17
  control_group_div do
13
- label_field + input_div do
14
- extras { super(name, objectify_options(@field_options)) }
18
+ label_field << input_div do
19
+ super(name, objectify_options(@field_options))
15
20
  end
16
21
  end
17
22
  end
18
23
  end
19
24
 
20
- alias :phone_field :telephone_field
21
-
22
25
  def check_box(name, *args)
23
26
  @name = name
24
27
  @field_options = args.extract_options!
25
28
 
26
29
  control_group_div do
27
- input_div do
30
+ input_div(false) do
28
31
  if @field_options[:label] == false || @field_options[:label] == ''
29
- extras { super(name, objectify_options(@field_options)) }
32
+ super(name, objectify_options(@field_options)) << messages
30
33
  else
31
- html = extras { super(name, objectify_options(@field_options)) + (@field_options[:label].blank? ? @name.to_s.humanize : @field_options[:label]) }
32
- label(@name, :caption => html, :class => 'checkbox')
34
+ html = super(name, objectify_options(@field_options)) << (@field_options[:label].blank? ? @name.to_s.humanize : @field_options[:label])
35
+ html << messages
36
+ options = { :caption => html, :class => 'checkbox' }
37
+ options[:for] = @field_options[:id] if @field_options.include?(:id)
38
+ label(@name, options)
33
39
  end
34
40
  end
35
41
  end
@@ -39,19 +45,19 @@ module BootstrapForms
39
45
  @name = name
40
46
  @field_options = opts
41
47
 
48
+ buttons = values.map do |text, value|
49
+ # Padrino does not stringify false values
50
+ html = radio_button(name, objectify_options(@field_options).merge(:value => "#{value}"))
51
+ html << text
52
+
53
+ options = { :caption => html, :class => 'radio', :for => nil }
54
+ label("#{name}_#{value}", options)
55
+ end.join('')
56
+
42
57
  control_group_div do
43
- label_field + input_div do
44
- values.map do |text, value|
45
- # Padrino does not stringify false values
46
- options = objectify_options(@field_options).merge(:value => "#{value}")
47
- if @field_options[:label] == '' || @field_options[:label] == false
48
- extras { radio_button(name, options) + text }
49
- else
50
- html = extras { radio_button(name, options) + text }
51
- label("#{name}_#{value}", :caption => html, :class => 'radio')
52
- end
53
- end.join('')
54
- end
58
+ # Prevent "for" attribute for a non existant id
59
+ @field_options[:id] = nil
60
+ label_field << input_div { buttons }
55
61
  end
56
62
  end
57
63
 
@@ -59,68 +65,53 @@ module BootstrapForms
59
65
  @name = attribute
60
66
  @field_options = args.extract_options!
61
67
 
68
+ boxes = records.map do |record|
69
+ value = record.send(record_id)
70
+ element_id = "#{object_model_name}_#{attribute}_#{value}"
71
+
72
+ options = objectify_options(@field_options).merge(:value => value, :id => element_id)
73
+ options[:checked] = "checked" if [object.send(attribute)].flatten.include?(value)
74
+
75
+ checkbox = check_box_tag("#{object_model_name}[#{attribute}][]", options)
76
+ checkbox << record.send(record_name)
77
+ content_tag(:label, checkbox, :class => ['checkbox', ('inline' if @field_options[:inline])].compact.join(' '))
78
+ end.join('')
79
+
62
80
  control_group_div do
63
- label_field + extras do
64
- content_tag(:div, :class => 'controls') do
65
- records.collect do |record|
66
- value = record.send(record_id)
67
- element_id = "#{object_model_name}_#{attribute}_#{value}"
68
-
69
- options = objectify_options(@field_options).merge(:id => element_id, :value => value)
70
- options[:checked] = "checked" if [object.send(attribute)].flatten.include?(value)
71
-
72
- checkbox = check_box_tag("#{object_model_name}[#{attribute}][]", options)
73
- content_tag(:label, :class => ['checkbox', ('inline' if @field_options[:inline])].compact.join(' ')) do
74
- checkbox + content_tag(:span, record.send(record_name))
75
- end
76
- end.join('')
77
- end
78
- end
81
+ # Prevent "for" attribute for a non existant id
82
+ @field_options[:id] = nil
83
+ label_field << input_div { boxes }
79
84
  end
80
85
  end
81
86
 
82
87
  def collection_radio_buttons(attribute, records, record_id, record_name, *args)
83
88
  @name = attribute
84
89
  @field_options = args.extract_options!
85
- @args = args
90
+
91
+ buttons = records.map do |record|
92
+ value = record.send(record_id)
93
+ element_id = "#{object_model_name}_#{attribute}_#{value}"
94
+ options = objectify_options(@field_options).merge(:value => value, :id => element_id)
95
+ radio = radio_button(attribute, options)
96
+ radio << record.send(record_name)
97
+ content_tag(:label, radio, :class => ['radio', ('inline' if @field_options[:inline])].compact.join(' '))
98
+ end.join('')
86
99
 
87
100
  control_group_div do
88
- label_field + extras do
89
- content_tag(:div, :class => 'controls') do
90
- records.collect do |record|
91
- value = record.send(record_id)
92
- element_id = "#{object_model_name}_#{attribute}_#{value}"
93
-
94
- options = objectify_options(@field_options).merge(:id => element_id, :value => value)
95
- options[:checked] = "checked" if value == object.send(attribute)
96
-
97
- radiobutton = radio_button_tag("#{object_model_name}[#{attribute}]", options)
98
- content_tag(:label, :class => ['radio', ('inline' if @field_options[:inline])].compact.join(' ')) do
99
- radiobutton + content_tag(:span, record.send(record_name))
100
- end
101
- end.join('')
102
- end
103
- end
101
+ # Prevent "for" attribute for a non existant id
102
+ @field_options[:id] = nil
103
+ label_field << input_div { buttons }
104
104
  end
105
105
  end
106
106
 
107
107
  def uneditable_input(name, *args)
108
108
  @name = name
109
109
  @field_options = args.extract_options!
110
- @args = args
110
+ @field_options[:id] ||= field_id(@name)
111
+ @field_options[:label] ||= "#{field_human_name(@name)}: " # conform to Padrino's default
112
+ @field_options[:value] ||= object.send(@name.to_sym)
111
113
 
112
- control_group_div do
113
- label_field + input_div do
114
- extras do
115
- value = @field_options.delete(:value)
116
- @field_options[:class] = [@field_options[:class], 'uneditable-input'].compact.join ' '
117
-
118
- content_tag(:span, objectify_options(@field_options)) do
119
- template.escape_html(value || object.send(@name.to_sym))
120
- end
121
- end
122
- end
123
- end
114
+ template.uneditable_input_tag(@name, @field_options)
124
115
  end
125
116
 
126
117
  def button(*args)
@@ -136,7 +127,8 @@ module BootstrapForms
136
127
  end
137
128
 
138
129
  def actions(&block)
139
- template.bootstrap_actions(&block)
130
+ content = block_given? ? capture_html(&block) : [submit, cancel].join(' ')
131
+ content_tag(:div, content, :class => 'form-actions')
140
132
  end
141
133
  end
142
134
  end
@@ -1,13 +1,13 @@
1
1
  module BootstrapForms
2
2
  module Helpers
3
- module FormHelper
3
+ module FormHelper
4
4
  def bootstrap_form_for(record, path, options = {}, &block)
5
5
  options[:builder] = BootstrapForms::FormBuilder
6
6
  form_for(record, path, options) do |f|
7
7
  capture(f, &block)
8
8
  end
9
9
  end
10
-
10
+
11
11
  def bootstrap_fields_for(record, instance_or_collection = nil, &block)
12
12
  fields_for(record, instance_or_collection, &block)
13
13
  end
@@ -8,10 +8,12 @@ module BootstrapForms
8
8
  define_method("bootstrap_#{method_name}") do |name, *args|
9
9
  @name = name
10
10
  @field_options = args.extract_options!
11
+ # TODO: use whatever method Padrino's builder uses...
12
+ @field_options[:id] ||= name
11
13
 
12
14
  control_group_div do
13
15
  label_field + input_div do
14
- extras { send(method_name.to_sym, name, objectify_options(@field_options)) }
16
+ send(method_name.to_sym, name, objectify_options(@field_options))
15
17
  end
16
18
  end
17
19
  end
@@ -24,16 +26,18 @@ module BootstrapForms
24
26
  @field_options = args.extract_options!
25
27
  @args = args
26
28
 
29
+ # Padrino will always generate a label's for attribute, this results in invalid HTML.
30
+ # label_field will use :id as the for attribute if present.
31
+ @field_options[:id] = nil unless @field_options[:id]
32
+
27
33
  control_group_div do
28
- label_field + input_div do
29
- extras do
30
- value = @field_options.delete(:value)
31
- @field_options[:class] = [@field_options[:class], 'uneditable-input'].compact.join ' '
34
+ label_field << input_div do
35
+ # Due to how Padrino implements ERB this block (and others) will be called many (4?) times.
36
+ # To avoid string accumulation under :class -and to keep option passing somewhat straightforward- we just dup()
37
+ options = @field_options.dup
38
+ options[:class] = [options[:class], 'uneditable-input'].compact.join " "
32
39
 
33
- content_tag(:span, objectify_options(@field_options)) do
34
- escape_html(value)
35
- end
36
- end
40
+ content_tag(:span, escape_html(options[:value]), objectify_options(options.except(:value)))
37
41
  end
38
42
  end
39
43
  end
@@ -58,19 +62,21 @@ module BootstrapForms
58
62
  def bootstrap_cancel_tag(*args)
59
63
  options = args.extract_options!
60
64
  options[:class] ||= 'btn cancel'
61
- options[:back] ||= 'javascript:history.go(-1)'
65
+ options[:back] ||= 'javascript:history.go(-1)'
62
66
 
63
67
  name = args.shift || 'Cancel'
64
68
  link_to(name, options[:back], options.except(:back))
65
69
  end
66
70
 
67
71
  def bootstrap_actions(&block)
68
- content_tag(:div, :class => 'form-actions') do
69
- if block_given?
70
- capture_html(&block)
71
- else
72
- [bootstrap_submit_tag, bootstrap_cancel_tag].join(' ')
73
- end
72
+ # This somethat redundant arrangement is necessary (according to the test cases) to make this call work with Slim, ERB, and HAML.
73
+ # Though oddly enough this Slim block test still fails yet works in production. Not sure why this is but, nevertheless
74
+ # we keep this in place.
75
+ if block_given?
76
+ content_tag(:div, :class => 'form-actions', &block)
77
+ else
78
+ content = [bootstrap_submit_tag, bootstrap_cancel_tag].join(' ')
79
+ content_tag(:div, content, :class => 'form-actions')
74
80
  end
75
81
  end
76
82
  end
@@ -13,12 +13,13 @@ module BootstrapForms
13
13
  end
14
14
 
15
15
  klasses = ['control-group']
16
- klasses << 'error' if @field_options[:error]
16
+ klasses << 'error' if @field_options[:error]
17
+ klasses << 'info' if @field_options[:info]
17
18
  klasses << 'success' if @field_options[:success]
18
19
  klasses << 'warning' if @field_options[:warning]
19
20
  klass = klasses.join(' ')
20
21
 
21
- content_tag(:div, :class => klass, &block)
22
+ content_tag(:div, block[], :class => klass)
22
23
  end
23
24
 
24
25
  def error_string
@@ -26,24 +27,25 @@ module BootstrapForms
26
27
  errors = object.errors[@name]
27
28
  if errors.any?
28
29
  errors.map { |e|
29
- "#{@options[:label] || @name.to_s.humanize} #{e}"
30
+ "#{@field_options[:label] || @name.to_s.humanize} #{e}"
30
31
  }.join(', ')
31
32
  end
32
33
  end
33
34
  end
34
35
 
35
- def input_div(&block)
36
- content_tag(:div, :class => 'controls') do
37
- if @field_options[:append] || @field_options[:prepend]
38
- klasses = []
39
- klasses << 'input-prepend' if @field_options[:prepend]
40
- klasses << 'input-append' if @field_options[:append]
41
- klass = klasses.join(' ')
42
- content_tag(:div, :class => klass, &block)
43
- else
44
- capture_html(&block) if block_given?
45
- end
36
+ def input_div(include_messages = true, &block)
37
+ if @field_options[:append] || @field_options[:prepend]
38
+ klasses = []
39
+ klasses << 'input-prepend' if @field_options[:prepend]
40
+ klasses << 'input-append' if @field_options[:append]
41
+ klass = klasses.join(' ')
42
+ content = content_tag(:div, addon { block[] }, :class => klass)
43
+ else
44
+ content = block[]
46
45
  end
46
+
47
+ content << messages if include_messages
48
+ content_tag(:div, content, :class => 'controls')
47
49
  end
48
50
 
49
51
  def label_field(&block)
@@ -51,40 +53,45 @@ module BootstrapForms
51
53
  return ''
52
54
  else
53
55
  options = { :class => 'control-label' }
56
+ # Allow for setting for to nil i.e., no for attribute. Padrino will always generate one
57
+ options[:for] = @field_options[:id] if @field_options.include?(:id)
54
58
  options[:caption] = @field_options[:label] if @field_options[:label]
55
59
 
56
60
  if respond_to?(:object)
57
61
  label(@name, options, &block)
58
- else
62
+ else
59
63
  label_tag(@name, options, &block)
60
64
  end
61
65
  end
62
66
  end
63
67
 
64
- %w(help_inline error success warning help_block append prepend).each do |method_name|
68
+ %w(help_block help_inline bootstrap_error success warning info append prepend).each do |method_name|
65
69
  define_method(method_name) do |*args|
70
+ # Hack to avoid clashing with Padrino's error method
71
+ method_name = "error" if method_name == "bootstrap_error"
66
72
  return '' unless value = @field_options[method_name.to_sym]
67
73
  case method_name
68
74
  when 'help_block'
69
- element = :p
70
75
  klass = 'help-block'
71
76
  when 'append', 'prepend'
72
- element = :span
73
77
  klass = 'add-on'
74
78
  else
75
- element = :span
76
79
  klass = 'help-inline'
77
80
  end
78
- content_tag(element, value, :class => klass)
81
+ content_tag(:span, value, :class => klass)
79
82
  end
80
83
  end
81
84
 
82
- def extras(&block)
83
- [prepend, (capture_html(&block) if block_given?), append, help_inline, error, success, warning, help_block].join('')
85
+ def messages
86
+ [help_inline, bootstrap_error, success, warning, info, help_block].join('')
87
+ end
88
+
89
+ def addon(&block)
90
+ [prepend, block[], append].join('')
84
91
  end
85
92
 
86
93
  def objectify_options(options)
87
- options.except(:label, :help_inline, :error, :success, :warning, :help_block, :prepend, :append)
94
+ options.except(:label, :help_block, :help_inline, :error, :success, :warning, :info, :prepend, :append)
88
95
  end
89
96
  end
90
97
  end
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "padrino_bootstrap_forms"
3
- s.version = "0.0.1"
3
+ s.version = "0.0.2"
4
4
  s.authors = ["Seth Vargo", "Skye Shaw"]
5
- s.email = "sshaw@lucas.cis.temple.edu"
5
+ s.email = "skye.shaw@gmail.com"
6
6
  s.homepage = "https://github.com/sshaw/padrino_bootstrap_forms"
7
7
  s.summary = "Padrino Bootstrap Forms makes Twitter's Bootstrap on Padrino easy!"
8
8
  s.description = <<-DESC
9
- Padrino Bootstrap Forms is a port of Seth Vargo's Bootstrap Forms for Rails.
9
+ Padrino Bootstrap Forms is a port of Seth Vargo's Bootstrap Forms for Rails.
10
10
  It makes Twitter's Bootstrap on Padrino easy to use by creating helpful form builders that minimize markup in your views.
11
11
  DESC
12
12
  s.files = `git ls-files`.split("\n")
@@ -14,9 +14,11 @@ Gem::Specification.new do |s|
14
14
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
15
15
  s.require_paths = ["lib"]
16
16
 
17
- s.add_dependency "padrino-helpers", "~> 0.10.6"
17
+ s.add_dependency "padrino", "~> 0.10.6"
18
18
  s.add_dependency "activesupport", "~> 3.0"
19
19
  s.add_development_dependency "rake"
20
+ s.add_development_dependency "slim", "~> 1.3.6"
21
+ s.add_development_dependency "haml", "~> 3.1"
20
22
  s.add_development_dependency "rack-test", "~> 0.6.1"
21
- s.add_development_dependency "rspec", "~> 2.9.0"
23
+ s.add_development_dependency "rspec", "~> 2.9"
22
24
  end