rules_engine 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. data/VERSION +1 -1
  2. data/app/views/re_history/_index_update.html.erb +7 -5
  3. data/app/views/re_history/_show.html.erb +1 -1
  4. data/app/views/re_plans/_change.html.erb +1 -1
  5. data/app/views/re_plans/_index.html.erb +1 -1
  6. data/app/views/re_plans/_show.html.erb +1 -1
  7. data/app/views/re_publications/_show_update.html.erb +6 -5
  8. data/generators/manifests/templates/public/stylesheets/rules_engine/rules_engine.css +12 -4
  9. data/generators/manifests/templates/public/stylesheets/rules_engine/screen.css +7 -1
  10. data/lib/rules_engine/cache.rb +1 -1
  11. data/lib/rules_engine/discovery.rb +1 -1
  12. data/spec/lib/rules_engine/cache_spec.rb +2 -4
  13. data/spec/rails_3_0_0_root/Gemfile +1 -1
  14. data/spec/rails_3_0_0_root/Gemfile.lock +18 -16
  15. data/spec/rails_3_0_0_root/config/initializers/rules_engine.rb +17 -0
  16. data/spec/rails_3_0_0_root/db/migrate/20100308225008_create_rules_engine.rb +100 -0
  17. data/spec/rails_3_0_0_root/doc/README.rules_engine +170 -0
  18. data/spec/rails_3_0_0_root/doc/README.rules_engine_view +97 -0
  19. data/spec/rails_3_0_0_root/log/test.log +22192 -0
  20. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/jquery-1.4.2.min.js +154 -0
  21. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/jquery.autocomplete.pack.js +13 -0
  22. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/jquery.blockUI.js +486 -0
  23. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/jquery.fancybox-1.3.1.js +1077 -0
  24. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_history_index.js +43 -0
  25. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_history_show.js +18 -0
  26. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_plan_change.js +117 -0
  27. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_plan_new.js +23 -0
  28. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_plan_preview.js +18 -0
  29. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_publication_show.js +39 -0
  30. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_view.js +148 -0
  31. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_add.js +115 -0
  32. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_change.js +204 -0
  33. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_new.js +23 -0
  34. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_plan.js +38 -0
  35. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_preview.js +18 -0
  36. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_show.js +22 -0
  37. data/spec/rails_3_0_0_root/public/stylesheets/application.css +1 -0
  38. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/ie.css +35 -0
  39. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/buttons/icons/cross.png +0 -0
  40. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/buttons/icons/key.png +0 -0
  41. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/buttons/icons/tick.png +0 -0
  42. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/buttons/readme.txt +32 -0
  43. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/buttons/screen.css +97 -0
  44. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/fancy-type/readme.txt +14 -0
  45. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/fancy-type/screen.css +71 -0
  46. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/doc.png +0 -0
  47. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/email.png +0 -0
  48. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/external.png +0 -0
  49. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/feed.png +0 -0
  50. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/im.png +0 -0
  51. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  52. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/visited.png +0 -0
  53. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/xls.png +0 -0
  54. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/readme.txt +18 -0
  55. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/screen.css +40 -0
  56. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/rtl/readme.txt +10 -0
  57. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/rtl/screen.css +110 -0
  58. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/print.css +29 -0
  59. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/screen.css +258 -0
  60. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/forms.css +65 -0
  61. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/grid.css +280 -0
  62. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/grid.png +0 -0
  63. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/ie.css +76 -0
  64. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/print.css +85 -0
  65. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/reset.css +45 -0
  66. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/typography.css +106 -0
  67. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/blank.gif +0 -0
  68. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_close.png +0 -0
  69. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_loading.png +0 -0
  70. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_nav_left.png +0 -0
  71. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_nav_right.png +0 -0
  72. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_e.png +0 -0
  73. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_n.png +0 -0
  74. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_ne.png +0 -0
  75. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_nw.png +0 -0
  76. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_s.png +0 -0
  77. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_se.png +0 -0
  78. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_sw.png +0 -0
  79. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_w.png +0 -0
  80. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_title_left.png +0 -0
  81. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_title_main.png +0 -0
  82. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_title_over.png +0 -0
  83. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_title_right.png +0 -0
  84. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancybox-x.png +0 -0
  85. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancybox-y.png +0 -0
  86. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancybox.png +0 -0
  87. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/jquery.fancybox-1.3.1.css +363 -0
  88. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_box/shadowbox.png +0 -0
  89. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_box/whitebox.jpg +0 -0
  90. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/checked-off.gif +0 -0
  91. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/checked-on.gif +0 -0
  92. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/icon-add.png +0 -0
  93. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/icon-delete.png +0 -0
  94. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/list-add.png +0 -0
  95. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/list-remove.png +0 -0
  96. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/list-select.png +0 -0
  97. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-blue-left.gif +0 -0
  98. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-blue-right.gif +0 -0
  99. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-gray-left.gif +0 -0
  100. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-gray-right.gif +0 -0
  101. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-green-left.gif +0 -0
  102. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-green-right.gif +0 -0
  103. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-orange-left.gif +0 -0
  104. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-orange-right.gif +0 -0
  105. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-red-left.gif +0 -0
  106. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-red-right.gif +0 -0
  107. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_error/re-alert-close.png +0 -0
  108. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_navigate/breadcrumb.png +0 -0
  109. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/list-next-disabled-14.png +0 -0
  110. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/list-next-enabled-14.png +0 -0
  111. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/list-prev-disabled-14.png +0 -0
  112. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/list-prev-enabled-14.png +0 -0
  113. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/loading.gif +0 -0
  114. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-changed-18.png +0 -0
  115. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-changed-25.png +0 -0
  116. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-draft-18.png +0 -0
  117. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-draft-25.png +0 -0
  118. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-error-14.png +0 -0
  119. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-info-14.png +0 -0
  120. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-published-18.png +0 -0
  121. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-published-25.png +0 -0
  122. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-success-14.png +0 -0
  123. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-valid-14.png +0 -0
  124. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-valid-18.png +0 -0
  125. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-verify-14.png +0 -0
  126. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-verify-18.png +0 -0
  127. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-verify-25.png +0 -0
  128. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_history/error-14.png +0 -0
  129. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_history/info-14.png +0 -0
  130. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_history/list-25.png +0 -0
  131. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_history/success-14.png +0 -0
  132. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/alert-25.png +0 -0
  133. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/change-25.png +0 -0
  134. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/copy-25.png +0 -0
  135. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/delete-25.png +0 -0
  136. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/edit-25.png +0 -0
  137. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/list-25.png +0 -0
  138. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/new-25.png +0 -0
  139. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/preview-18.png +0 -0
  140. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/publish-25.png +0 -0
  141. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/revert-25.png +0 -0
  142. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/show-25.png +0 -0
  143. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/title-plural.png +0 -0
  144. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/title-single.png +0 -0
  145. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_publication/show-25.png +0 -0
  146. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/add-14.png +0 -0
  147. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/alert-25.png +0 -0
  148. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/destroy-25.png +0 -0
  149. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/edit-25.png +0 -0
  150. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/error-25.png +0 -0
  151. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/help-14.png +0 -0
  152. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/help-25.png +0 -0
  153. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/icon-ad-25.png +0 -0
  154. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/move-down-25.png +0 -0
  155. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/move-down-off-25.png +0 -0
  156. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/move-up-25.png +0 -0
  157. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/move-up-off-25.png +0 -0
  158. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/new-25.png +0 -0
  159. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/next-down-25.png +0 -0
  160. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/next-right-18.png +0 -0
  161. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/show-25.png +0 -0
  162. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/start-pipeline-18.png +0 -0
  163. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/stop-failure-18.png +0 -0
  164. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/stop-success-18.png +0 -0
  165. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/title-plural.png +0 -0
  166. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/title-single.png +0 -0
  167. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/add-14.png +0 -0
  168. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/add-25.png +0 -0
  169. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/add-off-14.png +0 -0
  170. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/alert-25.png +0 -0
  171. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/change-18.png +0 -0
  172. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/change-25.png +0 -0
  173. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/copy-25.png +0 -0
  174. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/delete-25.png +0 -0
  175. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/edit-25.png +0 -0
  176. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/is-default-18.png +0 -0
  177. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/list-25.png +0 -0
  178. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/make-default-18.png +0 -0
  179. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/make-default-off-18.png +0 -0
  180. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/new-25.png +0 -0
  181. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/plan-25.png +0 -0
  182. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/preview-18.png +0 -0
  183. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/remove-18.png +0 -0
  184. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/show-18.png +0 -0
  185. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/show-25.png +0 -0
  186. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/title-plural.png +0 -0
  187. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/title-single.png +0 -0
  188. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/jquery.autocomplete.css +53 -0
  189. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/rules_engine.css +899 -0
  190. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/screen.css +738 -0
  191. data/tasks/rspec.rake +1 -0
  192. metadata +183 -8
