Browse files

add salesforce-Sencha demo

  • Loading branch information...
1 parent 0944b95 commit b428642b3065764f9541a1b9a5c3144c6be143a5 Brian Moore committed Dec 10, 2010
Showing with 51,239 additions and 0 deletions.
  1. +28 −0 SalesForce-Sencha/Rakefile
  2. +34 −0 SalesForce-Sencha/app/Saccount/edit.bb.erb
  3. +37 −0 SalesForce-Sencha/app/Saccount/edit.erb
  4. +21 −0 SalesForce-Sencha/app/Saccount/index.bb.erb
  5. +26 −0 SalesForce-Sencha/app/Saccount/index.erb
  6. +34 −0 SalesForce-Sencha/app/Saccount/new.bb.erb
  7. +37 −0 SalesForce-Sencha/app/Saccount/new.erb
  8. +10 −0 SalesForce-Sencha/app/Saccount/saccount.rb
  9. +77 −0 SalesForce-Sencha/app/Saccount/saccount_controller.rb
  10. +31 −0 SalesForce-Sencha/app/Saccount/show.bb.erb
  11. +39 −0 SalesForce-Sencha/app/Saccount/show.erb
  12. +39 −0 SalesForce-Sencha/app/Scontact/edit.bb.erb
  13. +42 −0 SalesForce-Sencha/app/Scontact/edit.erb
  14. +21 −0 SalesForce-Sencha/app/Scontact/index.bb.erb
  15. +26 −0 SalesForce-Sencha/app/Scontact/index.erb
  16. +39 −0 SalesForce-Sencha/app/Scontact/new.bb.erb
  17. +43 −0 SalesForce-Sencha/app/Scontact/new.erb
  18. +10 −0 SalesForce-Sencha/app/Scontact/scontact.rb
  19. +87 −0 SalesForce-Sencha/app/Scontact/scontact_controller.rb
  20. +36 −0 SalesForce-Sencha/app/Scontact/show.bb.erb
  21. +42 −0 SalesForce-Sencha/app/Scontact/show.erb
  22. +91 −0 SalesForce-Sencha/app/Settings/controller.rb
  23. +17 −0 SalesForce-Sencha/app/Settings/home.bb.erb
  24. +20 −0 SalesForce-Sencha/app/Settings/home.erb
  25. +32 −0 SalesForce-Sencha/app/Settings/index.bb.erb
  26. +30 −0 SalesForce-Sencha/app/Settings/index.erb
  27. +35 −0 SalesForce-Sencha/app/Settings/login.bb.erb
  28. +27 −0 SalesForce-Sencha/app/Settings/login.erb
  29. +15 −0 SalesForce-Sencha/app/Settings/reset.bb.erb
  30. +17 −0 SalesForce-Sencha/app/Settings/reset.erb
  31. +3 −0 SalesForce-Sencha/app/Settings/wait.bb.erb
  32. +5 −0 SalesForce-Sencha/app/Settings/wait.erb
  33. +16 −0 SalesForce-Sencha/app/application.rb
  34. +126 −0 SalesForce-Sencha/app/helpers/application_helper.rb
  35. +18 −0 SalesForce-Sencha/app/helpers/browser_helper.rb
  36. +26 −0 SalesForce-Sencha/app/index.bb.erb
  37. +16 −0 SalesForce-Sencha/app/index.erb
  38. +16 −0 SalesForce-Sencha/app/layout.erb
  39. +11 −0 SalesForce-Sencha/app/loading.html
  40. BIN SalesForce-Sencha/app/loading.png
  41. +19 −0 SalesForce-Sencha/build.yml
  42. BIN SalesForce-Sencha/icon/icon.ico
  43. BIN SalesForce-Sencha/icon/icon.png
  44. BIN SalesForce-Sencha/icon/icon114.png
  45. BIN SalesForce-Sencha/icon/icon57.png
  46. BIN SalesForce-Sencha/icon/icon72.png
  47. +144 −0 SalesForce-Sencha/public/app/account.js
  48. +153 −0 SalesForce-Sencha/public/app/contact.js
  49. +62 −0 SalesForce-Sencha/public/app/index.js
  50. +66 −0 SalesForce-Sencha/public/app/login.js
  51. +24 −0 SalesForce-Sencha/public/app/rhodes.js
  52. +330 −0 SalesForce-Sencha/public/css/android.css
  53. +115 −0 SalesForce-Sencha/public/css/blackberry.css
  54. +506 −0 SalesForce-Sencha/public/css/iphone.css
  55. +12 −0 SalesForce-Sencha/public/css/sencha.css
  56. +222 −0 SalesForce-Sencha/public/css/windows_mobile.css
  57. +21 −0 SalesForce-Sencha/public/images/IUI_LICENSE.txt
  58. BIN SalesForce-Sencha/public/images/android/btn_check_off.png
  59. BIN SalesForce-Sencha/public/images/android/btn_check_on.png
  60. BIN SalesForce-Sencha/public/images/android/btn_radio_off.png
  61. BIN SalesForce-Sencha/public/images/android/btn_radio_on.png
  62. BIN SalesForce-Sencha/public/images/android/disclosure.png
  63. BIN SalesForce-Sencha/public/images/android/ic_menu_more.png
  64. BIN SalesForce-Sencha/public/images/backButton.png
  65. BIN SalesForce-Sencha/public/images/blueButton.png
  66. BIN SalesForce-Sencha/public/images/cancel.png
  67. BIN SalesForce-Sencha/public/images/grayButton.png
  68. BIN SalesForce-Sencha/public/images/iphone/disclosure.png
  69. BIN SalesForce-Sencha/public/images/iphone/disclosure_detail.png
  70. BIN SalesForce-Sencha/public/images/iphone/jqtouch/backButton.png
  71. BIN SalesForce-Sencha/public/images/iphone/jqtouch/blueButton.png
  72. BIN SalesForce-Sencha/public/images/iphone/jqtouch/cancel.png
  73. BIN SalesForce-Sencha/public/images/iphone/jqtouch/chevron.png
  74. BIN SalesForce-Sencha/public/images/iphone/jqtouch/grayButton.png
  75. BIN SalesForce-Sencha/public/images/iphone/jqtouch/listArrowSel.png
  76. BIN SalesForce-Sencha/public/images/iphone/jqtouch/listGroup.png
  77. BIN SalesForce-Sencha/public/images/iphone/jqtouch/loading.gif
  78. BIN SalesForce-Sencha/public/images/iphone/jqtouch/on_off.png
  79. BIN SalesForce-Sencha/public/images/iphone/jqtouch/pinstripes.png
  80. BIN SalesForce-Sencha/public/images/iphone/jqtouch/selection.png
  81. BIN SalesForce-Sencha/public/images/iphone/jqtouch/thumb.png
  82. BIN SalesForce-Sencha/public/images/iphone/jqtouch/toggle.png
  83. BIN SalesForce-Sencha/public/images/iphone/jqtouch/toggleOn.png
  84. BIN SalesForce-Sencha/public/images/iphone/jqtouch/toolButton.png
  85. BIN SalesForce-Sencha/public/images/iphone/jqtouch/toolbar.png
  86. BIN SalesForce-Sencha/public/images/iphone/jqtouch/whiteButton.png
  87. BIN SalesForce-Sencha/public/images/iphone/radiobutton.png
  88. BIN SalesForce-Sencha/public/images/iphone/select.png
  89. BIN SalesForce-Sencha/public/images/iphone/switch.png
  90. BIN SalesForce-Sencha/public/images/iui-logo-touch-icon.png
  91. BIN SalesForce-Sencha/public/images/listArrow.png
  92. BIN SalesForce-Sencha/public/images/listArrowDown.png
  93. BIN SalesForce-Sencha/public/images/listArrowSel.png
  94. BIN SalesForce-Sencha/public/images/listGroup.png
  95. BIN SalesForce-Sencha/public/images/loading.gif
  96. BIN SalesForce-Sencha/public/images/pinstripes.png
  97. BIN SalesForce-Sencha/public/images/right_button.png
  98. BIN SalesForce-Sencha/public/images/selection.png
  99. BIN SalesForce-Sencha/public/images/thumb.png
  100. BIN SalesForce-Sencha/public/images/toggle.png
  101. BIN SalesForce-Sencha/public/images/toggleOn.png
  102. BIN SalesForce-Sencha/public/images/toolButton.png
  103. BIN SalesForce-Sencha/public/images/toolButton_new.png
  104. BIN SalesForce-Sencha/public/images/toolbar.png
  105. BIN SalesForce-Sencha/public/images/whiteButton.png
  106. +9 −0 SalesForce-Sencha/public/jqtouch/jqtouch-iphone.css
  107. +374 −0 SalesForce-Sencha/public/jqtouch/jqtouch.css
  108. +751 −0 SalesForce-Sencha/public/jqtouch/jqtouch.js
  109. +60 −0 SalesForce-Sencha/public/jqtouch/jqtouch.transitions.js
  110. +19 −0 SalesForce-Sencha/public/jqtouch/jquery.1.3.2.min.js
  111. +1 −0 SalesForce-Sencha/public/js/application.js
  112. +4 −0 SalesForce-Sencha/public/js/rho.js
  113. +59 −0 SalesForce-Sencha/public/js/rhogeolocation-wm.js
  114. +11 −0 SalesForce-Sencha/public/js/rhogeolocation.js
  115. +622 −0 SalesForce-Sencha/public/sencha/getting-started.html
  116. +402 −0 SalesForce-Sencha/public/sencha/index.html
  117. +5 −0 SalesForce-Sencha/public/sencha/license.inc
  118. +44 −0 SalesForce-Sencha/public/sencha/license.txt
  119. +5,820 −0 SalesForce-Sencha/public/sencha/pkgs/core.js
  120. +3,979 −0 SalesForce-Sencha/public/sencha/pkgs/dom.js
  121. +941 −0 SalesForce-Sencha/public/sencha/pkgs/gestures.js
  122. +1,578 −0 SalesForce-Sencha/public/sencha/pkgs/layouts.js
  123. +1,547 −0 SalesForce-Sencha/public/sencha/pkgs/platform/core.js
  124. +8,650 −0 SalesForce-Sencha/public/sencha/pkgs/platform/data-foundation.js
  125. +595 −0 SalesForce-Sencha/public/sencha/pkgs/platform/data-json.js
  126. +492 −0 SalesForce-Sencha/public/sencha/pkgs/platform/data-xml.js
  127. +1,449 −0 SalesForce-Sencha/public/sencha/pkgs/platform/mvc.js
  128. +39 −0 SalesForce-Sencha/public/sencha/pkgs/platform/native.js
  129. +5,609 −0 SalesForce-Sencha/public/sencha/pkgs/platform/util.js
  130. +14,356 −0 SalesForce-Sencha/public/sencha/pkgs/widgets.js
  131. +758 −0 SalesForce-Sencha/public/sencha/release-notes.html
  132. +1 −0 SalesForce-Sencha/public/sencha/resources/css/android.css
  133. +1 −0 SalesForce-Sencha/public/sencha/resources/css/apple.css
  134. +1 −0 SalesForce-Sencha/public/sencha/resources/css/sencha-touch-debug.css
  135. +1 −0 SalesForce-Sencha/public/sencha/resources/css/sencha-touch.css
  136. BIN SalesForce-Sencha/public/sencha/resources/psd/tabs.psd
  137. +35 −0 SalesForce-Sencha/public/sencha/resources/sass/android.scss
  138. +28 −0 SalesForce-Sencha/public/sencha/resources/sass/apple.scss
  139. +11 −0 SalesForce-Sencha/public/sencha/resources/sass/config-debug.rb
  140. +11 −0 SalesForce-Sencha/public/sencha/resources/sass/config.rb
  141. +16 −0 SalesForce-Sencha/public/sencha/resources/sass/sencha-touch.scss
  142. +6 −0 SalesForce-Sencha/public/sencha/resources/themes/compass_init.rb
  143. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/check.png
  144. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/disclosure.png
  145. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/dotgrid.png
  146. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/loading.gif
  147. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/action.png
  148. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/add.png
  149. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/add1.png
  150. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/add_black.png
  151. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/address_book.png
  152. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/arrow_down.png
  153. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/arrow_left.png
  154. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/arrow_right.png
  155. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/arrow_up.png
  156. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/at.png
  157. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/atom.png
  158. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/attachment.png
  159. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/attachment2.png
  160. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/attachment3.png
  161. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/attachment_black.png
  162. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/backspace.png
  163. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/battery_full.png
  164. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/battery_low.png
  165. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/battery_power.png
  166. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/blank.png
  167. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/bolt.png
  168. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/bolt_side.png
  169. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/bookmark1.png
  170. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/bookmark2.png
  171. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/bookmark_black.png
  172. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/bookmarks.png
  173. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/briefcase1.png
  174. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/briefcase2.png
  175. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/brightness1.png
  176. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/brightness2.png
  177. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/broadcast.png
  178. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/bug.png
  179. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/bulb.png
  180. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/bullseye1.png
  181. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/bullseye2.png
  182. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/calendar.png
  183. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/calendar2.png
  184. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/calendar_add.png
  185. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/card1.png
  186. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/card2.png
  187. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/chart1.png
  188. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/chart2.png
  189. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/chart3.png
  190. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/chat.png
  191. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/chat1.png
  192. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/chat2.png
  193. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/chat3.png
  194. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/chat4.png
  195. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/chat_black1.png
  196. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/chat_black2.png
  197. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/check1.png
  198. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/check2.png
  199. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/check_black1.png
  200. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/check_black2.png
  201. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/check_dotted.png
  202. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/circle.png
  203. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/circle2.png
  204. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/clash.png
  205. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/cloud.png
  206. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/cloud_black.png
  207. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/cloud_black_upload1.png
  208. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/cloud_black_upload2.png
  209. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/cloud_bolt.png
  210. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/cloud_download.png
  211. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/code1.png
  212. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/code2.png
  213. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/compass1.png
  214. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/compass2.png
  215. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/compass3.png
  216. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/compose.png
  217. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/compose1.png
  218. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/compose2.png
  219. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/compose3.png
  220. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/compose_black.png
  221. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/contract.png
  222. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/cube.png
  223. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/data.png
  224. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/delete.png
  225. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/delete1.png
  226. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/delete_black1.png
  227. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/delete_black2.png
  228. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc.png
  229. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc2.png
  230. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_black.png
  231. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_black_landscape.png
  232. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_compose1.png
  233. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_compose2.png
  234. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_delete.png
  235. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_down.png
  236. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_drawer.png
  237. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_list.png
  238. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_new.png
  239. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_send.png
  240. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/doc_up.png
  241. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/docs1.png
  242. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/docs2.png
  243. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/docs_black1.png
  244. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/docs_black2.png
  245. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/download.png
  246. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/download1.png
  247. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/download2.png
  248. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/download_screen.png
  249. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/eject.png
  250. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/empty1.png
  251. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/empty2.png
  252. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/equalizer1.png
  253. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/equalizer2.png
  254. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/event_complete.png
  255. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/expand.png
  256. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/favorites.png
  257. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/favorites1.png
  258. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/favorites_circle.png
  259. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/fforward.png
  260. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/find.png
  261. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/flag.png
  262. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/flickr2.png
  263. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/folder.png
  264. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/folder_add.png
  265. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/folder_black.png
  266. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/folder_black_open.png
  267. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/folder_delete.png
  268. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/folder_delete2.png
  269. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/folder_lock.png
  270. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/folder_open2.png
  271. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/font.png
  272. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/forbidden.png
  273. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/forward_black.png
  274. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/globe1.png
  275. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/globe2.png
  276. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/globe_black.png
  277. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/headphones.png
  278. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/heart.png
  279. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/heart_circle.png
  280. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/help.png
  281. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/help_black.png
  282. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/home.png
  283. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/home2.png
  284. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/hot.png
  285. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/inbox1.png
  286. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/inbox2.png
  287. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/inbox3.png
  288. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/infinite.png
  289. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/infinite2.png
  290. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/info.png
  291. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/info2.png
  292. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/info_plain.png
  293. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/info_plain2.png
  294. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/json.png
  295. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/lab.png
  296. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/layout.png
  297. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/link1.png
  298. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/link2.png
  299. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/link_black.png
  300. BIN SalesForce-Sencha/public/sencha/resources/themes/images/default/pictos/list.png
