kosmas58-compass-jquery-plugin 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (635) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.textile +109 -0
  3. data/Rakefile +9 -0
  4. data/lib/handle_js_files.rb +35 -0
  5. data/lib/jquery.rb +1 -0
  6. data/lib/jquery/compass_plugin.rb +5 -0
  7. data/lib/jquery/jqgrid.rb +374 -0
  8. data/lib/jquery/jrails.rb +427 -0
  9. data/lib/jquery/rubygems.rake +41 -0
  10. data/lib/jquery/secret_sauce.rb +10 -0
  11. data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +14 -0
  12. data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +18 -0
  13. data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +6 -0
  14. data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +118 -0
  15. data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +219 -0
  16. data/lib/jquery/secret_sauce/helpers/ui_theme_helper.rb +16 -0
  17. data/lib/jquery/secret_sauce/model/find_for_grid.rb +45 -0
  18. data/lib/jquery/version.rb +12 -0
  19. data/lib/yuicompressor-2.4.2.jar +0 -0
  20. data/templates/dynatree/jquery.dynatree.js +1894 -0
  21. data/templates/dynatree/jquery.dynatree.min.js +1 -0
  22. data/templates/dynatree/jquery.ui/dynatree.aqua.sass +156 -0
  23. data/templates/dynatree/jquery.ui/dynatree.aqua/cbChecked.png +0 -0
  24. data/templates/dynatree/jquery.ui/dynatree.aqua/cbChecked_hover.png +0 -0
  25. data/templates/dynatree/jquery.ui/dynatree.aqua/cbIntermediate.png +0 -0
  26. data/templates/dynatree/jquery.ui/dynatree.aqua/cbIntermediate_hover.png +0 -0
  27. data/templates/dynatree/jquery.ui/dynatree.aqua/cbUnchecked.png +0 -0
  28. data/templates/dynatree/jquery.ui/dynatree.aqua/cbUnchecked_hover.png +0 -0
  29. data/templates/dynatree/jquery.ui/dynatree.aqua/collapsed.png +0 -0
  30. data/templates/dynatree/jquery.ui/dynatree.aqua/collapsed_hover.png +0 -0
  31. data/templates/dynatree/jquery.ui/dynatree.aqua/customDoc1.png +0 -0
  32. data/templates/dynatree/jquery.ui/dynatree.aqua/customFolder1.png +0 -0
  33. data/templates/dynatree/jquery.ui/dynatree.aqua/doc_with_children.png +0 -0
  34. data/templates/dynatree/jquery.ui/dynatree.aqua/document.png +0 -0
  35. data/templates/dynatree/jquery.ui/dynatree.aqua/empty.png +0 -0
  36. data/templates/dynatree/jquery.ui/dynatree.aqua/expanded.png +0 -0
  37. data/templates/dynatree/jquery.ui/dynatree.aqua/expanded_hover.png +0 -0
  38. data/templates/dynatree/jquery.ui/dynatree.aqua/folder.png +0 -0
  39. data/templates/dynatree/jquery.ui/dynatree.aqua/folder_docs.png +0 -0
  40. data/templates/dynatree/jquery.ui/dynatree.aqua/folder_images.png +0 -0
  41. data/templates/dynatree/jquery.ui/dynatree.aqua/folder_open.png +0 -0
  42. data/templates/dynatree/jquery.ui/dynatree.aqua/folder_page.png +0 -0
  43. data/templates/dynatree/jquery.ui/dynatree.aqua/ltDoc.png +0 -0
  44. data/templates/dynatree/jquery.ui/dynatree.aqua/ltError.png +0 -0
  45. data/templates/dynatree/jquery.ui/dynatree.aqua/ltWait.gif +0 -0
  46. data/templates/dynatree/jquery.ui/dynatree.crystal.sass +156 -0
  47. data/templates/dynatree/jquery.ui/dynatree.crystal/cbChecked.png +0 -0
  48. data/templates/dynatree/jquery.ui/dynatree.crystal/cbChecked_hover.png +0 -0
  49. data/templates/dynatree/jquery.ui/dynatree.crystal/cbIntermediate.png +0 -0
  50. data/templates/dynatree/jquery.ui/dynatree.crystal/cbIntermediate_hover.png +0 -0
  51. data/templates/dynatree/jquery.ui/dynatree.crystal/cbUnchecked.png +0 -0
  52. data/templates/dynatree/jquery.ui/dynatree.crystal/cbUnchecked_hover.png +0 -0
  53. data/templates/dynatree/jquery.ui/dynatree.crystal/collapsed.png +0 -0
  54. data/templates/dynatree/jquery.ui/dynatree.crystal/collapsed_hover.png +0 -0
  55. data/templates/dynatree/jquery.ui/dynatree.crystal/customDoc1.png +0 -0
  56. data/templates/dynatree/jquery.ui/dynatree.crystal/customFolder1.png +0 -0
  57. data/templates/dynatree/jquery.ui/dynatree.crystal/doc_with_children.png +0 -0
  58. data/templates/dynatree/jquery.ui/dynatree.crystal/document.png +0 -0
  59. data/templates/dynatree/jquery.ui/dynatree.crystal/edit_add.png +0 -0
  60. data/templates/dynatree/jquery.ui/dynatree.crystal/empty.png +0 -0
  61. data/templates/dynatree/jquery.ui/dynatree.crystal/expanded.png +0 -0
  62. data/templates/dynatree/jquery.ui/dynatree.crystal/expanded_hover.png +0 -0
  63. data/templates/dynatree/jquery.ui/dynatree.crystal/folder.png +0 -0
  64. data/templates/dynatree/jquery.ui/dynatree.crystal/folder_docs.png +0 -0
  65. data/templates/dynatree/jquery.ui/dynatree.crystal/folder_images.png +0 -0
  66. data/templates/dynatree/jquery.ui/dynatree.crystal/folder_open.png +0 -0
  67. data/templates/dynatree/jquery.ui/dynatree.crystal/folder_page.png +0 -0
  68. data/templates/dynatree/jquery.ui/dynatree.crystal/ltDoc.png +0 -0
  69. data/templates/dynatree/jquery.ui/dynatree.crystal/ltError.png +0 -0
  70. data/templates/dynatree/jquery.ui/dynatree.crystal/ltWait.gif +0 -0
  71. data/templates/dynatree/jquery.ui/dynatree.vista.sass +156 -0
  72. data/templates/dynatree/jquery.ui/dynatree.vista/cbChecked.png +0 -0
  73. data/templates/dynatree/jquery.ui/dynatree.vista/cbChecked_hover.png +0 -0
  74. data/templates/dynatree/jquery.ui/dynatree.vista/cbIntermediate.png +0 -0
  75. data/templates/dynatree/jquery.ui/dynatree.vista/cbIntermediate_hover.png +0 -0
  76. data/templates/dynatree/jquery.ui/dynatree.vista/cbUnchecked.png +0 -0
  77. data/templates/dynatree/jquery.ui/dynatree.vista/cbUnchecked_hover.png +0 -0
  78. data/templates/dynatree/jquery.ui/dynatree.vista/collapsed.png +0 -0
  79. data/templates/dynatree/jquery.ui/dynatree.vista/collapsed_hover.png +0 -0
  80. data/templates/dynatree/jquery.ui/dynatree.vista/customDoc1.png +0 -0
  81. data/templates/dynatree/jquery.ui/dynatree.vista/customFolder1.png +0 -0
  82. data/templates/dynatree/jquery.ui/dynatree.vista/doc_with_children.png +0 -0
  83. data/templates/dynatree/jquery.ui/dynatree.vista/document.png +0 -0
  84. data/templates/dynatree/jquery.ui/dynatree.vista/empty.png +0 -0
  85. data/templates/dynatree/jquery.ui/dynatree.vista/expanded.png +0 -0
  86. data/templates/dynatree/jquery.ui/dynatree.vista/expanded_hover.png +0 -0
  87. data/templates/dynatree/jquery.ui/dynatree.vista/folder.png +0 -0
  88. data/templates/dynatree/jquery.ui/dynatree.vista/folder_docs.png +0 -0
  89. data/templates/dynatree/jquery.ui/dynatree.vista/folder_images.png +0 -0
  90. data/templates/dynatree/jquery.ui/dynatree.vista/folder_open.png +0 -0
  91. data/templates/dynatree/jquery.ui/dynatree.vista/folder_page.png +0 -0
  92. data/templates/dynatree/jquery.ui/dynatree.vista/ltDoc.png +0 -0
  93. data/templates/dynatree/jquery.ui/dynatree.vista/ltError.png +0 -0
  94. data/templates/dynatree/jquery.ui/dynatree.vista/ltWait.ani +0 -0
  95. data/templates/dynatree/jquery.ui/dynatree.vista/ltWait.gif +0 -0
  96. data/templates/dynatree/jquery.ui/dynatree.xp.sass +158 -0
  97. data/templates/dynatree/jquery.ui/dynatree.xp/cbChecked.png +0 -0
  98. data/templates/dynatree/jquery.ui/dynatree.xp/cbChecked_hover.png +0 -0
  99. data/templates/dynatree/jquery.ui/dynatree.xp/cbIntermediate.png +0 -0
  100. data/templates/dynatree/jquery.ui/dynatree.xp/cbIntermediate_hover.png +0 -0
  101. data/templates/dynatree/jquery.ui/dynatree.xp/cbUnchecked.png +0 -0
  102. data/templates/dynatree/jquery.ui/dynatree.xp/cbUnchecked_hover.png +0 -0
  103. data/templates/dynatree/jquery.ui/dynatree.xp/customDoc1.png +0 -0
  104. data/templates/dynatree/jquery.ui/dynatree.xp/customFolder1.png +0 -0
  105. data/templates/dynatree/jquery.ui/dynatree.xp/ltD_ne.png +0 -0
  106. data/templates/dynatree/jquery.ui/dynatree.xp/ltD_nes.png +0 -0
  107. data/templates/dynatree/jquery.ui/dynatree.xp/ltDoc.png +0 -0
  108. data/templates/dynatree/jquery.ui/dynatree.xp/ltError.png +0 -0
  109. data/templates/dynatree/jquery.ui/dynatree.xp/ltFld.png +0 -0
  110. data/templates/dynatree/jquery.ui/dynatree.xp/ltFld_o.png +0 -0
  111. data/templates/dynatree/jquery.ui/dynatree.xp/ltL_.png +0 -0
  112. data/templates/dynatree/jquery.ui/dynatree.xp/ltL_ne.png +0 -0
  113. data/templates/dynatree/jquery.ui/dynatree.xp/ltL_nes.png +0 -0
  114. data/templates/dynatree/jquery.ui/dynatree.xp/ltL_ns.png +0 -0
  115. data/templates/dynatree/jquery.ui/dynatree.xp/ltM_ne.png +0 -0
  116. data/templates/dynatree/jquery.ui/dynatree.xp/ltM_nes.png +0 -0
  117. data/templates/dynatree/jquery.ui/dynatree.xp/ltP_ne.png +0 -0
  118. data/templates/dynatree/jquery.ui/dynatree.xp/ltP_nes.png +0 -0
  119. data/templates/dynatree/jquery.ui/dynatree.xp/ltWait.gif +0 -0
  120. data/templates/dynatree/manifest.rb +103 -0
  121. data/templates/jqgrid/config/initializers/jqgrid.rb +3 -0
  122. data/templates/jqgrid/i18n/jqgrid/locale-bg.js +128 -0
  123. data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +1 -0
  124. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +128 -0
  125. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +1 -0
  126. data/templates/jqgrid/i18n/jqgrid/locale-cat.js +124 -0
  127. data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +1 -0
  128. data/templates/jqgrid/i18n/jqgrid/locale-cs.js +123 -0
  129. data/templates/jqgrid/i18n/jqgrid/locale-cs.min.js +1 -0
  130. data/templates/jqgrid/i18n/jqgrid/locale-de.js +124 -0
  131. data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +1 -0
  132. data/templates/jqgrid/i18n/jqgrid/locale-dk.js +124 -0
  133. data/templates/jqgrid/i18n/jqgrid/locale-dk.min.js +1 -0
  134. data/templates/jqgrid/i18n/jqgrid/locale-el.js +122 -0
  135. data/templates/jqgrid/i18n/jqgrid/locale-el.min.js +1 -0
  136. data/templates/jqgrid/i18n/jqgrid/locale-en.js +123 -0
  137. data/templates/jqgrid/i18n/jqgrid/locale-en.min.js +1 -0
  138. data/templates/jqgrid/i18n/jqgrid/locale-fa.js +121 -0
  139. data/templates/jqgrid/i18n/jqgrid/locale-fa.min.js +1 -0
  140. data/templates/jqgrid/i18n/jqgrid/locale-fi.js +124 -0
  141. data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +1 -0
  142. data/templates/jqgrid/i18n/jqgrid/locale-fr.js +122 -0
  143. data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +1 -0
  144. data/templates/jqgrid/i18n/jqgrid/locale-is.js +122 -0
  145. data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +1 -0
  146. data/templates/jqgrid/i18n/jqgrid/locale-it.js +122 -0
  147. data/templates/jqgrid/i18n/jqgrid/locale-it.min.js +1 -0
  148. data/templates/jqgrid/i18n/jqgrid/locale-jp.js +123 -0
  149. data/templates/jqgrid/i18n/jqgrid/locale-jp.min.js +1 -0
  150. data/templates/jqgrid/i18n/jqgrid/locale-no.js +116 -0
  151. data/templates/jqgrid/i18n/jqgrid/locale-no.min.js +1 -0
  152. data/templates/jqgrid/i18n/jqgrid/locale-pl.js +123 -0
  153. data/templates/jqgrid/i18n/jqgrid/locale-pl.min.js +1 -0
  154. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +123 -0
  155. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js +1 -0
  156. data/templates/jqgrid/i18n/jqgrid/locale-pt.js +121 -0
  157. data/templates/jqgrid/i18n/jqgrid/locale-pt.min.js +1 -0
  158. data/templates/jqgrid/i18n/jqgrid/locale-ru.js +123 -0
  159. data/templates/jqgrid/i18n/jqgrid/locale-ru.min.js +1 -0
  160. data/templates/jqgrid/i18n/jqgrid/locale-sp.js +124 -0
  161. data/templates/jqgrid/i18n/jqgrid/locale-sp.min.js +1 -0
  162. data/templates/jqgrid/i18n/jqgrid/locale-sv.js +112 -0
  163. data/templates/jqgrid/i18n/jqgrid/locale-sv.min.js +1 -0
  164. data/templates/jqgrid/i18n/jqgrid/locale-tr.js +122 -0
  165. data/templates/jqgrid/i18n/jqgrid/locale-tr.min.js +1 -0
  166. data/templates/jqgrid/i18n/jqgrid/locale-ua.js +123 -0
  167. data/templates/jqgrid/i18n/jqgrid/locale-ua.min.js +1 -0
  168. data/templates/jqgrid/jquery.jqGrid.js +8415 -0
  169. data/templates/jqgrid/jquery.jqGrid.min.js +1 -0
  170. data/templates/jqgrid/jquery.ui/jqGrid.sass +541 -0
  171. data/templates/jqgrid/manifest.rb +53 -0
  172. data/templates/jrails/config/initializers/jrails.rb +25 -0
  173. data/templates/jrails/i18n/jquery.ui/datepicker-ar.js +20 -0
  174. data/templates/jrails/i18n/jquery.ui/datepicker-ar.min.js +1 -0
  175. data/templates/jrails/i18n/jquery.ui/datepicker-bg.js +20 -0
  176. data/templates/jrails/i18n/jquery.ui/datepicker-bg.min.js +1 -0
  177. data/templates/jrails/i18n/jquery.ui/datepicker-ca.js +19 -0
  178. data/templates/jrails/i18n/jquery.ui/datepicker-ca.min.js +1 -0
  179. data/templates/jrails/i18n/jquery.ui/datepicker-cs.js +19 -0
  180. data/templates/jrails/i18n/jquery.ui/datepicker-cs.min.js +1 -0
  181. data/templates/jrails/i18n/jquery.ui/datepicker-da.js +19 -0
  182. data/templates/jrails/i18n/jquery.ui/datepicker-da.min.js +1 -0
  183. data/templates/jrails/i18n/jquery.ui/datepicker-de.js +19 -0
  184. data/templates/jrails/i18n/jquery.ui/datepicker-de.min.js +1 -0
  185. data/templates/jrails/i18n/jquery.ui/datepicker-el.js +19 -0
  186. data/templates/jrails/i18n/jquery.ui/datepicker-el.min.js +1 -0
  187. data/templates/jrails/i18n/jquery.ui/datepicker-eo.js +19 -0
  188. data/templates/jrails/i18n/jquery.ui/datepicker-eo.min.js +1 -0
  189. data/templates/jrails/i18n/jquery.ui/datepicker-es.js +19 -0
  190. data/templates/jrails/i18n/jquery.ui/datepicker-es.min.js +1 -0
  191. data/templates/jrails/i18n/jquery.ui/datepicker-fa.js +19 -0
  192. data/templates/jrails/i18n/jquery.ui/datepicker-fa.min.js +1 -0
  193. data/templates/jrails/i18n/jquery.ui/datepicker-fi.js +19 -0
  194. data/templates/jrails/i18n/jquery.ui/datepicker-fi.min.js +1 -0
  195. data/templates/jrails/i18n/jquery.ui/datepicker-fr.js +19 -0
  196. data/templates/jrails/i18n/jquery.ui/datepicker-fr.min.js +1 -0
  197. data/templates/jrails/i18n/jquery.ui/datepicker-he.js +19 -0
  198. data/templates/jrails/i18n/jquery.ui/datepicker-he.min.js +1 -0
  199. data/templates/jrails/i18n/jquery.ui/datepicker-hr.js +19 -0
  200. data/templates/jrails/i18n/jquery.ui/datepicker-hr.min.js +1 -0
  201. data/templates/jrails/i18n/jquery.ui/datepicker-hu.js +19 -0
  202. data/templates/jrails/i18n/jquery.ui/datepicker-hu.min.js +1 -0
  203. data/templates/jrails/i18n/jquery.ui/datepicker-hy.js +19 -0
  204. data/templates/jrails/i18n/jquery.ui/datepicker-hy.min.js +1 -0
  205. data/templates/jrails/i18n/jquery.ui/datepicker-id.js +19 -0
  206. data/templates/jrails/i18n/jquery.ui/datepicker-id.min.js +1 -0
  207. data/templates/jrails/i18n/jquery.ui/datepicker-is.js +19 -0
  208. data/templates/jrails/i18n/jquery.ui/datepicker-is.min.js +1 -0
  209. data/templates/jrails/i18n/jquery.ui/datepicker-it.js +19 -0
  210. data/templates/jrails/i18n/jquery.ui/datepicker-it.min.js +1 -0
  211. data/templates/jrails/i18n/jquery.ui/datepicker-ja.js +20 -0
  212. data/templates/jrails/i18n/jquery.ui/datepicker-ja.min.js +1 -0
  213. data/templates/jrails/i18n/jquery.ui/datepicker-ko.js +19 -0
  214. data/templates/jrails/i18n/jquery.ui/datepicker-ko.min.js +1 -0
  215. data/templates/jrails/i18n/jquery.ui/datepicker-lt.js +19 -0
  216. data/templates/jrails/i18n/jquery.ui/datepicker-lt.min.js +1 -0
  217. data/templates/jrails/i18n/jquery.ui/datepicker-lv.js +19 -0
  218. data/templates/jrails/i18n/jquery.ui/datepicker-lv.min.js +1 -0
  219. data/templates/jrails/i18n/jquery.ui/datepicker-ms.js +19 -0
  220. data/templates/jrails/i18n/jquery.ui/datepicker-ms.min.js +1 -0
  221. data/templates/jrails/i18n/jquery.ui/datepicker-nl.js +19 -0
  222. data/templates/jrails/i18n/jquery.ui/datepicker-nl.min.js +1 -0
  223. data/templates/jrails/i18n/jquery.ui/datepicker-no.js +19 -0
  224. data/templates/jrails/i18n/jquery.ui/datepicker-no.min.js +1 -0
  225. data/templates/jrails/i18n/jquery.ui/datepicker-pl.js +19 -0
  226. data/templates/jrails/i18n/jquery.ui/datepicker-pl.min.js +1 -0
  227. data/templates/jrails/i18n/jquery.ui/datepicker-pt-BR.js +19 -0
  228. data/templates/jrails/i18n/jquery.ui/datepicker-pt-BR.min.js +1 -0
  229. data/templates/jrails/i18n/jquery.ui/datepicker-ro.js +22 -0
  230. data/templates/jrails/i18n/jquery.ui/datepicker-ro.min.js +1 -0
  231. data/templates/jrails/i18n/jquery.ui/datepicker-ru.js +19 -0
  232. data/templates/jrails/i18n/jquery.ui/datepicker-ru.min.js +1 -0
  233. data/templates/jrails/i18n/jquery.ui/datepicker-sk.js +19 -0
  234. data/templates/jrails/i18n/jquery.ui/datepicker-sk.min.js +1 -0
  235. data/templates/jrails/i18n/jquery.ui/datepicker-sl.js +20 -0
  236. data/templates/jrails/i18n/jquery.ui/datepicker-sl.min.js +1 -0
  237. data/templates/jrails/i18n/jquery.ui/datepicker-sq.js +19 -0
  238. data/templates/jrails/i18n/jquery.ui/datepicker-sq.min.js +1 -0
  239. data/templates/jrails/i18n/jquery.ui/datepicker-sr-SR.js +19 -0
  240. data/templates/jrails/i18n/jquery.ui/datepicker-sr-SR.min.js +1 -0
  241. data/templates/jrails/i18n/jquery.ui/datepicker-sr.js +19 -0
  242. data/templates/jrails/i18n/jquery.ui/datepicker-sr.min.js +1 -0
  243. data/templates/jrails/i18n/jquery.ui/datepicker-sv.js +19 -0
  244. data/templates/jrails/i18n/jquery.ui/datepicker-sv.min.js +1 -0
  245. data/templates/jrails/i18n/jquery.ui/datepicker-th.js +19 -0
  246. data/templates/jrails/i18n/jquery.ui/datepicker-th.min.js +1 -0
  247. data/templates/jrails/i18n/jquery.ui/datepicker-tr.js +19 -0
  248. data/templates/jrails/i18n/jquery.ui/datepicker-tr.min.js +1 -0
  249. data/templates/jrails/i18n/jquery.ui/datepicker-uk.js +25 -0
  250. data/templates/jrails/i18n/jquery.ui/datepicker-uk.min.js +1 -0
  251. data/templates/jrails/i18n/jquery.ui/datepicker-zh-CN.js +19 -0
  252. data/templates/jrails/i18n/jquery.ui/datepicker-zh-CN.min.js +1 -0
  253. data/templates/jrails/i18n/jquery.ui/datepicker-zh-TW.js +19 -0
  254. data/templates/jrails/i18n/jquery.ui/datepicker-zh-TW.min.js +1 -0
  255. data/templates/jrails/jquery.js +7627 -0
  256. data/templates/jrails/jquery.min.js +19 -0
  257. data/templates/jrails/jquery.pngFix.js +11 -0
  258. data/templates/jrails/jquery.pngFix.min.js +1 -0
  259. data/templates/jrails/jquery.ui.js +18367 -0
  260. data/templates/jrails/jquery.ui.min.js +1 -0
  261. data/templates/jrails/jquery.ui/_theme.sass +1462 -0
  262. data/templates/jrails/jquery.ui/base.sass +85 -0
  263. data/templates/jrails/jquery.ui/base/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  264. data/templates/jrails/jquery.ui/base/ui-bg_flat_75_ffffff_40x100.png +0 -0
  265. data/templates/jrails/jquery.ui/base/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  266. data/templates/jrails/jquery.ui/base/ui-bg_glass_65_ffffff_1x400.png +0 -0
  267. data/templates/jrails/jquery.ui/base/ui-bg_glass_75_dadada_1x400.png +0 -0
  268. data/templates/jrails/jquery.ui/base/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  269. data/templates/jrails/jquery.ui/base/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  270. data/templates/jrails/jquery.ui/base/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  271. data/templates/jrails/jquery.ui/base/ui-icons_222222_256x240.png +0 -0
  272. data/templates/jrails/jquery.ui/base/ui-icons_2e83ff_256x240.png +0 -0
  273. data/templates/jrails/jquery.ui/base/ui-icons_454545_256x240.png +0 -0
  274. data/templates/jrails/jquery.ui/base/ui-icons_888888_256x240.png +0 -0
  275. data/templates/jrails/jquery.ui/base/ui-icons_cd0a0a_256x240.png +0 -0
  276. data/templates/jrails/jquery.ui/black-tie.sass +85 -0
  277. data/templates/jrails/jquery.ui/black-tie/ui-bg_diagonals-thick_8_333333_40x40.png +0 -0
  278. data/templates/jrails/jquery.ui/black-tie/ui-bg_flat_65_ffffff_40x100.png +0 -0
  279. data/templates/jrails/jquery.ui/black-tie/ui-bg_glass_40_111111_1x400.png +0 -0
  280. data/templates/jrails/jquery.ui/black-tie/ui-bg_glass_55_1c1c1c_1x400.png +0 -0
  281. data/templates/jrails/jquery.ui/black-tie/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
  282. data/templates/jrails/jquery.ui/black-tie/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
  283. data/templates/jrails/jquery.ui/black-tie/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
  284. data/templates/jrails/jquery.ui/black-tie/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
  285. data/templates/jrails/jquery.ui/black-tie/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
  286. data/templates/jrails/jquery.ui/black-tie/ui-icons_222222_256x240.png +0 -0
  287. data/templates/jrails/jquery.ui/black-tie/ui-icons_4ca300_256x240.png +0 -0
  288. data/templates/jrails/jquery.ui/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
  289. data/templates/jrails/jquery.ui/black-tie/ui-icons_ededed_256x240.png +0 -0
  290. data/templates/jrails/jquery.ui/black-tie/ui-icons_ffcf29_256x240.png +0 -0
  291. data/templates/jrails/jquery.ui/black-tie/ui-icons_ffffff_256x240.png +0 -0
  292. data/templates/jrails/jquery.ui/blitzer.sass +85 -0
  293. data/templates/jrails/jquery.ui/blitzer/ui-bg_diagonals-thick_75_f3d8d8_40x40.png +0 -0
  294. data/templates/jrails/jquery.ui/blitzer/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
  295. data/templates/jrails/jquery.ui/blitzer/ui-bg_flat_0_333333_40x100.png +0 -0
  296. data/templates/jrails/jquery.ui/blitzer/ui-bg_flat_65_ffffff_40x100.png +0 -0
  297. data/templates/jrails/jquery.ui/blitzer/ui-bg_flat_75_ffffff_40x100.png +0 -0
  298. data/templates/jrails/jquery.ui/blitzer/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
  299. data/templates/jrails/jquery.ui/blitzer/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
  300. data/templates/jrails/jquery.ui/blitzer/ui-bg_highlight-hard_100_f6f6f6_1x100.png +0 -0
  301. data/templates/jrails/jquery.ui/blitzer/ui-bg_highlight-soft_15_cc0000_1x100.png +0 -0
  302. data/templates/jrails/jquery.ui/blitzer/ui-icons_004276_256x240.png +0 -0
  303. data/templates/jrails/jquery.ui/blitzer/ui-icons_cc0000_256x240.png +0 -0
  304. data/templates/jrails/jquery.ui/blitzer/ui-icons_ffffff_256x240.png +0 -0
  305. data/templates/jrails/jquery.ui/cupertino.sass +85 -0
  306. data/templates/jrails/jquery.ui/cupertino/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
  307. data/templates/jrails/jquery.ui/cupertino/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
  308. data/templates/jrails/jquery.ui/cupertino/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
  309. data/templates/jrails/jquery.ui/cupertino/ui-bg_glass_50_3baae3_1x400.png +0 -0
  310. data/templates/jrails/jquery.ui/cupertino/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
  311. data/templates/jrails/jquery.ui/cupertino/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
  312. data/templates/jrails/jquery.ui/cupertino/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
  313. data/templates/jrails/jquery.ui/cupertino/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
  314. data/templates/jrails/jquery.ui/cupertino/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
  315. data/templates/jrails/jquery.ui/cupertino/ui-icons_2694e8_256x240.png +0 -0
  316. data/templates/jrails/jquery.ui/cupertino/ui-icons_2e83ff_256x240.png +0 -0
  317. data/templates/jrails/jquery.ui/cupertino/ui-icons_3d80b3_256x240.png +0 -0
  318. data/templates/jrails/jquery.ui/cupertino/ui-icons_72a7cf_256x240.png +0 -0
  319. data/templates/jrails/jquery.ui/cupertino/ui-icons_ffffff_256x240.png +0 -0
  320. data/templates/jrails/jquery.ui/dark-hive.sass +85 -0
  321. data/templates/jrails/jquery.ui/dark-hive/ui-bg_flat_30_cccccc_40x100.png +0 -0
  322. data/templates/jrails/jquery.ui/dark-hive/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  323. data/templates/jrails/jquery.ui/dark-hive/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  324. data/templates/jrails/jquery.ui/dark-hive/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  325. data/templates/jrails/jquery.ui/dark-hive/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  326. data/templates/jrails/jquery.ui/dark-hive/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  327. data/templates/jrails/jquery.ui/dark-hive/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  328. data/templates/jrails/jquery.ui/dark-hive/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  329. data/templates/jrails/jquery.ui/dark-hive/ui-bg_loop_25_000000_21x21.png +0 -0
  330. data/templates/jrails/jquery.ui/dark-hive/ui-icons_222222_256x240.png +0 -0
  331. data/templates/jrails/jquery.ui/dark-hive/ui-icons_4b8e0b_256x240.png +0 -0
  332. data/templates/jrails/jquery.ui/dark-hive/ui-icons_a83300_256x240.png +0 -0
  333. data/templates/jrails/jquery.ui/dark-hive/ui-icons_cccccc_256x240.png +0 -0
  334. data/templates/jrails/jquery.ui/dark-hive/ui-icons_ffffff_256x240.png +0 -0
  335. data/templates/jrails/jquery.ui/dot-luv.sass +85 -0
  336. data/templates/jrails/jquery.ui/dot-luv/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
  337. data/templates/jrails/jquery.ui/dot-luv/ui-bg_dots-medium_30_0b58a2_4x4.png +0 -0
  338. data/templates/jrails/jquery.ui/dot-luv/ui-bg_dots-small_20_333333_2x2.png +0 -0
  339. data/templates/jrails/jquery.ui/dot-luv/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
  340. data/templates/jrails/jquery.ui/dot-luv/ui-bg_dots-small_40_00498f_2x2.png +0 -0
  341. data/templates/jrails/jquery.ui/dot-luv/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  342. data/templates/jrails/jquery.ui/dot-luv/ui-bg_flat_40_292929_40x100.png +0 -0
  343. data/templates/jrails/jquery.ui/dot-luv/ui-bg_gloss-wave_20_111111_500x100.png +0 -0
  344. data/templates/jrails/jquery.ui/dot-luv/ui-icons_00498f_256x240.png +0 -0
  345. data/templates/jrails/jquery.ui/dot-luv/ui-icons_98d2fb_256x240.png +0 -0
  346. data/templates/jrails/jquery.ui/dot-luv/ui-icons_9ccdfc_256x240.png +0 -0
  347. data/templates/jrails/jquery.ui/dot-luv/ui-icons_ffffff_256x240.png +0 -0
  348. data/templates/jrails/jquery.ui/eggplant.sass +85 -0
  349. data/templates/jrails/jquery.ui/eggplant/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  350. data/templates/jrails/jquery.ui/eggplant/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  351. data/templates/jrails/jquery.ui/eggplant/ui-bg_flat_55_994d53_40x100.png +0 -0
  352. data/templates/jrails/jquery.ui/eggplant/ui-bg_flat_55_fafafa_40x100.png +0 -0
  353. data/templates/jrails/jquery.ui/eggplant/ui-bg_gloss-wave_30_3d3644_500x100.png +0 -0
  354. data/templates/jrails/jquery.ui/eggplant/ui-bg_highlight-soft_100_dcd9de_1x100.png +0 -0
  355. data/templates/jrails/jquery.ui/eggplant/ui-bg_highlight-soft_100_eae6ea_1x100.png +0 -0
  356. data/templates/jrails/jquery.ui/eggplant/ui-bg_highlight-soft_25_30273a_1x100.png +0 -0
  357. data/templates/jrails/jquery.ui/eggplant/ui-bg_highlight-soft_45_5f5964_1x100.png +0 -0
  358. data/templates/jrails/jquery.ui/eggplant/ui-icons_454545_256x240.png +0 -0
  359. data/templates/jrails/jquery.ui/eggplant/ui-icons_734d99_256x240.png +0 -0
  360. data/templates/jrails/jquery.ui/eggplant/ui-icons_8d78a5_256x240.png +0 -0
  361. data/templates/jrails/jquery.ui/eggplant/ui-icons_a8a3ae_256x240.png +0 -0
  362. data/templates/jrails/jquery.ui/eggplant/ui-icons_ebccce_256x240.png +0 -0
  363. data/templates/jrails/jquery.ui/eggplant/ui-icons_ffffff_256x240.png +0 -0
  364. data/templates/jrails/jquery.ui/excite-bike.sass +85 -0
  365. data/templates/jrails/jquery.ui/excite-bike/ui-bg_diagonals-small_25_c5ddfc_40x40.png +0 -0
  366. data/templates/jrails/jquery.ui/excite-bike/ui-bg_diagonals-thick_20_e69700_40x40.png +0 -0
  367. data/templates/jrails/jquery.ui/excite-bike/ui-bg_diagonals-thick_22_1484e6_40x40.png +0 -0
  368. data/templates/jrails/jquery.ui/excite-bike/ui-bg_diagonals-thick_26_2293f7_40x40.png +0 -0
  369. data/templates/jrails/jquery.ui/excite-bike/ui-bg_flat_0_e69700_40x100.png +0 -0
  370. data/templates/jrails/jquery.ui/excite-bike/ui-bg_flat_0_e6b900_40x100.png +0 -0
  371. data/templates/jrails/jquery.ui/excite-bike/ui-bg_highlight-soft_100_f9f9f9_1x100.png +0 -0
  372. data/templates/jrails/jquery.ui/excite-bike/ui-bg_inset-hard_100_eeeeee_1x100.png +0 -0
  373. data/templates/jrails/jquery.ui/excite-bike/ui-icons_0a82eb_256x240.png +0 -0
  374. data/templates/jrails/jquery.ui/excite-bike/ui-icons_0b54d5_256x240.png +0 -0
  375. data/templates/jrails/jquery.ui/excite-bike/ui-icons_5fa5e3_256x240.png +0 -0
  376. data/templates/jrails/jquery.ui/excite-bike/ui-icons_fcdd4a_256x240.png +0 -0
  377. data/templates/jrails/jquery.ui/excite-bike/ui-icons_ffffff_256x240.png +0 -0
  378. data/templates/jrails/jquery.ui/flick.sass +85 -0
  379. data/templates/jrails/jquery.ui/flick/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  380. data/templates/jrails/jquery.ui/flick/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  381. data/templates/jrails/jquery.ui/flick/ui-bg_flat_55_ffffff_40x100.png +0 -0
  382. data/templates/jrails/jquery.ui/flick/ui-bg_flat_75_ffffff_40x100.png +0 -0
  383. data/templates/jrails/jquery.ui/flick/ui-bg_glass_65_ffffff_1x400.png +0 -0
  384. data/templates/jrails/jquery.ui/flick/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
  385. data/templates/jrails/jquery.ui/flick/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
  386. data/templates/jrails/jquery.ui/flick/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
  387. data/templates/jrails/jquery.ui/flick/ui-icons_0073ea_256x240.png +0 -0
  388. data/templates/jrails/jquery.ui/flick/ui-icons_454545_256x240.png +0 -0
  389. data/templates/jrails/jquery.ui/flick/ui-icons_666666_256x240.png +0 -0
  390. data/templates/jrails/jquery.ui/flick/ui-icons_ff0084_256x240.png +0 -0
  391. data/templates/jrails/jquery.ui/flick/ui-icons_ffffff_256x240.png +0 -0
  392. data/templates/jrails/jquery.ui/hot-sneaks.sass +85 -0
  393. data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_diagonals-small_40_db4865_40x40.png +0 -0
  394. data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_diagonals-small_50_93c3cd_40x40.png +0 -0
  395. data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_diagonals-small_50_ff3853_40x40.png +0 -0
  396. data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_diagonals-small_75_ccd232_40x40.png +0 -0
  397. data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_dots-medium_80_ffff38_4x4.png +0 -0
  398. data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_dots-small_35_35414f_2x2.png +0 -0
  399. data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_flat_75_ba9217_40x100.png +0 -0
  400. data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_flat_75_ffffff_40x100.png +0 -0
  401. data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_white-lines_85_f7f7ba_40x100.png +0 -0
  402. data/templates/jrails/jquery.ui/hot-sneaks/ui-icons_454545_256x240.png +0 -0
  403. data/templates/jrails/jquery.ui/hot-sneaks/ui-icons_88a206_256x240.png +0 -0
  404. data/templates/jrails/jquery.ui/hot-sneaks/ui-icons_c02669_256x240.png +0 -0
  405. data/templates/jrails/jquery.ui/hot-sneaks/ui-icons_e1e463_256x240.png +0 -0
  406. data/templates/jrails/jquery.ui/hot-sneaks/ui-icons_ffeb33_256x240.png +0 -0
  407. data/templates/jrails/jquery.ui/hot-sneaks/ui-icons_ffffff_256x240.png +0 -0
  408. data/templates/jrails/jquery.ui/humanity.sass +85 -0
  409. data/templates/jrails/jquery.ui/humanity/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
  410. data/templates/jrails/jquery.ui/humanity/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
  411. data/templates/jrails/jquery.ui/humanity/ui-bg_glass_25_cb842e_1x400.png +0 -0
  412. data/templates/jrails/jquery.ui/humanity/ui-bg_glass_70_ede4d4_1x400.png +0 -0
  413. data/templates/jrails/jquery.ui/humanity/ui-bg_highlight-hard_100_f4f0ec_1x100.png +0 -0
  414. data/templates/jrails/jquery.ui/humanity/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  415. data/templates/jrails/jquery.ui/humanity/ui-bg_highlight-hard_75_f5f5b5_1x100.png +0 -0
  416. data/templates/jrails/jquery.ui/humanity/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
  417. data/templates/jrails/jquery.ui/humanity/ui-icons_c47a23_256x240.png +0 -0
  418. data/templates/jrails/jquery.ui/humanity/ui-icons_cb672b_256x240.png +0 -0
  419. data/templates/jrails/jquery.ui/humanity/ui-icons_f08000_256x240.png +0 -0
  420. data/templates/jrails/jquery.ui/humanity/ui-icons_f35f07_256x240.png +0 -0
  421. data/templates/jrails/jquery.ui/humanity/ui-icons_ff7519_256x240.png +0 -0
  422. data/templates/jrails/jquery.ui/humanity/ui-icons_ffffff_256x240.png +0 -0
  423. data/templates/jrails/jquery.ui/le-frog.sass +85 -0
  424. data/templates/jrails/jquery.ui/le-frog/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
  425. data/templates/jrails/jquery.ui/le-frog/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
  426. data/templates/jrails/jquery.ui/le-frog/ui-bg_diagonals-thick_95_ffdc2e_40x40.png +0 -0
  427. data/templates/jrails/jquery.ui/le-frog/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
  428. data/templates/jrails/jquery.ui/le-frog/ui-bg_highlight-hard_30_285c00_1x100.png +0 -0
  429. data/templates/jrails/jquery.ui/le-frog/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
  430. data/templates/jrails/jquery.ui/le-frog/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
  431. data/templates/jrails/jquery.ui/le-frog/ui-bg_highlight-soft_60_4ca20b_1x100.png +0 -0
  432. data/templates/jrails/jquery.ui/le-frog/ui-bg_inset-soft_10_285c00_1x100.png +0 -0
  433. data/templates/jrails/jquery.ui/le-frog/ui-icons_4eb305_256x240.png +0 -0
  434. data/templates/jrails/jquery.ui/le-frog/ui-icons_72b42d_256x240.png +0 -0
  435. data/templates/jrails/jquery.ui/le-frog/ui-icons_cd0a0a_256x240.png +0 -0
  436. data/templates/jrails/jquery.ui/le-frog/ui-icons_ffffff_256x240.png +0 -0
  437. data/templates/jrails/jquery.ui/mint-choc.sass +85 -0
  438. data/templates/jrails/jquery.ui/mint-choc/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  439. data/templates/jrails/jquery.ui/mint-choc/ui-bg_glass_15_5f391b_1x400.png +0 -0
  440. data/templates/jrails/jquery.ui/mint-choc/ui-bg_gloss-wave_20_1c160d_500x100.png +0 -0
  441. data/templates/jrails/jquery.ui/mint-choc/ui-bg_gloss-wave_25_453326_500x100.png +0 -0
  442. data/templates/jrails/jquery.ui/mint-choc/ui-bg_gloss-wave_30_44372c_500x100.png +0 -0
  443. data/templates/jrails/jquery.ui/mint-choc/ui-bg_highlight-soft_20_201913_1x100.png +0 -0
  444. data/templates/jrails/jquery.ui/mint-choc/ui-bg_highlight-soft_20_619226_1x100.png +0 -0
  445. data/templates/jrails/jquery.ui/mint-choc/ui-bg_inset-soft_10_201913_1x100.png +0 -0
  446. data/templates/jrails/jquery.ui/mint-choc/ui-icons_222222_256x240.png +0 -0
  447. data/templates/jrails/jquery.ui/mint-choc/ui-icons_9bcc60_256x240.png +0 -0
  448. data/templates/jrails/jquery.ui/mint-choc/ui-icons_add978_256x240.png +0 -0
  449. data/templates/jrails/jquery.ui/mint-choc/ui-icons_e3ddc9_256x240.png +0 -0
  450. data/templates/jrails/jquery.ui/mint-choc/ui-icons_f1fd86_256x240.png +0 -0
  451. data/templates/jrails/jquery.ui/mint-choc/ui-icons_ffffff_256x240.png +0 -0
  452. data/templates/jrails/jquery.ui/overcast.sass +85 -0
  453. data/templates/jrails/jquery.ui/overcast/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  454. data/templates/jrails/jquery.ui/overcast/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  455. data/templates/jrails/jquery.ui/overcast/ui-bg_flat_55_c0402a_40x100.png +0 -0
  456. data/templates/jrails/jquery.ui/overcast/ui-bg_flat_55_eeeeee_40x100.png +0 -0
  457. data/templates/jrails/jquery.ui/overcast/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
  458. data/templates/jrails/jquery.ui/overcast/ui-bg_glass_35_dddddd_1x400.png +0 -0
  459. data/templates/jrails/jquery.ui/overcast/ui-bg_glass_60_eeeeee_1x400.png +0 -0
  460. data/templates/jrails/jquery.ui/overcast/ui-bg_inset-hard_75_999999_1x100.png +0 -0
  461. data/templates/jrails/jquery.ui/overcast/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
  462. data/templates/jrails/jquery.ui/overcast/ui-icons_3383bb_256x240.png +0 -0
  463. data/templates/jrails/jquery.ui/overcast/ui-icons_454545_256x240.png +0 -0
  464. data/templates/jrails/jquery.ui/overcast/ui-icons_70b2e1_256x240.png +0 -0
  465. data/templates/jrails/jquery.ui/overcast/ui-icons_999999_256x240.png +0 -0
  466. data/templates/jrails/jquery.ui/overcast/ui-icons_fbc856_256x240.png +0 -0
  467. data/templates/jrails/jquery.ui/pepper-grinder.sass +85 -0
  468. data/templates/jrails/jquery.ui/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png +0 -0
  469. data/templates/jrails/jquery.ui/pepper-grinder/ui-bg_diagonal-maze_40_000000_10x10.png +0 -0
  470. data/templates/jrails/jquery.ui/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png +0 -0
  471. data/templates/jrails/jquery.ui/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png +0 -0
  472. data/templates/jrails/jquery.ui/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png +0 -0
  473. data/templates/jrails/jquery.ui/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png +0 -0
  474. data/templates/jrails/jquery.ui/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png +0 -0
  475. data/templates/jrails/jquery.ui/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
  476. data/templates/jrails/jquery.ui/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png +0 -0
  477. data/templates/jrails/jquery.ui/pepper-grinder/ui-icons_222222_256x240.png +0 -0
  478. data/templates/jrails/jquery.ui/pepper-grinder/ui-icons_3572ac_256x240.png +0 -0
  479. data/templates/jrails/jquery.ui/pepper-grinder/ui-icons_8c291d_256x240.png +0 -0
  480. data/templates/jrails/jquery.ui/pepper-grinder/ui-icons_b83400_256x240.png +0 -0
  481. data/templates/jrails/jquery.ui/pepper-grinder/ui-icons_fbdb93_256x240.png +0 -0
  482. data/templates/jrails/jquery.ui/pepper-grinder/ui-icons_ffffff_256x240.png +0 -0
  483. data/templates/jrails/jquery.ui/redmond.sass +85 -0
  484. data/templates/jrails/jquery.ui/redmond/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  485. data/templates/jrails/jquery.ui/redmond/ui-bg_flat_55_fbec88_40x100.png +0 -0
  486. data/templates/jrails/jquery.ui/redmond/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  487. data/templates/jrails/jquery.ui/redmond/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  488. data/templates/jrails/jquery.ui/redmond/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  489. data/templates/jrails/jquery.ui/redmond/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  490. data/templates/jrails/jquery.ui/redmond/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  491. data/templates/jrails/jquery.ui/redmond/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  492. data/templates/jrails/jquery.ui/redmond/ui-icons_217bc0_256x240.png +0 -0
  493. data/templates/jrails/jquery.ui/redmond/ui-icons_2e83ff_256x240.png +0 -0
  494. data/templates/jrails/jquery.ui/redmond/ui-icons_469bdd_256x240.png +0 -0
  495. data/templates/jrails/jquery.ui/redmond/ui-icons_6da8d5_256x240.png +0 -0
  496. data/templates/jrails/jquery.ui/redmond/ui-icons_cd0a0a_256x240.png +0 -0
  497. data/templates/jrails/jquery.ui/redmond/ui-icons_d8e7f3_256x240.png +0 -0
  498. data/templates/jrails/jquery.ui/redmond/ui-icons_f9bd01_256x240.png +0 -0
  499. data/templates/jrails/jquery.ui/smoothness.sass +85 -0
  500. data/templates/jrails/jquery.ui/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  501. data/templates/jrails/jquery.ui/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
  502. data/templates/jrails/jquery.ui/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  503. data/templates/jrails/jquery.ui/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
  504. data/templates/jrails/jquery.ui/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
  505. data/templates/jrails/jquery.ui/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  506. data/templates/jrails/jquery.ui/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  507. data/templates/jrails/jquery.ui/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  508. data/templates/jrails/jquery.ui/smoothness/ui-icons_222222_256x240.png +0 -0
  509. data/templates/jrails/jquery.ui/smoothness/ui-icons_2e83ff_256x240.png +0 -0
  510. data/templates/jrails/jquery.ui/smoothness/ui-icons_454545_256x240.png +0 -0
  511. data/templates/jrails/jquery.ui/smoothness/ui-icons_888888_256x240.png +0 -0
  512. data/templates/jrails/jquery.ui/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
  513. data/templates/jrails/jquery.ui/south-street.sass +85 -0
  514. data/templates/jrails/jquery.ui/south-street/ui-bg_glass_55_fcf0ba_1x400.png +0 -0
  515. data/templates/jrails/jquery.ui/south-street/ui-bg_gloss-wave_100_ece8da_500x100.png +0 -0
  516. data/templates/jrails/jquery.ui/south-street/ui-bg_highlight-hard_100_f5f3e5_1x100.png +0 -0
  517. data/templates/jrails/jquery.ui/south-street/ui-bg_highlight-hard_100_fafaf4_1x100.png +0 -0
  518. data/templates/jrails/jquery.ui/south-street/ui-bg_highlight-hard_15_459e00_1x100.png +0 -0
  519. data/templates/jrails/jquery.ui/south-street/ui-bg_highlight-hard_95_cccccc_1x100.png +0 -0
  520. data/templates/jrails/jquery.ui/south-street/ui-bg_highlight-soft_25_67b021_1x100.png +0 -0
  521. data/templates/jrails/jquery.ui/south-street/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
  522. data/templates/jrails/jquery.ui/south-street/ui-bg_inset-soft_15_2b2922_1x100.png +0 -0
  523. data/templates/jrails/jquery.ui/south-street/ui-icons_808080_256x240.png +0 -0
  524. data/templates/jrails/jquery.ui/south-street/ui-icons_847e71_256x240.png +0 -0
  525. data/templates/jrails/jquery.ui/south-street/ui-icons_8DC262_256x240.png +0 -0
  526. data/templates/jrails/jquery.ui/south-street/ui-icons_cd0a0a_256x240.png +0 -0
  527. data/templates/jrails/jquery.ui/south-street/ui-icons_eeeeee_256x240.png +0 -0
  528. data/templates/jrails/jquery.ui/south-street/ui-icons_ffffff_256x240.png +0 -0
  529. data/templates/jrails/jquery.ui/sunny.sass +85 -0
  530. data/templates/jrails/jquery.ui/sunny/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
  531. data/templates/jrails/jquery.ui/sunny/ui-bg_flat_30_cccccc_40x100.png +0 -0
  532. data/templates/jrails/jquery.ui/sunny/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  533. data/templates/jrails/jquery.ui/sunny/ui-bg_gloss-wave_45_817865_500x100.png +0 -0
  534. data/templates/jrails/jquery.ui/sunny/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
  535. data/templates/jrails/jquery.ui/sunny/ui-bg_gloss-wave_70_ffdd57_500x100.png +0 -0
  536. data/templates/jrails/jquery.ui/sunny/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
  537. data/templates/jrails/jquery.ui/sunny/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
  538. data/templates/jrails/jquery.ui/sunny/ui-bg_inset-soft_30_ffffff_1x100.png +0 -0
  539. data/templates/jrails/jquery.ui/sunny/ui-icons_3d3d3d_256x240.png +0 -0
  540. data/templates/jrails/jquery.ui/sunny/ui-icons_bd7b00_256x240.png +0 -0
  541. data/templates/jrails/jquery.ui/sunny/ui-icons_d19405_256x240.png +0 -0
  542. data/templates/jrails/jquery.ui/sunny/ui-icons_eb990f_256x240.png +0 -0
  543. data/templates/jrails/jquery.ui/sunny/ui-icons_ed9f26_256x240.png +0 -0
  544. data/templates/jrails/jquery.ui/sunny/ui-icons_fadc7a_256x240.png +0 -0
  545. data/templates/jrails/jquery.ui/sunny/ui-icons_ffe180_256x240.png +0 -0
  546. data/templates/jrails/jquery.ui/swanky-purse.sass +85 -0
  547. data/templates/jrails/jquery.ui/swanky-purse/ui-bg_diamond_10_4f4221_10x8.png +0 -0
  548. data/templates/jrails/jquery.ui/swanky-purse/ui-bg_diamond_20_372806_10x8.png +0 -0
  549. data/templates/jrails/jquery.ui/swanky-purse/ui-bg_diamond_25_675423_10x8.png +0 -0
  550. data/templates/jrails/jquery.ui/swanky-purse/ui-bg_diamond_25_d5ac5d_10x8.png +0 -0
  551. data/templates/jrails/jquery.ui/swanky-purse/ui-bg_diamond_8_261803_10x8.png +0 -0
  552. data/templates/jrails/jquery.ui/swanky-purse/ui-bg_diamond_8_443113_10x8.png +0 -0
  553. data/templates/jrails/jquery.ui/swanky-purse/ui-bg_flat_75_ddd4b0_40x100.png +0 -0
  554. data/templates/jrails/jquery.ui/swanky-purse/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  555. data/templates/jrails/jquery.ui/swanky-purse/ui-icons_070603_256x240.png +0 -0
  556. data/templates/jrails/jquery.ui/swanky-purse/ui-icons_e8e2b5_256x240.png +0 -0
  557. data/templates/jrails/jquery.ui/swanky-purse/ui-icons_e9cd86_256x240.png +0 -0
  558. data/templates/jrails/jquery.ui/swanky-purse/ui-icons_efec9f_256x240.png +0 -0
  559. data/templates/jrails/jquery.ui/swanky-purse/ui-icons_f2ec64_256x240.png +0 -0
  560. data/templates/jrails/jquery.ui/swanky-purse/ui-icons_f9f2bd_256x240.png +0 -0
  561. data/templates/jrails/jquery.ui/swanky-purse/ui-icons_ff7519_256x240.png +0 -0
  562. data/templates/jrails/jquery.ui/trontastic.sass +85 -0
  563. data/templates/jrails/jquery.ui/trontastic/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
  564. data/templates/jrails/jquery.ui/trontastic/ui-bg_flat_0_303030_40x100.png +0 -0
  565. data/templates/jrails/jquery.ui/trontastic/ui-bg_flat_0_4c4c4c_40x100.png +0 -0
  566. data/templates/jrails/jquery.ui/trontastic/ui-bg_glass_40_0a0a0a_1x400.png +0 -0
  567. data/templates/jrails/jquery.ui/trontastic/ui-bg_glass_55_f1fbe5_1x400.png +0 -0
  568. data/templates/jrails/jquery.ui/trontastic/ui-bg_glass_60_000000_1x400.png +0 -0
  569. data/templates/jrails/jquery.ui/trontastic/ui-bg_gloss-wave_55_000000_500x100.png +0 -0
  570. data/templates/jrails/jquery.ui/trontastic/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
  571. data/templates/jrails/jquery.ui/trontastic/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
  572. data/templates/jrails/jquery.ui/trontastic/ui-icons_000000_256x240.png +0 -0
  573. data/templates/jrails/jquery.ui/trontastic/ui-icons_1f1f1f_256x240.png +0 -0
  574. data/templates/jrails/jquery.ui/trontastic/ui-icons_9fda58_256x240.png +0 -0
  575. data/templates/jrails/jquery.ui/trontastic/ui-icons_b8ec79_256x240.png +0 -0
  576. data/templates/jrails/jquery.ui/trontastic/ui-icons_cd0a0a_256x240.png +0 -0
  577. data/templates/jrails/jquery.ui/trontastic/ui-icons_ffffff_256x240.png +0 -0
  578. data/templates/jrails/jquery.ui/ui-darkness.sass +85 -0
  579. data/templates/jrails/jquery.ui/ui-darkness/ui-bg_flat_30_cccccc_40x100.png +0 -0
  580. data/templates/jrails/jquery.ui/ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  581. data/templates/jrails/jquery.ui/ui-darkness/ui-bg_glass_20_555555_1x400.png +0 -0
  582. data/templates/jrails/jquery.ui/ui-darkness/ui-bg_glass_40_0078a3_1x400.png +0 -0
  583. data/templates/jrails/jquery.ui/ui-darkness/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  584. data/templates/jrails/jquery.ui/ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  585. data/templates/jrails/jquery.ui/ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  586. data/templates/jrails/jquery.ui/ui-darkness/ui-bg_inset-soft_25_000000_1x100.png +0 -0
  587. data/templates/jrails/jquery.ui/ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
  588. data/templates/jrails/jquery.ui/ui-darkness/ui-icons_222222_256x240.png +0 -0
  589. data/templates/jrails/jquery.ui/ui-darkness/ui-icons_4b8e0b_256x240.png +0 -0
  590. data/templates/jrails/jquery.ui/ui-darkness/ui-icons_a83300_256x240.png +0 -0
  591. data/templates/jrails/jquery.ui/ui-darkness/ui-icons_cccccc_256x240.png +0 -0
  592. data/templates/jrails/jquery.ui/ui-darkness/ui-icons_ffffff_256x240.png +0 -0
  593. data/templates/jrails/jquery.ui/ui-lightness.sass +85 -0
  594. data/templates/jrails/jquery.ui/ui-lightness/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  595. data/templates/jrails/jquery.ui/ui-lightness/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  596. data/templates/jrails/jquery.ui/ui-lightness/ui-bg_flat_10_000000_40x100.png +0 -0
  597. data/templates/jrails/jquery.ui/ui-lightness/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  598. data/templates/jrails/jquery.ui/ui-lightness/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  599. data/templates/jrails/jquery.ui/ui-lightness/ui-bg_glass_65_ffffff_1x400.png +0 -0
  600. data/templates/jrails/jquery.ui/ui-lightness/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  601. data/templates/jrails/jquery.ui/ui-lightness/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  602. data/templates/jrails/jquery.ui/ui-lightness/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  603. data/templates/jrails/jquery.ui/ui-lightness/ui-icons_222222_256x240.png +0 -0
  604. data/templates/jrails/jquery.ui/ui-lightness/ui-icons_228ef1_256x240.png +0 -0
  605. data/templates/jrails/jquery.ui/ui-lightness/ui-icons_ef8c08_256x240.png +0 -0
  606. data/templates/jrails/jquery.ui/ui-lightness/ui-icons_ffd27a_256x240.png +0 -0
  607. data/templates/jrails/jquery.ui/ui-lightness/ui-icons_ffffff_256x240.png +0 -0
  608. data/templates/jrails/jquery.ui/vader.sass +85 -0
  609. data/templates/jrails/jquery.ui/vader/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  610. data/templates/jrails/jquery.ui/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  611. data/templates/jrails/jquery.ui/vader/ui-bg_gloss-wave_16_121212_500x100.png +0 -0
  612. data/templates/jrails/jquery.ui/vader/ui-bg_highlight-hard_15_888888_1x100.png +0 -0
  613. data/templates/jrails/jquery.ui/vader/ui-bg_highlight-hard_55_555555_1x100.png +0 -0
  614. data/templates/jrails/jquery.ui/vader/ui-bg_highlight-soft_35_adadad_1x100.png +0 -0
  615. data/templates/jrails/jquery.ui/vader/ui-bg_highlight-soft_60_dddddd_1x100.png +0 -0
  616. data/templates/jrails/jquery.ui/vader/ui-bg_inset-soft_15_121212_1x100.png +0 -0
  617. data/templates/jrails/jquery.ui/vader/ui-icons_666666_256x240.png +0 -0
  618. data/templates/jrails/jquery.ui/vader/ui-icons_aaaaaa_256x240.png +0 -0
  619. data/templates/jrails/jquery.ui/vader/ui-icons_bbbbbb_256x240.png +0 -0
  620. data/templates/jrails/jquery.ui/vader/ui-icons_c98000_256x240.png +0 -0
  621. data/templates/jrails/jquery.ui/vader/ui-icons_cccccc_256x240.png +0 -0
  622. data/templates/jrails/jquery.ui/vader/ui-icons_cd0a0a_256x240.png +0 -0
  623. data/templates/jrails/jquery.ui/vader/ui-icons_f29a00_256x240.png +0 -0
  624. data/templates/jrails/jrails.js +197 -0
  625. data/templates/jrails/jrails.min.js +1 -0
  626. data/templates/jrails/manifest.rb +119 -0
  627. data/templates/secret_sauce/app/views/ui/_ui_form_error_messages.html.haml +6 -0
  628. data/templates/secret_sauce/app/views/ui/_ui_grid_for_without_block.html.erb +139 -0
  629. data/templates/secret_sauce/app/views/ui/_ui_static_dialog.html.haml +6 -0
  630. data/templates/secret_sauce/config/initializers/secret_sauce.rb +8 -0
  631. data/templates/secret_sauce/jquery.ui/secret_sauce.sass +32 -0
  632. data/templates/secret_sauce/manifest.rb +10 -0
  633. data/templates/secret_sauce/secret_sauce.js +12 -0
  634. data/templates/secret_sauce/secret_sauce.min.js +1 -0
  635. metadata +750 -0