@@ -0,0 +1,204 @@
1
+ re_workflow_action_confirm = function(id, title, action) {
2
+ $('#re_workflow_action_title').html(title);
3
+ $('#re_workflow_action_content_code').html($('#re_workflow_code').html());
4
+ $('#re_workflow_action_content_title').html($('#re_workflow_title').html());
5
+
6
+ $('#re_workflow_action_ok').attr('href', '#re_workflow_' + id + '_form');
7
+ $('#re_workflow_action_ok').html("<span>" + action + "</span>")
8
+
9
+ $.fancybox({ href: '#re_workflow_action_confirm'});
10
+ }
11
+
12
+ $(document).ready(function() {
13
+
14
+ $('a#re_workflow_copy').live('click', function() {
15
+ var values = $(this).attr('href').replace('#', '').split('|');
16
+
17
+ $.re_block();
18
+ if (parseInt(values[0]) == 0)
19
+ $.get('/re_workflows/' + values[1] + '/copy', null, null, 'script');
20
+ else
21
+ $.get('/re_plans/' + values[0] + '/workflows/' + values[1] + '/copy', null, null, 'script');
22
+ return false;
23
+ });
24
+
25
+ $("#re_workflow_copy_cancel").live('click', function() {
26
+ $.fancybox.close();
27
+ return false;
28
+ });
29
+
30
+ $('#re_workflow_copy_duplicate').live('click', function() {
31
+ $.re_block();
32
+ $.post($('#re_workflow_copy_form').attr('action'), $('#re_workflow_copy_form').serialize(), null, 'script');
33
+ return false;
34
+ });
35
+
36
+ $('a#re_workflow_edit').live('click', function() {
37
+ var values = $(this).attr('href').replace('#', '').split('|');
38
+
39
+ $.re_block();
40
+ if (parseInt(values[0]) == 0)
41
+ $.get('/re_workflows/' + values[1] + '/edit', null, null, 'script');
42
+ else
43
+ $.get('/re_plans/' + values[0] + '/workflows/' + values[1] + '/edit', null, null, 'script');
44
+ return false;
45
+ });
46
+
47
+ $("#re_workflow_edit_cancel").live('click', function() {
48
+ $.fancybox.close();
49
+ return false;
50
+ });
51
+
52
+ $('#re_workflow_edit_update').live('click', function() {
53
+ $.re_block();
54
+ $.post($('#re_workflow_edit_form').attr('action'), $('#re_workflow_edit_form').serialize(), null, 'script');
55
+ return false;
56
+ });
57
+
58
+ $('a#re_workflow_delete').live('click', function() {
59
+ re_workflow_action_confirm('delete', "Delete the Workflow", "Delete Workflow")
60
+ return false;
61
+ });
62
+
63
+ $("#re_workflow_action_cancel").live('click', function() {
64
+ $.fancybox.close();
65
+ return false;
66
+ });
67
+
68
+ $('#re_workflow_action_ok').live('click', function() {
69
+ var form_id = $(this).attr('href');
70
+
71
+ $.re_block();
72
+ $.post($(form_id).attr('action'), $(form_id).serialize(), null, 'script');
73
+ return false;
74
+ });
75
+
76
+ // NEW RULE
77
+ $('a.re-menu-rule-new').live('click', function() {
78
+ var values = $(this).attr('href').replace('#', '').split('|');
79
+
80
+ $.re_block();
81
+ if (parseInt(values[0]) == 0)
82
+ $.get('/re_workflows/' + values[1] + '/rules/new?rule_class_name=' + values[2], null, null, 'script');
83
+ else
84
+ $.get('/re_plans/' + values[0] + '/workflows/' + values[1] + '/rules/new?rule_class_name=' + values[2], null, null, 'script');
85
+
86
+ return false;
87
+ });
88
+
89
+ $("#re_rule_new_cancel").live('click', function() {
90
+ $.fancybox.close();
91
+ return false;
92
+ });
93
+
94
+ $('#re_rule_new_insert').live('click', function() {
95
+ $.re_block();
96
+ $.post($('#re_rule_new_form').attr('action'), $('#re_rule_new_form').serialize(), null, 'script');
97
+ return false;
98
+ });
99
+
100
+ // RULE HELP
101
+ $('a.re-menu-rule-help').live('click', function() {
102
+ var values = $(this).attr('href').replace('#', '').split('|');
103
+
104
+ $.re_block();
105
+ if (parseInt(values[0]) == 0)
106
+ $.get('/re_workflows/' + values[1] + '/rules/help?rule_class_name=' + values[2], null, null, 'script');
107
+ else
108
+ $.get('/re_plans/' + values[0] + '/workflows/' + values[1] + '/rules/help?rule_class_name=' + values[2], null, null, 'script');
109
+
110
+ return false;
111
+ });
112
+
113
+ $("#re_rule_help_cancel").live('click', function() {
114
+ $.fancybox.close();
115
+ return false;
116
+ });
117
+
118
+ // RULE EDIT
119
+ $('a.re-list-rule-edit').live('click', function() {
120
+ var values = $(this).attr('href').replace('#', '').split('|');
121
+
122
+ $.re_block();
123
+ if (parseInt(values[0]) == 0)
124
+ $.get('/re_workflows/' + values[1] + '/rules/' + values[2] + '/edit', null, null, 'script');
125
+ else
126
+ $.get('/re_plans/' + values[0] + '/workflows/' + values[1] + '/rules/' + values[2] + '/edit', null, null, 'script');
127
+
128
+ return false;
129
+ });
130
+
131
+ $("#re_rule_edit_cancel").live('click', function() {
132
+ $.fancybox.close();
133
+ return false;
134
+ });
135
+
136
+ $('#re_rule_edit_update').live('click', function() {
137
+ $.re_block();
138
+ $.post($('#re_rule_edit_form').attr('action'), $('#re_rule_edit_form').serialize(), null, 'script');
139
+ return false;
140
+ });
141
+
142
+ // RULE DELETE
143
+ $('a.re-list-rule-delete').live('click', function() {
144
+ var values = $(this).attr('href').replace('#', '').split('|');
145
+
146
+ $('#re_rule_delete_ok').attr('href', '#re_rule_delete_form_' + values[2])
147
+ $.fancybox({ 'href': '#re_rule_delete_confirm' });
148
+ return false;
149
+ });
150
+
151
+ $("#re_rule_delete_cancel").live('click', function() {
152
+ $.fancybox.close();
153
+ return false;
154
+ });
155
+
156
+ $('#re_rule_delete_ok').live('click', function() {
157
+ var form_id = $(this).attr('href');
158
+
159
+ $.re_block();
160
+ $.post($(form_id).attr('action'), $(form_id).serialize(), null, 'script');
161
+ return false;
162
+ });
163
+
164
+ // RULE MOVE
165
+ $('a.re-list-rule-move-up').live('click', function() {
166
+ var values = $(this).attr('href').replace('#', '').split('|');
167
+
168
+ $.re_block();
169
+ $(this).removeClass('re-list-rule-move-up');
170
+ $(this).addClass('re-list-rule-move-up-off');
171
+
172
+ $.post($('#re_rule_move_up_form_' + values[2]).attr('action'), $('#re_rule_move_up_form_' + values[2]).serialize(), null, 'script');
173
+ return false;
174
+ });
175
+
176
+ $('a.re-list-rule-move-up-off').live('click', function() {return false;});
177
+
178
+ $('a.re-list-rule-move-down').live('click', function() {
179
+ var values = $(this).attr('href').replace('#', '').split('|');
180
+
181
+ $.re_block();
182
+ $(this).removeClass('re-list-rule-move-down');
183
+ $(this).addClass('re-list-rule-move-down-off');
184
+
185
+ $.post($('#re_rule_move_down_form_' + values[2]).attr('action'), $('#re_rule_move_down_form_' + values[2]).serialize(), null, 'script');
186
+ return false;
187
+ });
188
+
189
+ $('a.re-list-rule-move-down-off').live('click', function() {return false;});
190
+
191
+ // RULE GROUPS
192
+ $('select#re_rule_class_list').live('change', function() {
193
+ var name = $("select#re_rule_class_list option:selected").val().replace(" ", "_")
194
+ $('.re-xtra-rule-list').each(function() {
195
+ $(this).slideUp('slow');
196
+ })
197
+ $('#re_rule_class_name_' + name).slideDown('slow');
198
+
199
+ return false;
200
+ });
201
+
202
+ });
203
+
204
+
@@ -0,0 +1,23 @@
1
+ $(document).ready(function() {
2
+
3
+ $('a#re_workflow_new').live('click', function() {
4
+ $.re_block();
5
+ $.get('/re_workflows/new', null, null, 'script');
6
+ return false;
7
+ });
8
+
9
+
10
+ $("#re_workflow_new_cancel").live('click', function() {
11
+ $.fancybox.close();
12
+ return false;
13
+ });
14
+
15
+ $('#re_workflow_new_insert').live('click', function() {
16
+ $.re_block();
17
+ $.post($('#re_workflow_new_form').attr('action'), $('#re_workflow_new_form').serialize(), null, 'script');
18
+
19
+ return false;
20
+ });
21
+ });
22
+
23
+
@@ -0,0 +1,38 @@
1
+ $(document).ready(function() {
2
+
3
+ get_workflow_plan = function(page) {
4
+ var id = $('.re-menu-workflow-plan:first').attr('id').replace('re_menu_workflow_plan_', '')
5
+ $.get('/re_workflows/' + id + '/plan?page=' + page, null, null, 'script');
6
+ }
7
+
8
+ get_workflow_plan(1);
9
+
10
+ $('.re-xtra-workflow-next-enabled').live('click', function() {
11
+ var page = $(this).attr('href').replace('#', '')
12
+
13
+ $('#re_workflow_plan').hide();
14
+ $('#re_workflow_plan_pending').show();
15
+
16
+ get_workflow_plan(page);
17
+ return false;
18
+ });
19
+ $('.re-xtra-workflow-next-disabled').live('click', function() {
20
+ return false;
21
+ });
22
+
23
+ $('.re-xtra-workflow-prev-enabled').live('click', function() {
24
+ var page = $(this).attr('href').replace('#', '')
25
+
26
+ $('#re_workflow_plan').hide();
27
+ $('#re_workflow_plan_pending').show();
28
+
29
+ get_workflow_plan(page);
30
+ return false;
31
+ });
32
+ $('.re-xtra-workflow-prev-disabled').live('click', function() {
33
+ return false;
34
+ });
35
+
36
+ });
37
+
38
+
@@ -0,0 +1,18 @@
1
+ $(document).ready(function() {
2
+
3
+ $('a.re-xtra-workflow-preview').live('click', function() {
4
+ var id = $(this).attr('href').replace('#', '')
5
+
6
+ $.re_block();
7
+ $.get('/re_workflows/' + id + '/preview', null, null, 'script');
8
+ return false;
9
+ });
10
+
11
+ $("#re_workflow_preview_close").live('click', function() {
12
+ $.fancybox.close();
13
+ return false;
14
+ });
15
+
16
+ });
17
+
18
+
@@ -0,0 +1,22 @@
1
+ $(document).ready(function() {
2
+
3
+ $('a.re-list-rule-help').live('click', function() {
4
+ var values = $(this).attr('href').replace('#', '').split('|');
5
+
6
+ $.re_block();
7
+ if (parseInt(values[0]) == 0)
8
+ $.get('/re_workflows/' + values[1] + '/rules/help?rule_class_name=' + values[2], null, null, 'script');
9
+ else
10
+ $.get('/re_plans/' + values[0] + '/workflows/' + values[1] + '/rules/help?rule_class_name=' + values[2], null, null, 'script');
11
+
12
+ return false;
13
+ });
14
+
15
+ $("#re_rule_help_cancel").live('click', function() {
16
+ $.fancybox.close();
17
+ return false;
18
+ });
19
+
20
+ });
21
+
22
+
@@ -0,0 +1,35 @@
1
+ /* -----------------------------------------------------------------------
2
+
3
+
4
+ Blueprint CSS Framework 0.9
5
+ http://blueprintcss.org
6
+
7
+ * Copyright (c) 2007-Present. See LICENSE for more info.
8
+ * See README for instructions on how to use Blueprint.
9
+ * For credits and origins, see AUTHORS.
10
+ * This is a compressed file. See the sources in the 'src' directory.
11
+
12
+ ----------------------------------------------------------------------- */
13
+
14
+ /* ie.css */
15
+ body {text-align:center;}
16
+ .container {text-align:left;}
17
+ * html .column, * html .span-1, * html .span-2, * html .span-3, * html .span-4, * html .span-5, * html .span-6, * html .span-7, * html .span-8, * html .span-9, * html .span-10, * html .span-11, * html .span-12, * html .span-13, * html .span-14, * html .span-15, * html .span-16, * html .span-17, * html .span-18, * html .span-19, * html .span-20, * html .span-21, * html .span-22, * html .span-23, * html .span-24 {display:inline;overflow-x:hidden;}
18
+ * html legend {margin:0px -8px 16px 0;padding:0;}
19
+ sup {vertical-align:text-top;}
20
+ sub {vertical-align:text-bottom;}
21
+ html>body p code {*white-space:normal;}
22
+ hr {margin:-8px auto 11px;}
23
+ img {-ms-interpolation-mode:bicubic;}
24
+ .clearfix, .container {display:inline-block;}
25
+ * html .clearfix, * html .container {height:1%;}
26
+ fieldset {padding-top:0;}
27
+ textarea {overflow:auto;}
28
+ input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;}
29
+ input.text:focus, input.title:focus {border-color:#666;}
30
+ input.text, input.title, textarea, select {margin:0.5em 0;}
31
+ input.checkbox, input.radio {position:relative;top:.25em;}
32
+ form.inline div, form.inline p {vertical-align:middle;}
33
+ form.inline label {position:relative;top:-0.25em;}
34
+ form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;}
35
+ button, input.button {position:relative;top:0.25em;}
@@ -0,0 +1,32 @@
1
+ Buttons
2
+
3
+ * Gives you great looking CSS buttons, for both <a> and <button>.
4
+ * Demo: particletree.com/features/rediscovering-the-button-element
5
+
6
+
7
+ Credits
8
+ ----------------------------------------------------------------
9
+
10
+ * Created by Kevin Hale [particletree.com]
11
+ * Adapted for Blueprint by Olav Bjorkoy [bjorkoy.com]
12
+
13
+
14
+ Usage
15
+ ----------------------------------------------------------------
16
+
17
+ 1) Add this plugin to lib/settings.yml.
18
+ See compress.rb for instructions.
19
+
20
+ 2) Use the following HTML code to place the buttons on your site:
21
+
22
+ <button type="submit" class="button positive">
23
+ <img src="css/blueprint/plugins/buttons/icons/tick.png" alt=""/> Save
24
+ </button>
25
+
26
+ <a class="button" href="/password/reset/">
27
+ <img src="css/blueprint/plugins/buttons/icons/key.png" alt=""/> Change Password
28
+ </a>
29
+
30
+ <a href="#" class="button negative">
31
+ <img src="css/blueprint/plugins/buttons/icons/cross.png" alt=""/> Cancel
32
+ </a>
@@ -0,0 +1,97 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ buttons.css
4
+ * Gives you some great CSS-only buttons.
5
+
6
+ Created by Kevin Hale [particletree.com]
7
+ * particletree.com/features/rediscovering-the-button-element
8
+
9
+ See Readme.txt in this folder for instructions.
10
+
11
+ -------------------------------------------------------------- */
12
+
13
+ a.button, button {
14
+ display:block;
15
+ float:left;
16
+ margin: 0.7em 0.5em 0.7em 0;
17
+ padding:5px 10px 5px 7px; /* Links */
18
+
19
+ border:1px solid #dedede;
20
+ border-top:1px solid #eee;
21
+ border-left:1px solid #eee;
22
+
23
+ background-color:#f5f5f5;
24
+ font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
25
+ font-size:100%;
26
+ line-height:130%;
27
+ text-decoration:none;
28
+ font-weight:bold;
29
+ color:#565656;
30
+ cursor:pointer;
31
+ }
32
+ button {
33
+ width:auto;
34
+ overflow:visible;
35
+ padding:4px 10px 3px 7px; /* IE6 */
36
+ }
37
+ button[type] {
38
+ padding:4px 10px 4px 7px; /* Firefox */
39
+ line-height:17px; /* Safari */
40
+ }
41
+ *:first-child+html button[type] {
42
+ padding:4px 10px 3px 7px; /* IE7 */
43
+ }
44
+ button img, a.button img{
45
+ margin:0 3px -3px 0 !important;
46
+ padding:0;
47
+ border:none;
48
+ width:16px;
49
+ height:16px;
50
+ float:none;
51
+ }
52
+
53
+
54
+ /* Button colors
55
+ -------------------------------------------------------------- */
56
+
57
+ /* Standard */
58
+ button:hover, a.button:hover{
59
+ background-color:#dff4ff;
60
+ border:1px solid #c2e1ef;
61
+ color:#336699;
62
+ }
63
+ a.button:active{
64
+ background-color:#6299c5;
65
+ border:1px solid #6299c5;
66
+ color:#fff;
67
+ }
68
+
69
+ /* Positive */
70
+ body .positive {
71
+ color:#529214;
72
+ }
73
+ a.positive:hover, button.positive:hover {
74
+ background-color:#E6EFC2;
75
+ border:1px solid #C6D880;
76
+ color:#529214;
77
+ }
78
+ a.positive:active {
79
+ background-color:#529214;
80
+ border:1px solid #529214;
81
+ color:#fff;
82
+ }
83
+
84
+ /* Negative */
85
+ body .negative {
86
+ color:#d12f19;
87
+ }
88
+ a.negative:hover, button.negative:hover {
89
+ background-color:#fbe3e4;
90
+ border:1px solid #fbc2c4;
91
+ color:#d12f19;
92
+ }
93
+ a.negative:active {
94
+ background-color:#d12f19;
95
+ border:1px solid #d12f19;
96
+ color:#fff;
97
+ }