Sorry, we could not display the entire diff because too many files (688) changed.
View
28 SalesForce-Sencha/Rakefile
@@ -0,0 +1,28 @@
+require 'yaml'
+
+unless File.exists? "build.yml"
+ puts "Cannot find build.yml"
+ exit 1
+end
+
+
+$app_config = YAML::load_file("build.yml")
+$app_path = File.expand_path(File.dirname(__FILE__))
+
+if ENV["RHO_HOME"].nil?
+ rakefilepath = "#{$app_config["sdk"]}/Rakefile"
+else
+ rakefilepath = "#{ENV["RHO_HOME"]}/Rakefile"
+end
+
+unless File.exists? rakefilepath
+ puts "\nCannot find your Rhodes gem or source path: #{rakefilepath}"
+ puts "\nIf you have the sdk on your path or have installed the gem this"
+ puts "can be resolved by running 'set-rhodes-sdk'"
+ puts "\nYou can also set this manually by modifying your build.yml or"
+ puts "setting the environment variable RHO_HOME"
+ exit 1
+end
+
+load rakefilepath
+
View
34 SalesForce-Sencha/app/Saccount/edit.bb.erb
@@ -0,0 +1,34 @@
+<div id="pageTitle">
+ <h1>Edit <%= @saccount.name%></h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Back", :action => :show, :id => @saccount.object %>
+ <%= link_to "Delete", :action => :delete, :id => @saccount.object %>
+</div>
+
+
+<div id="content">
+ <form method="POST" action="<%= url_for :action => :update %>">
+ <input type="hidden" name="id" value="<%= @saccount.object %>"/>
+ <table>
+
+ <tr>
+ <td class="itemLabel">Name: </td>
+ <td class="itemValue"><input type="text" name="saccount[name]" value="<%= @saccount.name %>"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Phone: </td>
+ <td class="itemValue"><input type="text" name="saccount[phone]" value="<%= @saccount.phone %>"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Website: </td>
+ <td class="itemValue"><input type="text" name="saccount[website]" value="<%= @saccount.website %>"/></td>
+ </tr>
+
+ </table>
+ <input type="submit" class="standardButton" value="Update" />
+ </form>
+</div>
View
37 SalesForce-Sencha/app/Saccount/edit.erb
@@ -0,0 +1,37 @@
+<div class="pageTitle">
+ <h1>Edit <%= @saccount.name %></h1>
+</div>
+
+<div class="toolbar">
+ <div class="leftItem backButton">
+ <a href="<%= url_for :action => :show, :id => @saccount.object %>">Cancel</a>
+ </div>
+ <div class="rightItem regularButton">
+ <a class="button" href="<%= url_for :action => :delete, :id => @saccount.object %>">Delete</a>
+ </div>
+</div>
+
+<div class="content">
+ <form method="POST" action="<%= url_for :action => :update %>">
+ <input type="hidden" name="id" value="<%= @saccount.object %>"/>
+ <ul>
+
+ <li>
+ <label for="saccount[name]" class="fieldLabel">Name</label>
+ <input type="text" name="saccount[name]" value="<%= @saccount.name %>" <%= placeholder( "Name" ) %> />
+ </li>
+
+ <li>
+ <label for="saccount[phone]" class="fieldLabel">Phone</label>
+ <input type="text" name="saccount[phone]" value="<%= @saccount.phone %>" <%= placeholder( "Phone" ) %> />
+ </li>
+
+ <li>
+ <label for="saccount[website]" class="fieldLabel">Website</label>
+ <input type="text" name="saccount[website]" value="<%= @saccount.website %>" <%= placeholder( "Website" ) %> />
+ </li>
+
+ </ul>
+ <input type="submit" class="standardButton" value="Update"/>
+ </form>
+</div>
View
21 SalesForce-Sencha/app/Saccount/index.bb.erb
@@ -0,0 +1,21 @@
+<div id="pageTitle">
+ <h1>Saccounts</h1>
+</div>
+
+
+<div id="toolbar">
+ <%= link_to "New", :action => :new %>
+ <%= link_to "Home", RhoConfig::start_path %>
+</div>
+
+<div id="content">
+ <table>
+ <tr>
+ <% @saccounts.each do |obj| %>
+
+ <td class="recordLabel"><%= link_to "#{obj.name}", :action => :show, :id => obj.object %></td>
+
+ <% end %>
+ </tr>
+ </table>
+</div>
View
26 SalesForce-Sencha/app/Saccount/index.erb
@@ -0,0 +1,26 @@
+<div class="pageTitle">
+ <h1>Saccounts</h1>
+</div>
+
+<div class="toolbar">
+ <div class="leftItem regularButton">
+ <a href="<%= Rho::RhoConfig.start_path %>">Home</a>
+ </div>
+ <div class="rightItem regularButton">
+ <a class="button" href="<%= url_for :action => :new %>">New</a>
+ </div>
+</div>
+
+<div class="content">
+ <ul>
+ <% @saccounts.each do |saccount| %>
+
+ <li>
+ <a href="<%= url_for :action => :show, :id => saccount.object %>">
+ <span class="title"><%= saccount.name %></span><span class="disclosure_indicator"></span>
+ </a>
+ </li>
+
+ <% end %>
+ </ul>
+</div>
View
34 SalesForce-Sencha/app/Saccount/new.bb.erb
@@ -0,0 +1,34 @@
+<div id="pageTitle">
+ <h1>New Saccount</h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Back", :action => :index %>
+</div>
+
+
+<div id="content">
+
+ <form method="POST" action="<%= url_for :action => :create %>">
+ <input type="hidden" name="id" value="<%= @saccount.object %>"/>
+ <table>
+
+ <tr>
+ <td class="itemLabel">Name: </td>
+ <td class="itemValue"><input type="text" name="saccount[name]"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Phone: </td>
+ <td class="itemValue"><input type="text" name="saccount[phone]"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Website: </td>
+ <td class="itemValue"><input type="text" name="saccount[website]"/></td>
+ </tr>
+
+ </table>
+ <input type="submit" class="standardButton" value="Create" />
+ </form>
+</div>
View
37 SalesForce-Sencha/app/Saccount/new.erb
@@ -0,0 +1,37 @@
+<div class="pageTitle">
+ <h1>New <%= @saccount.title %></h1>
+</div>
+
+<div class="toolbar">
+ <div class="leftItem backButton">
+ <a class="cancel" href="<%= url_for :action => :index %>">Cancel</a>
+ </div>
+</div>
+
+<div class="content">
+ <form method="POST" action="<%= url_for :action => :create %>">
+ <input type="hidden" name="id" value="<%= @saccount.object %>"/>
+ <ul>
+
+ <li>
+ <label for="saccount[name]" class="fieldLabel">Name</label>
+ <input type="text" name="saccount[name]" <%=
+ placeholder("Name") %> />
+ </li>
+
+ <li>
+ <label for="saccount[phone]" class="fieldLabel">Phone</label>
+ <input type="text" name="saccount[phone]" <%=
+ placeholder("Phone") %> />
+ </li>
+
+ <li>
+ <label for="saccount[website]" class="fieldLabel">Website</label>
+ <input type="text" name="saccount[website]" <%=
+ placeholder("Website") %> />
+ </li>
+
+ </ul>
+ <input type="submit" class="standardButton" value="Create"/>
+ </form>
+</div>
View
10 SalesForce-Sencha/app/Saccount/saccount.rb
@@ -0,0 +1,10 @@
+# The model has already been created by the framework, and extends Rhom::RhomObject
+# You can add more methods here
+class Saccount
+ include Rhom::PropertyBag
+
+ # Uncomment the following line to enable sync with Saccount.
+ enable :sync
+
+ #add model specifc code here
+end
View
77 SalesForce-Sencha/app/Saccount/saccount_controller.rb
@@ -0,0 +1,77 @@
+require 'rho/rhocontroller'
+require 'helpers/browser_helper'
+require 'json'
+
+class SaccountController < Rho::RhoController
+ include BrowserHelper
+
+ def alljson
+
+ @accounts = Saccount.find(:all)
+ temp = []
+ @accounts.each do |account|
+ temp << {
+ :name => account.name,
+ :phone => account.phone,
+ :website => account.website,
+ :id => account.object
+ }
+ end
+
+ all = { :accounts => temp }
+ render :string => ::JSON.generate(all)
+
+ end
+
+ #GET /Saccount
+ def index
+ @saccounts = Saccount.find(:all)
+ render
+ end
+
+ # GET /Saccount/{1}
+ def show
+ @saccount = Saccount.find(@params['id'])
+ if @saccount
+ render :action => :show
+ else
+ redirect :action => :index
+ end
+ end
+
+ # GET /Saccount/new
+ def new
+ @saccount = Saccount.new
+ render :action => :new
+ end
+
+ # GET /Saccount/{1}/edit
+ def edit
+ @saccount = Saccount.find(@params['id'])
+ if @saccount
+ render :action => :edit
+ else
+ redirect :action => :index
+ end
+ end
+
+ # POST /Saccount/create
+ def create
+ @saccount = Saccount.create(@params['saccount'])
+ redirect :action => :index
+ end
+
+ # POST /Saccount/{1}/update
+ def update
+ @saccount = Saccount.find(@params['id'])
+ @saccount.update_attributes(@params['saccount']) if @saccount
+ redirect :action => :index
+ end
+
+ # POST /Saccount/{1}/delete
+ def delete
+ @saccount = Saccount.find(@params['id'])
+ @saccount.destroy if @saccount
+ redirect :action => :index
+ end
+end
View
31 SalesForce-Sencha/app/Saccount/show.bb.erb
@@ -0,0 +1,31 @@
+<div id="pageTitle">
+ <h1><%= @saccount.name%></h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Back", :action => :index %>
+ <%= link_to "Edit", :action => :edit, :id => @saccount.object %>
+</div>
+
+
+<div id="content">
+
+ <table>
+
+ <tr>
+ <td class="itemLabel">Name</td>
+ <td class="itemValue"><%= @saccount.name%></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Phone</td>
+ <td class="itemValue"><%= @saccount.phone%></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Website</td>
+ <td class="itemValue"><%= @saccount.website%></td>
+ </tr>
+
+ </table>
+</div>
View
39 SalesForce-Sencha/app/Saccount/show.erb
@@ -0,0 +1,39 @@
+<div class="pageTitle">
+ <h1><%= @saccount.name %></h1>
+</div>
+
+<div class="toolbar">
+ <div class="leftItem backButton">
+ <a href="<%= url_for :action => :index %>">Back</a>
+ </div>
+ <div class="rightItem regularButton">
+ <a href="<%= url_for :action => :edit, :id => @saccount.object %>">Edit</a>
+ </div>
+</div>
+
+<div class="content">
+ <ul>
+
+ <li>
+ <div class="itemLabel">Name</div>
+ <div class="itemValue"><%= @saccount.name %></div>
+ </li>
+
+ <li>
+ <div class="itemLabel">Phone</div>
+ <div class="itemValue"><%= @saccount.phone %></div>
+ </li>
+
+ <li>
+ <div class="itemLabel">Website</div>
+ <div class="itemValue"><%= @saccount.website %></div>
+ </li>
+
+ <li>
+ <a href="<%= url_for :controller => :Scontact, :action => :index, :query => {:account => @saccount.object} %>">
+ <span class="title">Contacts</span><span class="disclosure_indicator"></span>
+ </a>
+ </li>
+
+ </ul>
+</div>
View
39 SalesForce-Sencha/app/Scontact/edit.bb.erb
@@ -0,0 +1,39 @@
+<div id="pageTitle">
+ <h1>Edit <%= @scontact.name%></h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Back", :action => :show, :id => @scontact.object %>
+ <%= link_to "Delete", :action => :delete, :id => @scontact.object %>
+</div>
+
+
+<div id="content">
+ <form method="POST" action="<%= url_for :action => :update %>">
+ <input type="hidden" name="id" value="<%= @scontact.object %>"/>
+ <table>
+
+ <tr>
+ <td class="itemLabel">Name: </td>
+ <td class="itemValue"><input type="text" name="scontact[name]" value="<%= @scontact.name %>"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Phone: </td>
+ <td class="itemValue"><input type="text" name="scontact[phone]" value="<%= @scontact.phone %>"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Email: </td>
+ <td class="itemValue"><input type="text" name="scontact[email]" value="<%= @scontact.email %>"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Account: </td>
+ <td class="itemValue"><input type="text" name="scontact[account_id]" value="<%= @scontact.account_id %>"/></td>
+ </tr>
+
+ </table>
+ <input type="submit" class="standardButton" value="Update" />
+ </form>
+</div>
View
42 SalesForce-Sencha/app/Scontact/edit.erb
@@ -0,0 +1,42 @@
+<div class="pageTitle">
+ <h1>Edit <%= @scontact.name %></h1>
+</div>
+
+<div class="toolbar">
+ <div class="leftItem backButton">
+ <a href="<%= url_for :action => :show, :id => @scontact.object %>">Cancel</a>
+ </div>
+ <div class="rightItem regularButton">
+ <a class="button" href="<%= url_for :action => :delete, :id => @scontact.object %>">Delete</a>
+ </div>
+</div>
+
+<div class="content">
+ <form method="POST" action="<%= url_for :action => :update %>">
+ <input type="hidden" name="id" value="<%= @scontact.object %>"/>
+ <ul>
+
+ <li>
+ <label for="scontact[name]" class="fieldLabel">Name</label>
+ <input type="text" name="scontact[name]" value="<%= @scontact.name %>" <%= placeholder( "Name" ) %> />
+ </li>
+
+ <li>
+ <label for="scontact[phone]" class="fieldLabel">Phone</label>
+ <input type="text" name="scontact[phone]" value="<%= @scontact.phone %>" <%= placeholder( "Phone" ) %> />
+ </li>
+
+ <li>
+ <label for="scontact[email]" class="fieldLabel">Email</label>
+ <input type="text" name="scontact[email]" value="<%= @scontact.email %>" <%= placeholder( "Email" ) %> />
+ </li>
+
+ <li>
+ <label for="scontact[account_id]" class="fieldLabel">Account</label>
+ <input type="text" name="scontact[account_id]" value="<%= @scontact.account_id %>" <%= placeholder( "Account" ) %> />
+ </li>
+
+ </ul>
+ <input type="submit" class="standardButton" value="Update"/>
+ </form>
+</div>
View
21 SalesForce-Sencha/app/Scontact/index.bb.erb
@@ -0,0 +1,21 @@
+<div id="pageTitle">
+ <h1>Scontacts</h1>
+</div>
+
+
+<div id="toolbar">
+ <%= link_to "New", :action => :new %>
+ <%= link_to "Home", RhoConfig::start_path %>
+</div>
+
+<div id="content">
+ <table>
+ <tr>
+ <% @scontacts.each do |obj| %>
+
+ <td class="recordLabel"><%= link_to "#{obj.name}", :action => :show, :id => obj.object %></td>
+
+ <% end %>
+ </tr>
+ </table>
+</div>
View
26 SalesForce-Sencha/app/Scontact/index.erb
@@ -0,0 +1,26 @@
+<div class="pageTitle">
+ <h1>Scontacts</h1>
+</div>
+
+<div class="toolbar">
+ <div class="leftItem regularButton">
+ <a href="<%= Rho::RhoConfig.start_path %>">Home</a>
+ </div>
+ <div class="rightItem regularButton">
+ <a class="button" href="<%= url_for :action => :new %>">New</a>
+ </div>
+</div>
+
+<div class="content">
+ <ul>
+ <% @scontacts.each do |scontact| %>
+
+ <li>
+ <a href="<%= url_for :action => :show, :id => scontact.object %>">
+ <span class="title"><%= scontact.name %></span><span class="disclosure_indicator"></span>
+ </a>
+ </li>
+
+ <% end %>
+ </ul>
+</div>
View
39 SalesForce-Sencha/app/Scontact/new.bb.erb
@@ -0,0 +1,39 @@
+<div id="pageTitle">
+ <h1>New Scontact</h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Back", :action => :index %>
+</div>
+
+
+<div id="content">
+
+ <form method="POST" action="<%= url_for :action => :create %>">
+ <input type="hidden" name="id" value="<%= @scontact.object %>"/>
+ <table>
+
+ <tr>
+ <td class="itemLabel">Name: </td>
+ <td class="itemValue"><input type="text" name="scontact[name]"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Phone: </td>
+ <td class="itemValue"><input type="text" name="scontact[phone]"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Email: </td>
+ <td class="itemValue"><input type="text" name="scontact[email]"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Account: </td>
+ <td class="itemValue"><input type="text" name="scontact[account_id]"/></td>
+ </tr>
+
+ </table>
+ <input type="submit" class="standardButton" value="Create" />
+ </form>
+</div>
View
43 SalesForce-Sencha/app/Scontact/new.erb
@@ -0,0 +1,43 @@
+<div class="pageTitle">
+ <h1>New <%= @scontact.title %></h1>
+</div>
+
+<div class="toolbar">
+ <div class="leftItem backButton">
+ <a class="cancel" href="<%= url_for :action => :index %>">Cancel</a>
+ </div>
+</div>
+
+<div class="content">
+ <form method="POST" action="<%= url_for :action => :create %>">
+ <input type="hidden" name="id" value="<%= @scontact.object %>"/>
+ <ul>
+
+ <li>
+ <label for="scontact[name]" class="fieldLabel">Name</label>
+ <input type="text" name="scontact[name]" <%=
+ placeholder("Name") %> />
+ </li>
+
+ <li>
+ <label for="scontact[phone]" class="fieldLabel">Phone</label>
+ <input type="text" name="scontact[phone]" <%=
+ placeholder("Phone") %> />
+ </li>
+
+ <li>
+ <label for="scontact[email]" class="fieldLabel">Email</label>
+ <input type="text" name="scontact[email]" <%=
+ placeholder("Email") %> />
+ </li>
+
+ <li>
+ <label for="scontact[account_id]" class="fieldLabel">Account</label>
+ <input type="text" name="scontact[account_id]" <%=
+ placeholder("Account") %> />
+ </li>
+
+ </ul>
+ <input type="submit" class="standardButton" value="Create"/>
+ </form>
+</div>
View
10 SalesForce-Sencha/app/Scontact/scontact.rb
@@ -0,0 +1,10 @@
+# The model has already been created by the framework, and extends Rhom::RhomObject
+# You can add more methods here
+class Scontact
+ include Rhom::PropertyBag
+
+ # Uncomment the following line to enable sync with Scontact.
+ enable :sync
+
+ #add model specifc code here
+end
View
87 SalesForce-Sencha/app/Scontact/scontact_controller.rb
@@ -0,0 +1,87 @@
+require 'rho/rhocontroller'
+require 'helpers/browser_helper'
+require 'json'
+
+class ScontactController < Rho::RhoController
+ include BrowserHelper
+
+ def alljson
+
+ @contacts = Scontact.find(:all)
+ temp = []
+ @contacts.each do |contact|
+ temp << {
+ :name => contact.name,
+ :phone => contact.phone,
+ :email => contact.email,
+ :account_id => contact.account_id,
+ :id => contact.object
+ }
+ end
+
+ all = { :contacts => temp }
+ render :string => ::JSON.generate(all)
+
+ end
+
+ #GET /Scontact
+ def index
+ if @params["account"]
+ @scontacts = Scontact.find(:all, :conditions => {'account_id' => @params["account"]})
+ else
+ @scontacts = Scontact.find(:all)
+ end
+ render
+ end
+
+ # GET /Scontact/{1}
+ def show
+ @scontact = Scontact.find(@params['id'])
+ if @scontact
+ @saccount = Saccount.find(@scontact.account_id)
+ render :action => :show
+ else
+ redirect :action => :index
+ end
+ end
+
+ # GET /Scontact/new
+ def new
+ @scontact = Scontact.new
+ render :action => :new
+ end
+
+ # GET /Scontact/{1}/edit
+ def edit
+ @scontact = Scontact.find(@params['id'])
+ if @scontact
+ render :action => :edit
+ else
+ redirect :action => :index
+ end
+ end
+
+ # POST /Scontact/create
+ def create
+ @scontact = Scontact.create(@params['scontact'])
+ redirect :action => :index
+ end
+
+ # POST /Scontact/{1}/update
+ def update
+ contact = {}
+ contact["name"] = @params["name"]
+ contact["phone"] = @params["phone"]
+ contact["email"] = @params["email"]
+ @scontact = Scontact.find(@params['id'])
+ @scontact.update_attributes(contact) if @scontact
+ render :string => "0"
+ end
+
+ # POST /Scontact/{1}/delete
+ def delete
+ @scontact = Scontact.find(@params['id'])
+ @scontact.destroy if @scontact
+ redirect :action => :index
+ end
+end
View
36 SalesForce-Sencha/app/Scontact/show.bb.erb
@@ -0,0 +1,36 @@
+<div id="pageTitle">
+ <h1><%= @scontact.name%></h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Back", :action => :index %>
+ <%= link_to "Edit", :action => :edit, :id => @scontact.object %>
+</div>
+
+
+<div id="content">
+
+ <table>
+
+ <tr>
+ <td class="itemLabel">Name</td>
+ <td class="itemValue"><%= @scontact.name%></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Phone</td>
+ <td class="itemValue"><%= @scontact.phone%></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Email</td>
+ <td class="itemValue"><%= @scontact.email%></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">AccountId</td>
+ <td class="itemValue"><%= @scontact.account_id%></td>
+ </tr>
+
+ </table>
+</div>
View
42 SalesForce-Sencha/app/Scontact/show.erb
@@ -0,0 +1,42 @@
+<div class="pageTitle">
+ <h1><%= @scontact.name %></h1>
+</div>
+
+<div class="toolbar">
+ <div class="leftItem backButton">
+ <a href="<%= url_for :action => :index %>">Back</a>
+ </div>
+ <div class="rightItem regularButton">
+ <a href="<%= url_for :action => :edit, :id => @scontact.object %>">Edit</a>
+ </div>
+</div>
+
+<div class="content">
+ <ul>
+
+ <li>
+ <div class="itemLabel">Name</div>
+ <div class="itemValue"><%= @scontact.name %></div>
+ </li>
+
+ <li>
+ <div class="itemLabel">Phone</div>
+ <div class="itemValue"><%= @scontact.phone %></div>
+ </li>
+
+ <li>
+ <div class="itemLabel">Email</div>
+ <div class="itemValue"><%= @scontact.email %></div>
+ </li>
+
+ <li>
+ <div class="itemLabel">AccountId</div>
+ <div class="itemValue"><%= @scontact.account_id %></div>
+ </li>
+ <li>
+ <a href="<%= url_for :controller => :Saccount, :action => :show, :id => @saccount.object %>">
+ <span class="title"><%= @saccount.name %></span><span class="disclosure_indicator"></span>
+ </a>
+ </li>
+ </ul>
+</div>
View
91 SalesForce-Sencha/app/Settings/controller.rb
@@ -0,0 +1,91 @@
+require 'rho'
+require 'rho/rhocontroller'
+require 'rho/rhoerror'
+require 'helpers/browser_helper'
+require 'json'
+
+class SettingsController < Rho::RhoController
+ include BrowserHelper
+
+ def index
+ @msg = @params['msg']
+ render
+ end
+
+ def login
+ @msg = @params['msg']
+ render :action => :login, :back => '/app'
+ end
+
+ def login_callback
+ errCode = @params['error_code'].to_i
+ if errCode == 0
+ # run sync if we were successful
+ SyncEngine.dosync
+ else
+ if errCode == Rho::RhoError::ERR_CUSTOMSYNCSERVER
+ @msg = @params['error_message']
+ end
+
+ if !@msg || @msg.length == 0
+ @msg = Rho::RhoError.new(errCode).message
+ end
+
+ end
+ WebView.navigate Rho::RhoConfig.start_path
+
+ end
+
+ def sync_notify
+ if @params['status'] == "ok"
+ WebView.execute_js("contact.DataStore.load();contact.ContactList.refresh(); contact.ContactList.setLoading(false,true);") if @params["source_name"] == "Scontact"
+ WebView.execute_js("account.DataStore.load();account.AccountList.refresh(); account.AccountList.setLoading(false,true);") if @params["source_name"] == "Saccount"
+ end
+ end
+
+ def do_login
+ if @params['login'] and @params['password']
+ begin
+ SyncEngine.login(@params['login'], @params['password'], (url_for :action => :login_callback) )
+ render :action => :wait
+ rescue Rho::RhoError => e
+ @msg = e.message
+ render :action => :login
+ end
+ else
+ @msg = Rho::RhoError.err_message(Rho::RhoError::ERR_UNATHORIZED) unless @msg && @msg.length > 0
+ render :action => :login
+ end
+ end
+
+ def logout
+ SyncEngine.logout
+ @msg = "You have been logged out."
+ render :action => :login
+ end
+
+ def reset
+ render :action => :reset
+ end
+
+ def do_reset
+ Rhom::Rhom.database_full_reset
+ SyncEngine.dosync
+ @msg = "Database has been reset."
+ redirect :action => :index, :query => {:msg => @msg}
+ end
+
+ def do_sync
+ SyncEngine.dosync
+ @msg = "Sync has been triggered."
+ redirect :action => :index, :query => {:msg => @msg}
+ end
+
+ #Sencha helpers
+ def logged_in
+ json = JSON.generate(SyncEngine.logged_in)
+ render :string => json
+ end
+
+
+end
View
17 SalesForce-Sencha/app/Settings/home.bb.erb
@@ -0,0 +1,17 @@
+<div id="pageTitle">
+ <h1>Home</h1>
+</div>
+
+<div id="toolbar">
+ <% if SyncEngine::logged_in > 0 %>
+ <%= link_to "Logout", :action => :logout %>
+ <% else %>
+ <%= link_to "Login", :action => :login %>
+ <% end %>
+</div>
+
+<div id="content">
+ <ul>
+ <li>Add links here...</li>
+ </ul>
+</div>
View
20 SalesForce-Sencha/app/Settings/home.erb
@@ -0,0 +1,20 @@
+<div class="pageTitle">
+ <h1>Home</h1>
+</div>
+
+<div class="toolbar">
+ <%% if SyncEngine::logged_in > 0 %>
+ <a class="leftItem blueButton" href="<%%= url_for :action => :do_sync %>">Sync</a>
+ <a class="rightItem regularButton" href="<%%= url_for :action => :logout %>">Logout</a>
+ <%% else %>
+ <a class="rightItem regularButton" href="<%%= url_for :action => :login %>">Login</a>
+ <%% end %>
+</div>
+
+<div class="content">
+ <ul>
+ <li class="arrow">
+ <a href="#">Add Links Here...</a>
+ </li>
+ </ul>
+</div>
View
32 SalesForce-Sencha/app/Settings/index.bb.erb
@@ -0,0 +1,32 @@
+<div id="pageTitle">
+ <h1>Settings</h1>
+</div>
+
+<div id="content">
+ <% if @msg %>
+ <div class="alert" align="center"><%= @msg %></div>
+ <% end %>
+
+ <ul>
+ <li>
+ <p>Client ID: <span class="cid"><%= Rhom::Rhom::client_id %></span></p>
+ </li>
+ <li>
+ <%= link_to "Reset Database", :action => :reset %>
+ </li>
+ <li>
+ <%= link_to "Sync", :action => :do_sync %>
+ </li>
+
+ <% if SyncEngine::logged_in > 0 %>
+ <li>
+ <%= link_to "Logout", :action => :logout %>
+ </li>
+ <% else %>
+ <li>
+ <%= link_to "Login", :action => :login %>
+ </li>
+ <% end %>
+ </ul>
+
+</div>
View
30 SalesForce-Sencha/app/Settings/index.erb
@@ -0,0 +1,30 @@
+<div class="pageTitle">
+ <h1>Settings</h1>
+</div>
+
+
+<div class="toolbar">
+</div>
+
+<div class="content">
+ <ul>
+ <% if @msg %>
+ <li style="color: red; text-align: center"><%= @msg %></li>
+ <% end %>
+ <li>
+ <div class="itemLabel">
+ <span class="title">Client ID:</span>
+ </div>
+ <div class="itemValue">
+ <span class="clientID"><%= Rhom::Rhom::client_id %></span>
+ </div>
+ </li>
+ <li><a href="<%= url_for :action => :reset %>">Reset Database</a></li>
+ <li><a href="<%= url_for :action => :do_sync %>">Perform Sync</a></li>
+ <% if SyncEngine::logged_in > 0 %>
+ <li><a href="<%= url_for :action => :logout %>">Logout</a></li>
+ <% else %>
+ <li><a href="<%= url_for :action => :login %>">Login</a></li>
+ <% end %>
+ </ul>
+</div>
View
35 SalesForce-Sencha/app/Settings/login.bb.erb
@@ -0,0 +1,35 @@
+<div id="pageTitle">
+ <h1>Login</h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Back", :action => :index %>
+</div>
+
+<div id="content">
+ <form method="POST" action="<%= url_for :action => :do_login %>">
+
+ <% if @msg %>
+ <div class="alert" align="center"><%= @msg %></div>
+ <% end %>
+
+ <table>
+
+ <tr>
+ <td width="125" class="fieldLabel">Login</td>
+ <td><input type="text" maxlength="100" name="login"/></td>
+ </tr>
+
+ <tr>
+ <td width="125" class="fieldLabel">Password</td>
+ <td><input type="password" maxlength="100" name="password"/></td>
+ </tr>
+ </table>
+
+ <input type="submit" class="standardButton" value="Login" />
+ </form>
+</div>
+
+
+
+
View
27 SalesForce-Sencha/app/Settings/login.erb
@@ -0,0 +1,27 @@
+<div class="pageTitle">
+ <h1>Login</h1>
+</div>
+
+<div class="toolbar">
+</div>
+
+
+<div class="content" >
+ <form method="POST" action="<%= url_for :action => :do_login %>">
+ <% if @msg %>
+ <p style="color: red"><%= @msg %></p>
+ <% end %>
+ <ul>
+ <li>
+ <label for="login" class="fieldLabel">Login</label>
+ <input type="text" name="login" <%= placeholder("Login") %> />
+ </li>
+
+ <li>
+ <label for="password" class="fieldLabel">Password</label>
+ <input type="password" name="password" <%= placeholder("Password") %> />
+ </li>
+ </ul>
+ <input type="submit" class="standardButton" value="Login"/>
+ </form>
+</div>
View
15 SalesForce-Sencha/app/Settings/reset.bb.erb
@@ -0,0 +1,15 @@
+<div id="pageTitle">
+ <h1>Reset Database</h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Confirm", :action => :do_reset %>
+ <%= link_to "Cancel", Rho::RhoConfig.options_path %>
+</div>
+
+<div id="content">
+ <div class="warning">
+ <h2>Are you sure?</h2>
+ <p> Resetting removes all objects from your device.</p>
+ </div>
+</div>
View
17 SalesForce-Sencha/app/Settings/reset.erb
@@ -0,0 +1,17 @@
+<div class="pageTitle">
+ <h1>Reset Database</h1>
+</div>
+
+<div class="toolbar">
+ <div class="leftItem backButton">
+ <a href="<%= url_for :action => :index %>">Cancel</a>
+ </div>
+ <div class="button blueButton">
+ <a href="<%= url_for :action => :do_reset %>">Confirm</a>
+ </div>
+</div>
+
+<div class="content">
+ <h3>Are you sure?</h3>
+ <div style="margin: 10px;">Resetting removes all objects from your device.</div>
+</div>
View
3 SalesForce-Sencha/app/Settings/wait.bb.erb
@@ -0,0 +1,3 @@
+<div id="pageTitle">
+ <h1>Wait</h1>
+</div>
View
5 SalesForce-Sencha/app/Settings/wait.erb
@@ -0,0 +1,5 @@
+<div class="pageTitle">
+ <h1>Wait</h1>
+</div>
+
+<div class="toolbar"> </div>
View
16 SalesForce-Sencha/app/application.rb
@@ -0,0 +1,16 @@
+require 'rho/rhoapplication'
+
+class AppApplication < Rho::RhoApplication
+ def initialize
+ # Tab items are loaded left->right, @tabs[0] is leftmost tab in the tab-bar
+ # Super must be called *after* settings @tabs!
+ @tabs = nil
+ @@tabbar = nil
+ @@toolbar = nil
+ super
+
+ # Uncomment to set sync notification callback to /app/Settings/sync_notify.
+ # SyncEngine::set_objectnotify_url("/app/Settings/sync_notify")
+ SyncEngine.set_notification(-1, "/app/Settings/sync_notify", '')
+ end
+end
View
126 SalesForce-Sencha/app/helpers/application_helper.rb
@@ -0,0 +1,126 @@
+require 'json'
+
+module ApplicationHelper
+ def strip_braces(str=nil)
+ str ? str.gsub(/\{/, "").gsub(/\}/, "") : nil
+ end
+
+ def strike_if(str, condition=true)
+ condition ? "<s>#{str}</s>" : str
+ end
+
+ def display_blanks(value)
+ if blank?(value)
+ "---"
+ else
+ value
+ end
+ end
+
+ def blank?(value)
+ value.nil? || value == "" || value.length==0
+ end
+
+ def display_blankstr(value)
+ if blank?(value)
+ " "
+ else
+ value
+ end
+ end
+
+ def display_newline()
+ "<br>"
+ end
+
+ def display_space()
+ " "
+ end
+
+ def display_dollars(value)
+ if blank?(value)
+ " "
+ else
+ number = "$" + sprintf("%.2f", value)
+
+ # use a commify algorithm -- http://snippets.dzone.com/tag/commify
+ number.reverse!
+ number.gsub!(/(\d\d\d)(?=\d)(?!\d*\.)/, '\1,')
+ number.reverse!
+ end
+ end
+
+ def display_number(value)
+ if blank?(value)
+ " "
+ else
+ sprintf("%.2f", value)
+ end
+ end
+
+ def both_items_present?(value1, value2)
+ !blank?(value1) && !blank?(value2)
+ end
+
+ def replace_newlines(value)
+ if blank?(value)
+ " "
+ else
+ value.gsub('\n', ' ')
+ end
+ end
+
+ def format_address_for_mapping(street, city, state, zip, tagforurl)
+ # handle case where fields could be nil
+ mystreet = !street.nil? ? street : ""
+ mycity = !city.nil? ? city : ""
+ mystate = !state.nil? ? state : ""
+ myzip = !zip.nil? ? zip : ""
+
+ result = ""
+ if !tagforurl
+ # build up address string
+ result += (mystreet + ", ") if mystreet.length > 0
+ result += (mycity + ", ") if mycity.length > 0
+ result += (mystate + " ") if mystate.length > 0
+ result += myzip if myzip.length > 0
+ else
+ # need to URL encode data too
+ result += ("&street=" + Rho::RhoSupport.url_encode(mystreet)) if mystreet.length > 0
+ result += ("&city=" + Rho::RhoSupport.url_encode(mycity)) if mycity.length > 0
+ result += ("&state=" + Rho::RhoSupport.url_encode(mystate)) if mystate.length > 0
+ result += ("&zip=" + Rho::RhoSupport.url_encode(myzip)) if myzip.length > 0
+ end
+ # remove any extraneous characters that could interfere with proper address matching
+ result = replace_newlines(result)
+ end
+
+ def has_valid_mapping_address(street, city, state, zip)
+ # at a minimum, an address must have a state or a zip
+ (!state.nil? && state.length > 0) || (!zip.nil? && zip.length > 0)
+ end
+
+ def format_latlon_for_mapping(latitude, longitude)
+ result = ""
+ result += ("&latitude=" + Rho::RhoSupport.url_encode(latitude)) if latitude.length > 0
+ result += ("&longitude=" + Rho::RhoSupport.url_encode(longitude)) if longitude.length > 0
+ result
+ end
+
+ def render_transition(params)
+ @params["rho_callback"] = nil
+ params[:layout] = false
+ # TODO: escape carriage returns instead of removing them altoegether
+ content = render(params).split('\'').join('\\\'').split(/[\r\n]/).join('')
+ WebView.execute_js("Rho.insertAsyncPage('<div>#{content}</div>')")
+ end
+
+ def caller_request_hash_to_query
+ 'caller_request=' + Rho::RhoSupport.url_encode(::JSON.generate(@request))
+ end
+
+ def caller_request_query_to_hash
+ @caller_request = Rho::JSON.parse(@params['caller_request']) if @params['caller_request']
+ end
+
+end
View
18 SalesForce-Sencha/app/helpers/browser_helper.rb
@@ -0,0 +1,18 @@
+module BrowserHelper
+
+ def placeholder(label=nil)
+ "placeholder='#{label}'" if platform == 'apple'
+ end
+
+ def platform
+ System::get_property('platform').downcase
+ end
+
+ def selected(option_value,object_value)
+ "selected=\"yes\"" if option_value == object_value
+ end
+
+ def checked(option_value,object_value)
+ "checked=\"yes\"" if option_value == object_value
+ end
+end
View
26 SalesForce-Sencha/app/index.bb.erb
@@ -0,0 +1,26 @@
+<div id="pageTitle">
+ <h1>SalesForce</h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Sync", :controller => :Settings, :action => :do_sync %>
+ <% if SyncEngine::logged_in > 0 %>
+ <%= link_to "Logout", :controller => :Settings, :action => :logout %>
+ <% else %>
+ <%= link_to "Login", :controller => :Settings, :action => :login %>
+ <% end %>
+</div>
+
+
+<div id="content">
+ <table>
+ <tr>
+ <td class="recordLabel">Add links here...</td>
+ </tr>
+ </table>
+</div>
+
+
+
+
+
View
16 SalesForce-Sencha/app/index.erb
@@ -0,0 +1,16 @@
+<!-- Sencha Touch CSS -->
+<link rel="stylesheet" href="/public/sencha/resources/css/sencha-touch.css" type="text/css">
+
+<!-- Custom CSS -->
+<link rel="stylesheet" href="/public/css/sencha.css" type="text/css">
+
+
+<!-- Sencha Touch JS -->
+<script type="text/javascript" src="/public/sencha/sencha-touch-debug.js"></script>
+
+<!-- Application JS -->
+<script type="text/javascript" src="/public/app/rhodes.js"></script>
+<script type="text/javascript" src="/public/app/account.js"></script>
+<script type="text/javascript" src="/public/app/contact.js"></script>
+<script type="text/javascript" src="/public/app/login.js"></script>
+<script type="text/javascript" src="/public/app/index.js"></script>
View
16 SalesForce-Sencha/app/layout.erb
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+
+ <title>SalesForce</title>
+
+
+</head>
+
+<body>
+ <%= @content %>
+</body>
+
+</html>
View
11 SalesForce-Sencha/app/loading.html
@@ -0,0 +1,11 @@
+<html>
+ <head>
+ <title>Home</title>
+ <meta name="viewport" content="initial-scale=1.0, width=device-width"/>
+ </head>
+ <body>
+ <div align="center">
+ <h3>Loading...</h3>
+ </div>
+ </body>
+</html>
View
BIN SalesForce-Sencha/app/loading.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
19 SalesForce-Sencha/build.yml
@@ -0,0 +1,19 @@
+sdk: "/Users/brian/work/rhodes"
+sdkversion: 2.2.4
+name: SalesForce
+version: 1.0
+vendor: rhomobile
+build: debug
+bbver: 4.6
+wmsdk: "Windows Mobile 6 Professional SDK (ARMV4I)"
+applog: rholog.txt
+iphone:
+ configuration: Debug
+ sdk: iphonesimulator4.2
+ provisionprofile:
+ codesignidentity:
+ entitlements:
+ BundleIdentifier: com.rhomobile.SalesForce
+ BundleURLScheme: SalesForce
+
+extensions: ["json", "another-extension"]
View
BIN SalesForce-Sencha/icon/icon.ico
Binary file not shown.
View
BIN SalesForce-Sencha/icon/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN SalesForce-Sencha/icon/icon114.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN SalesForce-Sencha/icon/icon57.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN SalesForce-Sencha/icon/icon72.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
144 SalesForce-Sencha/public/app/account.js
@@ -0,0 +1,144 @@
+Ext.ns('account', 'Ext.ux');
+
+// model field definition
+Ext.regModel('Account', {
+ fields: ['name','phone','website','id']
+});
+
+account.DataStore = new Ext.data.JsonStore({
+ autoDestroy: true,
+ storeId: 'accountStore',
+
+ model: 'Account',
+ sorters: 'name',
+ getGroupString : function(record) {
+ return record.get('name')[0];
+ },
+proxy: {
+ type: 'ajax',
+ url: '/app/Saccount/alljson',
+ reader: {
+ type: 'json',
+ root: 'accounts',
+ idProperty: 'id'
+ }
+},
+ idProperty: 'id',
+});
+
+account.DataStore.load();
+
+
+account.AccountList = new Ext.List({
+ itemTpl: '<div class="account"><strong>{name}</strong></div>',
+ selModel: {
+ mode: 'SINGLE',
+ allowDeselect: false
+ },
+ grouped: true,
+ indexBar: true,
+
+ listeners: {
+ itemtap: function(view, index, item, e ){
+ account.DetailForm.user = view.store.data.items[index];
+ account.FormPanel.loadModel(account.DetailForm.user);
+ }
+ },
+
+ store: account.DataStore,
+ width:250,
+ height: '100%'
+
+
+});
+
+
+account.DetailForm = {
+ scroll: false,
+ url : '/app/Saccount/update',
+ standardSubmit : false,
+ items: [
+ {
+ xtype: 'fieldset',
+ title: 'Account Details',
+ instructions: '',
+ defaults: {
+ required: true,
+ labelAlign: 'left',
+ labelWidth: '30%'
+ },
+ items: [
+ {
+ xtype: 'textfield',
+ name : 'name',
+ label: 'Name',
+ useClearIcon: true,
+ autoCapitalize : false
+ }, {
+ xtype: 'textfield',
+ name : 'phone',
+ label: 'Phone',
+ useClearIcon: true,
+ autoCapitalize : false
+ }, {
+ xtype: 'textfield',
+ name : 'website',
+ label: 'Website',
+ placeHolder: 'http://blah.com',
+ useClearIcon: true
+ }, {
+ xtype: 'hiddenfield',
+ name : 'id',
+ label: 'id'
+ }]