@@ -0,0 +1,10 @@
1
+ module SecretSauce#:nodoc:
2
+ end
3
+
4
+ require 'jquery/secret_sauce/controller/ui_dialog_controls'
5
+ require 'jquery/secret_sauce/controller/ui_grid_controls'
6
+ require 'jquery/secret_sauce/helpers/ui_dialog_helper'
7
+ require 'jquery/secret_sauce/helpers/ui_form_helper'
8
+ require 'jquery/secret_sauce/helpers/ui_grid_helper'
9
+ require 'jquery/secret_sauce/helpers/ui_theme_helper'
10
+ require 'jquery/secret_sauce/model/find_for_grid'
@@ -0,0 +1,14 @@
1
+ module ActionController
2
+ class Base
3
+
4
+ def render_close_dialog(dialog_id)
5
+ render :js => close_dialog
6
+ end
7
+
8
+ private
9
+
10
+ def close_dialog(dialog_id)
11
+ "$('##{dialog_id}').dialog('close');"
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,18 @@
1
+ module ActionController
2
+ class Base
3
+
4
+ def render_refresh_grid
5
+ render :js => refresh_grid("#{params[:controller]}_table")
6
+ end
7
+
8
+ def render_close_dialog_and_refresh_grid
9
+ render :js => close_dialog("#{params["controller"]}_#{params["action"]}_dialog")+refresh_grid("#{params[:controller]}_table")
10
+ end
11
+
12
+ private
13
+
14
+ def refresh_grid(grid_id)
15
+ "$('##{grid_id}').trigger('reloadGrid');"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,6 @@
1
+ module SecretSauce
2
+ module Helpers
3
+ module UiDialogHelper
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,118 @@
1
+ module SecretSauce
2
+ module Helpers
3
+ module UiFormHelper
4
+ class UiFormBuilder < ActionView::Helpers::FormBuilder
5
+
6
+ def submit(value, options={})
7
+ options = {:id => "#{object_name}_submit"}.merge(options)
8
+ @template.instance_variable_set("@ui_form_submit", [value, options])
9
+ nil
10
+ end
11
+
12
+ def error_messages
13
+ @template.error_messages_for(object_name)
14
+ end
15
+ end
16
+
17
+ # renders a jquery-ui templated static dialog box (cannot be resized or moved, appears on base z-index)
18
+ # to be used for things like forms
19
+ def ui_static_dialog(options={}, &block)
20
+ body = capture(&block)
21
+ concat(ui_static_dialog_tags(options))
22
+ body
23
+ concat(%q{
24
+ </div>
25
+ </div>
26
+ </div>
27
+ })
28
+ end
29
+
30
+ # flat tags for static dialog
31
+ def ui_static_dialog_tags(options={})
32
+ options[:width] = 100 unless options[:width]
33
+ options[:height] = 100 unless options[:height]
34
+ options[:title] = "Dialog" unless options[:title]
35
+ options[:parent] = '' unless options[:parent]
36
+ options[:style] = "width: #{options[:width]}px;"
37
+ if options[:center]
38
+ options[:parent] = "width: 100%;"
39
+ options[:style] << " margin-left: auto; margin-right: auto;"
40
+ end
41
+ render :partial => 'ui/ui_static_dialog', :locals => options
42
+ end
43
+
44
+ # builds a form within a ui_static_dialog using UiFormBuilder in this case we are using a
45
+ # custom version of form_for instead of the original to wrap jquery-ui components inside
46
+ # of the form
47
+ def ui_form_for(record_or_name_or_array, *args, &proc)
48
+ raise ArgumentError, "Missing block" unless block_given?
49
+
50
+ if params[:layout] == "dialog"
51
+ return form_for(record_or_name_or_array, *args, &proc)
52
+ else
53
+ options = args.extract_options!
54
+ options[:builder] = UiFormBuilder
55
+
56
+ if !options[:submit]
57
+ options[:submit] = {:value => "Save Changes", :options => {}}
58
+ else
59
+ options[:submit][:value] = "Save Changes" if !options[:submit][:value]
60
+ options[:submit][:options] = {} if !options[:submit][:options]
61
+ end
62
+
63
+ case record_or_name_or_array
64
+ when String, Symbol
65
+ object_name = record_or_name_or_array
66
+ when Array
67
+ object = record_or_name_or_array.last
68
+ object_name = ActionController::RecordIdentifier.singular_class_name(object)
69
+ apply_form_for_options!(record_or_name_or_array, options)
70
+ args.unshift object
71
+ else
72
+ object = record_or_name_or_array
73
+ object_name = ActionController::RecordIdentifier.singular_class_name(object)
74
+ apply_form_for_options!([object], options)
75
+ args.unshift object
76
+ end
77
+ concat("<div id='#{object_name}_form_container'>")
78
+ concat(form_tag(options.delete(:url) || {}, options.delete(:html) || {}))
79
+ concat(ui_static_dialog_tags(options[:dialog_options]))
80
+ fields_for(object_name, *(args << options), &proc)
81
+ concat(%Q{
82
+ </div>
83
+ <div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
84
+ #{ui_submit_tag(@ui_form_submit[0], @ui_form_submit[1]) if @ui_form_submit}
85
+ </div>
86
+ </div>
87
+ </div>
88
+ </form>
89
+ </div>})
90
+ end
91
+ end
92
+
93
+ # render a button pane
94
+ def ui_button_pane(&block)
95
+ body = capture(&block)
96
+ concat("<div class='ui-dialog-buttonpane ui-widget-content ui-helper-clearfix'>")
97
+ body
98
+ concat("</div>")
99
+ end
100
+
101
+ # render a submit tag themed with jquery ui
102
+ def ui_submit_tag(value = "Save changes", options = {})
103
+ if options[:class]
104
+ options[:class] << " ui-state-default ui-corner-all"
105
+ else
106
+ options[:class] = "ui-state-default ui-corner-all"
107
+ end
108
+ submit_tag(value, options)
109
+ end
110
+
111
+ def error_messages_for(*params)
112
+ render :partial => "ui/ui_form_error_messages", :locals => {:messages => super(*params) }
113
+ end
114
+ end
115
+ end
116
+ end
117
+
118
+
@@ -0,0 +1,219 @@
1
+ module SecretSauce
2
+ module Helpers
3
+ # This module wraps the great jqGrid plugin for jQuery and jQuery UI (http://www.trirand.com/blog).
4
+ module UiGridHelper
5
+ # Renders a table using jqGrid[http://www.trirand.com/blog]. This method can be used for quickly
6
+ # 'scaffolding' a model resource. It accepts arguments similiar to form_for. The first argument
7
+ # must be either Symbol, or an Array. If a Symbol, it should be the name of the resource to build
8
+ # the grid for.
9
+ # == Parameters
10
+ # Most of the documentation for the parameters are pulled from the jqGrid documentation found here:
11
+ # http://www.secondpersonplural.ca/jqgriddocs/index.htm
12
+ # * <tt>:alternate_rows -</tt> Set a zebra-striped grid. Default is set to false.
13
+ # * <tt>:caption -</tt> Defines the caption for the grid. This caption appear above the
14
+ # table header. If caption is nil, no caption will be referenced. By default the
15
+ # caption will be guessed from the <tt>name_or_array</tt> arguement.
16
+ # * <tt>:cell_edit -</tt> Enables (disables) cell editing.
17
+ # See CellEditing[http://www.secondpersonplural.ca/jqgriddocs/_2h30tykyb.htm] for more details.
18
+ # * <tt>:cell_submit -</tt> Determines where the contents of the cell are saved: 'remote' or 'clientArray'.
19
+ # See CellEditing[http://www.secondpersonplural.ca/jqgriddocs/_2h30tykyb.htm] for more details.
20
+ # * <tt>:cell_url -</tt> The url where the cell is to be saved.
21
+ # See CellEditing[http://www.secondpersonplural.ca/jqgriddocs/_2h30tykyb.htm] for more details.
22
+ # * <tt>:column_model -</tt> Array which describes the parameters of the columns.
23
+ # For a full description of all valid values see
24
+ # colModel[http://www.secondpersonplural.ca/jqgriddocs/_2eb0fihps.htm]. By default column_model
25
+ # is set for ActiveRecord::Base#find_for_grid.
26
+ # * <tt>:column_names -</tt> Array which describes the column labels in the grid.
27
+ # * <tt>:datastring -</tt> The string of data when datatype parameter is set to xmlstring or jsonstring.
28
+ # * <tt>:datatype -</tt> Defines what type of information to expect to represent data in the grid.
29
+ # Valid options are xml - we expect xml data; xmlstring - we expect xml data as string;
30
+ # json - we expect JSON data; jsonstring - we expect JSON data as string;
31
+ # clientSide - we expect data defined at client side (array data)
32
+ # * <tt>:deselect_after_sort -</tt> Applicable only when we use <tt>datatype => "clientSide"</tt>.
33
+ # Deselects currently-selected row(s) when a sort is applied.
34
+ # * <tt>:edit_url -</tt> Defines the url for inline and form editing.
35
+ # * <tt>:expand_column -</tt> Indicates which column (name from <tt>:column_model</tt>)
36
+ # should be used to expand the tree grid. If not set the first one is used. Valid only when
37
+ # treeGrid option is set to true.
38
+ # * <tt>:force_fit -</tt>If set to true, and resizing the width of a column,
39
+ # the adjacent column (to the right) will resize so that the overall grid width is
40
+ # maintained (e.g., reducing the width of column 2 by 30px will increase the size of column 3 by
41
+ # 30px). In this case there is no horizontal scrolbar. Note: this option is not compatible with
42
+ # <tt>shrink_to_fit</tt> option - i.e if <tt>:shrink_to_fit</tt> is set to false,
43
+ # <tt>:force_fit</tt> is ignored.
44
+ # * <tt>:grid_state -</tt> Determines the current state of the grid (i.e. when used with hiddengrid,
45
+ # <tt>:hide_grid</tt> and caption options). Can have either of two states: 'visible' or 'hidden'
46
+ # * <tt>:hidden_grid -</tt> If set to true the grid initially is hidden. The data is not
47
+ # loaded (no request is sent) and only the caption layer is shown. When the show/hide
48
+ # button is clicked the first time to show grid, the request is sent to the server,
49
+ # the data is loaded, and grid is shown. From this point we have a regular grid. This option
50
+ # has effect only if the caption property is not empty and the <tt>:hide_grid</tt> property (see below)
51
+ # is set to true.
52
+ # * <tt>:hide_grid -</tt> Enables or disables the show/hide grid button, which appears on the right side
53
+ # of the Caption layer. Takes effect only if the caption property is not an empty string.
54
+ # * <tt>:height -</tt> The height of the grid. Can be set as percentage or any valid measured value.
55
+ # * <tt>:image_path -</tt>Defines the path to the images that are used in the grid. Set this option
56
+ # without / at end.
57
+ # * <tt>:json_reader -</tt> Array which describes the structure of the expected json data. For a full
58
+ # description and default setting, see JSONData[http://www.secondpersonplural.ca/jqgriddocs/_2eb0f6jhe.htm].
59
+ # * <tt>:load_once -</tt> If this flag is set to true, the grid loads the data from the server
60
+ # only once (using the appropriate datatype). After the first request the <tt>:data_type</tt> parameter is
61
+ # automatically changed to clientSide and all further manipulations are done on the client side.
62
+ # The functions of the pager (if present) are disabled.
63
+ # * <tt>:load_text -</tt> The text which appear when requesting and sorting data.
64
+ # * <tt>:load_ui -</tt> This option controls what to do when an ajax operation is in progress.
65
+ # * disable - disables the jqGrid progress indicator. This way you can use your own indicator.
66
+ # * enable (default) - enables the red "Loading" message in the upper left of the grid.
67
+ # * block - enables the progress indicator using the characteristics you have specified in the
68
+ # css for div.loadingui and blocks all actions in the grid until the ajax request is finished.
69
+ # Note that this disables paging, sorting and all actions on toolbar, if any.
70
+ # * <tt>:request_type -</tt> Defines the type of request to make ("POST" or "GET").
71
+ # * <tt>:multikey -</tt> This parameter have sense only multiselect option is set to true.
72
+ # Defines the key which will be pressed when we make multiselection. The possible values are:
73
+ # shiftKey - the user should press Shift Key altKey - the user should press
74
+ # Alt Key ctrlKey - the user should press Ctrl Key.
75
+ # * <tt>:multibox -</tt> This option works only when <tt>:multiselect => true</tt>.
76
+ # When multiselect is set to true, clicking anywhere on a row selects that row;
77
+ # when multiboxonly is also set to true, the row is selected only when the checkbox
78
+ # is clicked (Yahoo style).
79
+ # * <tt>:multiselect -</tt> If this flag is set to true a multi selection of rows is enabled.
80
+ # A new column at left side is added. Can be used with any datatype option.
81
+ # * <tt>:param_keys -</tt> Customizes names of the fields sent to the server on a Post:
82
+ # default values for these fields are "page", "rows", "sidx", and "sord".
83
+ # For example, with this setting, you can change the sort order element from "sidx" to "mysort":
84
+ # The string that will be posted to the server will then be
85
+ # /foo/bars?page=1&rows=10&mysort=myindex&sord=asc rather than
86
+ # /foo/bars?page=1&rows=10&sidx=myindex&sord=asc.
87
+ # * <tt>:post_data -</tt> This array is passed directly to the url. This is associative
88
+ # array and can be used this way: {name1:value1...}.
89
+ # * <tt>:resize_class -</tt> Assigns a class to columns that are resizable so that we can show
90
+ # a resize handle only for ones that are resizable.
91
+ # * <tt>:scroll -</tt> Creates dynamic scrolling grids. When enabled, the pager elements are
92
+ # disabled and we can use the vertical scrollbar to load data. This option currently should be
93
+ # used carefully on big data sets, since the swapper isn't that intelligent, which means that
94
+ # all the data is loaded and a lot of memory will be used if the dataset is large.
95
+ # You must be sure to have a initial vertical scroll in grid, i.e. the height
96
+ # should not be set to auto.
97
+ # * <tt>:scroll_rows -</tt> When enabled, selecting a row with setSelection scrolls the grid so
98
+ # that the selected row is visible. This is especially useful when we have a verticall
99
+ # scrolling grid and we use form editing with navigation buttons (next or previous row).
100
+ # On navigating to a hidden row, the grid scrolls so the selected row becomes visible.
101
+ # * <tt>:sort_class -</tt> The class to be applied to the currently sorted column, i.e. applied
102
+ # to the th element.
103
+ # * <tt>:shrink_to_fit -</tt> This option describes the type of calculation of the initial width of
104
+ # each column against with the width of the grid. If the value is true and the value in width
105
+ # option is set then: Every column width is scaled according to the defined option width.
106
+ # Example: if we define two columns with a width of 80 and 120 pixels, but want the grid to
107
+ # have a 300 pixels - then the columns are recalculated as
108
+ # follows: 1- column = 300(new width)/200(sum of all width)*80(column width) = 120 and 2 column =
109
+ # 300/200*120 = 180. The grid width is 300px. If the value is false and the value in width option is set
110
+ # then: The width of the grid is the width set in option. The column width are not recalculated and have the
111
+ # values defined in colModel.
112
+ # * <tt>:sort_asc_image -</tt> Links to image url which are used when the user sort a column.
113
+ # * <tt>:sort_desc_image -</tt> Links to image url which are used when the user sort a column.
114
+ # * <tt>:sort_name -</tt> The initial sorting name when we use datatypes xml or json
115
+ # (data returned from server).
116
+ # * <tt>:sort_order -</tt> The initial sorting order when we use datatypes xml
117
+ # or json (data returned from server).
118
+ # * <tt>:toolbar -</tt> This option defines the toolbar of the grid. This is array with two
119
+ # values in which the first value enables the toolbar and the second defines the position
120
+ # relative to body Layer. Possible values "top" or "bottom".
121
+ # * <tt>:tree_grid -</tt> Enables (disables) the tree grid format. For more details see
122
+ # TreeGrid[http://www.secondpersonplural.ca/jqgriddocs/_2h30rxa7u.htm]
123
+ # * <tt>:user_data -</tt> This array contain custom information from the request. Can be used at any time.
124
+ # * <tt>:width -</tt> If this option is not set, the width of the grid is a sum of the widths of the
125
+ # columns defined in the colModel (in pixels). If this option is set, the initial width of each
126
+ # column is set according to the value of <tt>:shrink_to_fit</tt> option.
127
+ # * <tt>:xml_reader -</tt> Array which describes the structure of the expected xml data.
128
+ # For a full description refer to Data Types.
129
+ def ui_grid_for(*args)
130
+ name_or_array = args.first
131
+ options = args.extract_options!
132
+ option_map = {
133
+ :alternate_rows => "altRows", # bool
134
+ :caption => "caption", # string
135
+ :cell_edit => "cellEdit", # bool
136
+ :cell_submit => "cellSubmit", # string
137
+ :cell_url => "cellUrl", # string
138
+ :column_model => "colModel", # array
139
+ :column_names => "colNames", # array
140
+ :datastring => "dataStr", # string
141
+ :datatype => "datatype", # string
142
+ :deslect_after_sort => "deselectAfterSort", # bool
143
+ :edit_url => "editUrl", # string
144
+ :expand_column => "ExpandColumn", # string
145
+ :footer_row => "footerrow", # bool TODO: ADD DOCUMENTATION
146
+ :force_fit => "forceFit", # bool
147
+ :grid_state => "gridstate", # string
148
+ :hidden_grid => "hiddengrid", # bool
149
+ :hide_grid => "hidegrid", # bool
150
+ :height => "height", # string
151
+ :image_path => "imgpath", # string
152
+ :json_reader => "jsonReader", # array
153
+ :load_complete => "loadComplete", # string TODO: ADD DOCUMENTATION
154
+ :load_once => "loadonce", # bool
155
+ :load_text => "load_text", # string
156
+ :load_ui => "loadui", # string
157
+ :request_method => "mtype", # string
158
+ :multikey => "multikey", # string
159
+ :multibox => "multiboxonly", # bool
160
+ :multiselect => "multiselect", # bool
161
+ :pager => "pager", # string TODO: ADD DOCUMENATION
162
+ :param_keys => "prmnames", # array
163
+ :post_data => "postData", # array
164
+ :resize_class => "resizeclass", # string
165
+ :row_num => "rowNum", # integer TODO: ADD DOCUMENATION
166
+ :row_list => "rowList", # array TODO: ADD DOCUMENATION
167
+ :scroll => "scroll", # bool
168
+ :scroll_rows => "scrollrows", # bool
169
+ :sort_class => "sortclass", # string
170
+ :shrink_to_fit => "shrinkToFit", # bool
171
+ :sort_asc_image => "sortascimg", # string
172
+ :sort_desc_image => "sortdescimg", # string
173
+ :sort_name => "sortname", # string
174
+ :sort_order => "sortorder", # string
175
+ :toolbar => "toolbar", # array
176
+ :tree_grid => "treeGrid", # bool
177
+ :user_data => "userData", # array
178
+ :url => "url", # string TODO: ADD DOCUMENATION
179
+ :view_records => "viewrecords", # bool TODO: ADD DOCUMENTATION
180
+ :width => "width", # string
181
+ :xml_reader => "xmlReader", # array
182
+ }
183
+ if name_or_array.class == Symbol
184
+ options[:grid] = {} unless options[:grid]
185
+ options[:nav] = {} unless options[:nav]
186
+ options[:actions] = {} unless options[:actions]
187
+ column_model = name_or_array.to_s.singularize.classify.constantize.new.attributes.keys.collect do |m|
188
+ {:name => m, :index => m, :label => m.titleize, :width => (1024 / name_or_array.to_s.singularize.classify.constantize.new.attributes.length)}
189
+ end
190
+ grid_options = {
191
+ :url => "/#{name_or_array}.json",
192
+ :alternate_rows => true,
193
+ :caption => "#{name_or_array}".titleize,
194
+ :column_model => column_model,
195
+ :datatype => "json",
196
+ :json_reader => {:repeatitems => false},
197
+ :height => 22 * 30,
198
+ :row_num => 20,
199
+ :row_list => [10, 20, 30],
200
+ :pager => "#{name_or_array}_pager",
201
+ :hide_grid => false,
202
+ :view_records => true,
203
+ }
204
+ grid_options.merge!(options[:grid])
205
+ mapped_options = {}
206
+ grid_options.each do |k,v|
207
+ mapped_options[option_map[k]] = v
208
+ end
209
+ options[:nav].replace({
210
+ :edit => false,
211
+ :add => false,
212
+ :del => false
213
+ }.merge(options[:nav]))
214
+ render :partial => 'ui/ui_grid_for_without_block', :locals => {:options => mapped_options, :name => name_or_array, :nav => options[:nav], :actions => options[:actions]}
215
+ end
216
+ end
217
+ end
218
+ end
219
+ end
@@ -0,0 +1,16 @@
1
+ module SecretSauce
2
+ module Helpers
3
+ # This module provides methods specific for working with jQueryUI themes.
4
+ module UiThemeHelper
5
+ # Renders a stylesheet tag linking to the named theme. It will look first in the application
6
+ # directory (/stylesheets/themes), after which it will pull the theme from jQueryUI directly.
7
+ def ui_theme(theme)
8
+ if File.exists?("#{RAILS_ROOT}/public/stylesheets/compiled/jquery.ui.#{theme}")
9
+ return stylesheet_link_tag("compiled/jquery.ui.#{theme}")
10
+ else
11
+ return stylesheet_link_tag("http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/#{theme}/jquery-ui.css")
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,45 @@
1
+ module ActiveRecord
2
+ class Base
3
+
4
+ # takes params from request and returns records serialized to json. handles the majority of the functionality
5
+ # for searching, sorting, and serializing records to be consumed by jqGrid.
6
+ def self.find_for_grid(params)
7
+ search_options = {:limit => params["rows"]}
8
+ search_options[:offset] = (params["page"].to_i * params["rows"].to_i) - params["rows"].to_i
9
+ search_options[:order] = "#{params['sidx']} #{params['sord']}" if params["sidx"] != ""
10
+ if params["_search"] == "true"
11
+ string_search_operations = {
12
+ "eq" => "=",
13
+ "ne" => "<>",
14
+ "bw" => "LIKE",
15
+ "bn" => "NOT LIKE",
16
+ "ew" => "LIKE",
17
+ "en" => "NOT LIKE",
18
+ "cn" => "LIKE",
19
+ "nc" => "NOT LIKE"
20
+ }
21
+ integer_search_operations = {
22
+ "eq" => "=",
23
+ "ne" => "<>",
24
+ "lt" => "<",
25
+ "le" => "<=",
26
+ "gt" => ">",
27
+ "ge" => ">="
28
+ }
29
+ if [:text, :string].include?(self.columns.select {|c| c.name == params["searchField"]}.first.type) && string_search_operations.keys.include?(params["searchOper"])
30
+ search_options[:conditions] = "#{params["searchField"]} "
31
+ search_options[:conditions] << "#{string_search_operations[params["searchOper"]]}"
32
+ search_options[:conditions] << "'#{"%" if ["ew", "en", "cn", "nc"].include?(params["searchOper"])}#{params["searchString"]}#{"%" if ["nc", "cn", "bn", "bw"].include?(params["searchOper"])}'"
33
+ elsif [:integer].include?(self.columns.select {|c| c.name == params["searchField"]}.first.type) && integer_search_operations.keys.include?(params["searchOper"])
34
+ search_options[:conditions] = "#{params["searchField"]} #{integer_search_operations[params["searchOper"]]} #{params["searchString"]}"
35
+ end
36
+ end
37
+ count = self.count(:all, :conditions => search_options[:conditions]).to_f
38
+ # raise count.inspect
39
+ array = self.find(:all, search_options).collect {|r| r.attributes }
40
+ {:total => (count / params["rows"].to_f).ceil, :page => params["page"], :records => count, :rows => array }.to_json
41
+ end
42
+
43
+
44
+ end
45
+ end