Permalink
Browse files

Salesforce webinars

  • Loading branch information...
1 parent b428642 commit a445f8e82fe8b41d90c8f11c7c983f9548deaa98 Brian Moore committed Jan 7, 2011
Showing with 18,131 additions and 13,417 deletions.
  1. +28 −0 SalesForce-metadata/Rakefile
  2. +34 −0 SalesForce-metadata/app/Saccount/edit.bb.erb
  3. +37 −0 SalesForce-metadata/app/Saccount/edit.erb
  4. +21 −0 SalesForce-metadata/app/Saccount/index.bb.erb
  5. +26 −0 SalesForce-metadata/app/Saccount/index.erb
  6. +34 −0 SalesForce-metadata/app/Saccount/new.bb.erb
  7. +37 −0 SalesForce-metadata/app/Saccount/new.erb
  8. +10 −0 SalesForce-metadata/app/Saccount/saccount.rb
  9. +58 −0 SalesForce-metadata/app/Saccount/saccount_controller.rb
  10. +31 −0 SalesForce-metadata/app/Saccount/show.bb.erb
  11. +39 −0 SalesForce-metadata/app/Saccount/show.erb
  12. +39 −0 SalesForce-metadata/app/Scontact/edit.bb.erb
  13. +40 −0 SalesForce-metadata/app/Scontact/edit.erb
  14. +21 −0 SalesForce-metadata/app/Scontact/index.bb.erb
  15. +26 −0 SalesForce-metadata/app/Scontact/index.erb
  16. +39 −0 SalesForce-metadata/app/Scontact/new.bb.erb
  17. +45 −0 SalesForce-metadata/app/Scontact/new.erb
  18. +10 −0 SalesForce-metadata/app/Scontact/scontact.rb
  19. +65 −0 SalesForce-metadata/app/Scontact/scontact_controller.rb
  20. +36 −0 SalesForce-metadata/app/Scontact/show.bb.erb
  21. +47 −0 SalesForce-metadata/app/Scontact/show.erb
  22. +75 −0 SalesForce-metadata/app/Settings/controller.rb
  23. +17 −0 SalesForce-metadata/app/Settings/home.bb.erb
  24. +20 −0 SalesForce-metadata/app/Settings/home.erb
  25. +32 −0 SalesForce-metadata/app/Settings/index.bb.erb
  26. +30 −0 SalesForce-metadata/app/Settings/index.erb
  27. +35 −0 SalesForce-metadata/app/Settings/login.bb.erb
  28. +27 −0 SalesForce-metadata/app/Settings/login.erb
  29. +15 −0 SalesForce-metadata/app/Settings/reset.bb.erb
  30. +17 −0 SalesForce-metadata/app/Settings/reset.erb
  31. +3 −0 SalesForce-metadata/app/Settings/wait.bb.erb
  32. +5 −0 SalesForce-metadata/app/Settings/wait.erb
  33. +16 −0 SalesForce-metadata/app/application.rb
  34. +126 −0 SalesForce-metadata/app/helpers/application_helper.rb
  35. +18 −0 SalesForce-metadata/app/helpers/browser_helper.rb
  36. +26 −0 SalesForce-metadata/app/index.bb.erb
  37. +29 −0 SalesForce-metadata/app/index.erb
  38. +45 −0 SalesForce-metadata/app/layout.erb
  39. +11 −0 SalesForce-metadata/app/loading.html
  40. +7 −0 SalesForce-metadata/app/test/saccount_spec.rb
  41. +7 −0 SalesForce-metadata/app/test/scontact_spec.rb
  42. +19 −0 SalesForce-metadata/build.yml
  43. BIN SalesForce-metadata/icon/icon.ico
  44. BIN SalesForce-metadata/icon/icon.png
  45. +330 −0 SalesForce-metadata/public/css/android.css
  46. +115 −0 SalesForce-metadata/public/css/blackberry.css
  47. +411 −0 SalesForce-metadata/public/css/iphone.css
  48. +222 −0 SalesForce-metadata/public/css/windows_mobile.css
  49. +21 −0 SalesForce-metadata/public/images/IUI_LICENSE.txt
  50. BIN SalesForce-metadata/public/images/android/btn_check_off.png
  51. BIN SalesForce-metadata/public/images/android/btn_check_on.png
  52. BIN SalesForce-metadata/public/images/android/btn_radio_off.png
  53. BIN SalesForce-metadata/public/images/android/btn_radio_on.png
  54. BIN SalesForce-metadata/public/images/android/disclosure.png
  55. BIN SalesForce-metadata/public/images/android/ic_menu_more.png
  56. BIN SalesForce-metadata/public/images/backButton.png
  57. BIN SalesForce-metadata/public/images/blueButton.png
  58. BIN SalesForce-metadata/public/images/cancel.png
  59. BIN SalesForce-metadata/public/images/grayButton.png
  60. BIN SalesForce-metadata/public/images/iphone/disclosure.png
  61. BIN SalesForce-metadata/public/images/iphone/disclosure_detail.png
  62. BIN SalesForce-metadata/public/images/iphone/jqtouch/backButton.png
  63. BIN SalesForce-metadata/public/images/iphone/jqtouch/blueButton.png
  64. BIN SalesForce-metadata/public/images/iphone/jqtouch/cancel.png
  65. BIN SalesForce-metadata/public/images/iphone/jqtouch/chevron.png
  66. BIN SalesForce-metadata/public/images/iphone/jqtouch/grayButton.png
  67. BIN SalesForce-metadata/public/images/iphone/jqtouch/listArrowSel.png
  68. BIN SalesForce-metadata/public/images/iphone/jqtouch/listGroup.png
  69. BIN SalesForce-metadata/public/images/iphone/jqtouch/loading.gif
  70. BIN SalesForce-metadata/public/images/iphone/jqtouch/on_off.png
  71. BIN SalesForce-metadata/public/images/iphone/jqtouch/pinstripes.png
  72. BIN SalesForce-metadata/public/images/iphone/jqtouch/selection.png
  73. BIN SalesForce-metadata/public/images/iphone/jqtouch/thumb.png
  74. BIN SalesForce-metadata/public/images/iphone/jqtouch/toggle.png
  75. BIN SalesForce-metadata/public/images/iphone/jqtouch/toggleOn.png
  76. BIN SalesForce-metadata/public/images/iphone/jqtouch/toolButton.png
  77. BIN SalesForce-metadata/public/images/iphone/jqtouch/toolbar.png
  78. BIN SalesForce-metadata/public/images/iphone/jqtouch/whiteButton.png
  79. BIN SalesForce-metadata/public/images/iphone/radiobutton.png
  80. BIN SalesForce-metadata/public/images/iphone/select.png
  81. BIN SalesForce-metadata/public/images/iphone/switch.png
  82. BIN SalesForce-metadata/public/images/iui-logo-touch-icon.png
  83. BIN SalesForce-metadata/public/images/listArrow.png
  84. BIN SalesForce-metadata/public/images/listArrowDown.png
  85. BIN SalesForce-metadata/public/images/listArrowSel.png
  86. BIN SalesForce-metadata/public/images/listGroup.png
  87. BIN SalesForce-metadata/public/images/loading.gif
  88. BIN SalesForce-metadata/public/images/pinstripes.png
  89. BIN SalesForce-metadata/public/images/right_button.png
  90. BIN SalesForce-metadata/public/images/selection.png
  91. BIN SalesForce-metadata/public/images/thumb.png
  92. BIN SalesForce-metadata/public/images/toggle.png
  93. BIN SalesForce-metadata/public/images/toggleOn.png
  94. BIN SalesForce-metadata/public/images/toolButton.png
  95. BIN SalesForce-metadata/public/images/toolButton_new.png
  96. BIN SalesForce-metadata/public/images/toolbar.png
  97. BIN SalesForce-metadata/public/images/whiteButton.png
  98. +9 −0 SalesForce-metadata/public/jqtouch/jqtouch-iphone.css
  99. +374 −0 SalesForce-metadata/public/jqtouch/jqtouch.css
  100. +742 −0 SalesForce-metadata/public/jqtouch/jqtouch.js
  101. +60 −0 SalesForce-metadata/public/jqtouch/jqtouch.transitions.js
  102. +19 −0 SalesForce-metadata/public/jqtouch/jquery.1.3.2.min.js
  103. +1 −0 SalesForce-metadata/public/js/application.js
  104. +4 −0 SalesForce-metadata/public/js/rho.js
  105. +59 −0 SalesForce-metadata/public/js/rhogeolocation-wm.js
  106. +11 −0 SalesForce-metadata/public/js/rhogeolocation.js
  107. +33 −0 SalesForce-metadata/rhoconfig.txt
  108. +1 −0 SalesForce-metadata/rholog-4.0.2.txt
  109. +1 −0 SalesForce-metadata/sim-public-4.0.2
  110. +5 −2 SalesForce-rhodes/build.yml
  111. +1 −1 SalesForce-rhodes/rhoconfig.txt
  112. +3 −1 SalesForce-rhosync/application.rb
  113. +55 −43 SalesForce-rhosync/coverage/application_rb.html
  114. +27 −27 SalesForce-rhosync/coverage/index.html
  115. +1 −1 SalesForce-rhosync/coverage/sources-defaultDriver_rb.html
  116. +425 −425 SalesForce-rhosync/coverage/sources-defaultMappingRegistry_rb.html
  117. +12,444 −12,420 SalesForce-rhosync/coverage/sources-default_rb.html
  118. +1 −1 SalesForce-rhosync/coverage/sources-saccount_rb.html
  119. +488 −68 SalesForce-rhosync/coverage/sources-scontact_rb.html
  120. +3 −0 SalesForce-rhosync/settings/settings.yml
  121. +4 −0 SalesForce-rhosync/sources/default.rb
  122. +424 −424 SalesForce-rhosync/sources/defaultMappingRegistry.rb
  123. +65 −4 SalesForce-rhosync/sources/scontact.rb
  124. +43 −0 salesforcelistener/NotificationService.rb
  125. +97 −0 salesforcelistener/default.rb
  126. +113 −0 salesforcelistener/defaultMappingRegistry.rb
  127. +76 −0 salesforcelistener/defaultServant.rb
  128. +140 −0 salesforcelistener/workflowOutboundMessage.wsdl.wsdl
@@ -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
+
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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
@@ -0,0 +1,58 @@
+require 'rho/rhocontroller'
+require 'helpers/browser_helper'
+
+class SaccountController < Rho::RhoController
+ include BrowserHelper
+
+ #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
@@ -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>
@@ -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>
Oops, something went wrong.

0 comments on commit a445f8e

Please sign in to comment.