Permalink
Browse files

Adding OrcaleCRM stuff

  • Loading branch information...
1 parent 909e756 commit 39f65fb98d9754268133c75483f156ebdfd567c5 Brian Moore committed Sep 30, 2010
Showing with 197,528 additions and 65 deletions.
  1. +28 −0 OrcaleCRM-rhodes/Rakefile
  2. +10 −0 OrcaleCRM-rhodes/app/Contact/contact.rb
  3. +58 −0 OrcaleCRM-rhodes/app/Contact/contact_controller.rb
  4. +29 −0 OrcaleCRM-rhodes/app/Contact/edit.bb.erb
  5. +32 −0 OrcaleCRM-rhodes/app/Contact/edit.erb
  6. +21 −0 OrcaleCRM-rhodes/app/Contact/index.bb.erb
  7. +26 −0 OrcaleCRM-rhodes/app/Contact/index.erb
  8. +29 −0 OrcaleCRM-rhodes/app/Contact/new.bb.erb
  9. +31 −0 OrcaleCRM-rhodes/app/Contact/new.erb
  10. +26 −0 OrcaleCRM-rhodes/app/Contact/show.bb.erb
  11. +28 −0 OrcaleCRM-rhodes/app/Contact/show.erb
  12. +75 −0 OrcaleCRM-rhodes/app/Settings/controller.rb
  13. +17 −0 OrcaleCRM-rhodes/app/Settings/home.bb.erb
  14. +20 −0 OrcaleCRM-rhodes/app/Settings/home.erb
  15. +32 −0 OrcaleCRM-rhodes/app/Settings/index.bb.erb
  16. +30 −0 OrcaleCRM-rhodes/app/Settings/index.erb
  17. +35 −0 OrcaleCRM-rhodes/app/Settings/login.bb.erb
  18. +27 −0 OrcaleCRM-rhodes/app/Settings/login.erb
  19. +15 −0 OrcaleCRM-rhodes/app/Settings/reset.bb.erb
  20. +17 −0 OrcaleCRM-rhodes/app/Settings/reset.erb
  21. +3 −0 OrcaleCRM-rhodes/app/Settings/wait.bb.erb
  22. +5 −0 OrcaleCRM-rhodes/app/Settings/wait.erb
  23. +16 −0 OrcaleCRM-rhodes/app/application.rb
  24. +126 −0 OrcaleCRM-rhodes/app/helpers/application_helper.rb
  25. +18 −0 OrcaleCRM-rhodes/app/helpers/browser_helper.rb
  26. +26 −0 OrcaleCRM-rhodes/app/index.bb.erb
  27. +26 −0 OrcaleCRM-rhodes/app/index.erb
  28. +42 −0 OrcaleCRM-rhodes/app/layout.erb
  29. +11 −0 OrcaleCRM-rhodes/app/loading.html
  30. +7 −0 OrcaleCRM-rhodes/app/test/contact_spec.rb
  31. +20 −0 OrcaleCRM-rhodes/build.yml
  32. BIN OrcaleCRM-rhodes/icon/icon.ico
  33. BIN OrcaleCRM-rhodes/icon/icon.png
  34. +330 −0 OrcaleCRM-rhodes/public/css/android.css
  35. +115 −0 OrcaleCRM-rhodes/public/css/blackberry.css
  36. +410 −0 OrcaleCRM-rhodes/public/css/iphone.css
  37. +222 −0 OrcaleCRM-rhodes/public/css/windows_mobile.css
  38. +21 −0 OrcaleCRM-rhodes/public/images/IUI_LICENSE.txt
  39. BIN OrcaleCRM-rhodes/public/images/android/btn_check_off.png
  40. BIN OrcaleCRM-rhodes/public/images/android/btn_check_on.png
  41. BIN OrcaleCRM-rhodes/public/images/android/btn_radio_off.png
  42. BIN OrcaleCRM-rhodes/public/images/android/btn_radio_on.png
  43. BIN OrcaleCRM-rhodes/public/images/android/disclosure.png
  44. BIN OrcaleCRM-rhodes/public/images/android/ic_menu_more.png
  45. BIN OrcaleCRM-rhodes/public/images/backButton.png
  46. BIN OrcaleCRM-rhodes/public/images/blueButton.png
  47. BIN OrcaleCRM-rhodes/public/images/cancel.png
  48. BIN OrcaleCRM-rhodes/public/images/grayButton.png
  49. BIN OrcaleCRM-rhodes/public/images/iphone/disclosure.png
  50. BIN OrcaleCRM-rhodes/public/images/iphone/disclosure_detail.png
  51. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/backButton.png
  52. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/blueButton.png
  53. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/cancel.png
  54. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/chevron.png
  55. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/grayButton.png
  56. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/listArrowSel.png
  57. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/listGroup.png
  58. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/loading.gif
  59. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/on_off.png
  60. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/pinstripes.png
  61. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/selection.png
  62. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/thumb.png
  63. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/toggle.png
  64. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/toggleOn.png
  65. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/toolButton.png
  66. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/toolbar.png
  67. BIN OrcaleCRM-rhodes/public/images/iphone/jqtouch/whiteButton.png
  68. BIN OrcaleCRM-rhodes/public/images/iphone/radiobutton.png
  69. BIN OrcaleCRM-rhodes/public/images/iphone/select.png
  70. BIN OrcaleCRM-rhodes/public/images/iphone/switch.png
  71. BIN OrcaleCRM-rhodes/public/images/iui-logo-touch-icon.png
  72. BIN OrcaleCRM-rhodes/public/images/listArrow.png
  73. BIN OrcaleCRM-rhodes/public/images/listArrowDown.png
  74. BIN OrcaleCRM-rhodes/public/images/listArrowSel.png
  75. BIN OrcaleCRM-rhodes/public/images/listGroup.png
  76. BIN OrcaleCRM-rhodes/public/images/loading.gif
  77. BIN OrcaleCRM-rhodes/public/images/pinstripes.png
  78. BIN OrcaleCRM-rhodes/public/images/right_button.png
  79. BIN OrcaleCRM-rhodes/public/images/selection.png
  80. BIN OrcaleCRM-rhodes/public/images/thumb.png
  81. BIN OrcaleCRM-rhodes/public/images/toggle.png
  82. BIN OrcaleCRM-rhodes/public/images/toggleOn.png
  83. BIN OrcaleCRM-rhodes/public/images/toolButton.png
  84. BIN OrcaleCRM-rhodes/public/images/toolButton_new.png
  85. BIN OrcaleCRM-rhodes/public/images/toolbar.png
  86. BIN OrcaleCRM-rhodes/public/images/whiteButton.png
  87. +378 −0 OrcaleCRM-rhodes/public/jqtouch/jqtouch.css
  88. +741 −0 OrcaleCRM-rhodes/public/jqtouch/jqtouch.js
  89. +60 −0 OrcaleCRM-rhodes/public/jqtouch/jqtouch.transitions.js
  90. +19 −0 OrcaleCRM-rhodes/public/jqtouch/jquery.1.3.2.min.js
  91. +1 −0 OrcaleCRM-rhodes/public/js/application.js
  92. +4 −0 OrcaleCRM-rhodes/public/js/rho.js
  93. +59 −0 OrcaleCRM-rhodes/public/js/rhogeolocation-wm.js
  94. +11 −0 OrcaleCRM-rhodes/public/js/rhogeolocation.js
  95. +32 −0 OrcaleCRM-rhodes/rhoconfig.txt
  96. +1 −0 OrcaleCRM-rhodes/rholog-4.0.2.txt
  97. +1 −0 OrcaleCRM-rhodes/sim-public-4.0.2
  98. +2 −0 OrcaleCRM-rhosync/.gems
  99. +19 −0 OrcaleCRM-rhosync/Rakefile
  100. +29 −0 OrcaleCRM-rhosync/application.rb
  101. +33 −0 OrcaleCRM-rhosync/config.ru
  102. +102 −0 OrcaleCRM-rhosync/config.xml
  103. +59 −0 OrcaleCRM-rhosync/loadconfig.rb
  104. +1 −0 OrcaleCRM-rhosync/settings/license.key
  105. +17 −0 OrcaleCRM-rhosync/settings/settings.yml
  106. +2 −0 OrcaleCRM-rhosync/sources/Contact.wsdl
  107. +115,831 −0 OrcaleCRM-rhosync/sources/ContactWsdl.rb
  108. +83 −0 OrcaleCRM-rhosync/sources/ContactWsdlDriver.rb
  109. +77,420 −0 OrcaleCRM-rhosync/sources/ContactWsdlMappingRegistry.rb
  110. +63 −0 OrcaleCRM-rhosync/sources/Mapping.rb
  111. +2 −0 OrcaleCRM-rhosync/sources/Mapping.wsdl
  112. +51 −0 OrcaleCRM-rhosync/sources/MappingDriver.rb
  113. +92 −0 OrcaleCRM-rhosync/sources/MappingMappingRegistry.rb
  114. +238 −0 OrcaleCRM-rhosync/sources/contact.rb
  115. +51 −0 OrcaleCRM-rhosync/sources/mappingClient.rb
  116. +32 −0 OrcaleCRM-rhosync/sources/wsse_authentication.rb
  117. +27 −0 OrcaleCRM-rhosync/spec/spec_helper.rb
  118. +1 −1 bart-server/coverage/application_rb.html
  119. +14 −14 bart-server/coverage/index.html
  120. +16 −16 bart-server/coverage/sources-route_rb.html
  121. +1 −1 bart-server/coverage/sources-routestop_rb.html
  122. +9 −9 bart-server/coverage/sources-station_rb.html
  123. +3 −3 bart-server/sources/route.rb
  124. +3 −3 bart-server/sources/station.rb
  125. +1 −1 bart/rholog-4.0.2.txt
  126. +1 −1 bart/sim-public-4.0.2
  127. +25 −8 contact/app/Customer/customer_controller.rb
  128. +9 −8 contact/build.yml
@@ -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."
+ 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,10 @@
+# The model has already been created by the framework, and extends Rhom::RhomObject
+# You can add more methods here
+class Contact
+ include Rhom::PropertyBag
+
+ # Uncomment the following line to enable sync with Contact.
+ enable :sync
+
+ #add model specifc code here
+end
@@ -0,0 +1,58 @@
+require 'rho/rhocontroller'
+require 'helpers/browser_helper'
+
+class ContactController < Rho::RhoController
+ include BrowserHelper
+
+ #GET /Contact
+ def index
+ @contacts = Contact.find(:all)
+ render
+ end
+
+ # GET /Contact/{1}
+ def show
+ @contact = Contact.find(@params['id'])
+ if @contact
+ render :action => :show
+ else
+ redirect :action => :index
+ end
+ end
+
+ # GET /Contact/new
+ def new
+ @contact = Contact.new
+ render :action => :new
+ end
+
+ # GET /Contact/{1}/edit
+ def edit
+ @contact = Contact.find(@params['id'])
+ if @contact
+ render :action => :edit
+ else
+ redirect :action => :index
+ end
+ end
+
+ # POST /Contact/create
+ def create
+ @contact = Contact.create(@params['contact'])
+ redirect :action => :index
+ end
+
+ # POST /Contact/{1}/update
+ def update
+ @contact = Contact.find(@params['id'])
+ @contact.update_attributes(@params['contact']) if @contact
+ redirect :action => :index
+ end
+
+ # POST /Contact/{1}/delete
+ def delete
+ @contact = Contact.find(@params['id'])
+ @contact.destroy if @contact
+ redirect :action => :index
+ end
+end
@@ -0,0 +1,29 @@
+<div id="pageTitle">
+ <h1>Edit <%= @contact.contactFullName%></h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Back", :action => :show, :id => @contact.object %>
+ <%= link_to "Delete", :action => :delete, :id => @contact.object %>
+</div>
+
+
+<div id="content">
+ <form method="POST" action="<%= url_for :action => :update %>">
+ <input type="hidden" name="id" value="<%= @contact.object %>"/>
+ <table>
+
+ <tr>
+ <td class="itemLabel">Contactfullname: </td>
+ <td class="itemValue"><input type="text" name="contact[contactFullName]" value="<%= @contact.contactFullName %>"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Workphone: </td>
+ <td class="itemValue"><input type="text" name="contact[workPhone]" value="<%= @contact.workPhone %>"/></td>
+ </tr>
+
+ </table>
+ <input type="submit" class="standardButton" value="Update" />
+ </form>
+</div>
@@ -0,0 +1,32 @@
+<div class="pageTitle">
+ <h1>Edit <%= @contact.contactFullName %></h1>
+</div>
+
+<div class="toolbar">
+ <div class="leftItem backButton">
+ <a href="<%= url_for :action => :show, :id => @contact.object %>">Cancel</a>
+ </div>
+ <div class="rightItem regularButton">
+ <a class="button" href="<%= url_for :action => :delete, :id => @contact.object %>">Delete</a>
+ </div>
+</div>
+
+<div class="content">
+ <form method="POST" action="<%= url_for :action => :update %>">
+ <input type="hidden" name="id" value="<%= @contact.object %>"/>
+ <ul>
+
+ <li>
+ <label for="contact[contactFullName]" class="fieldLabel">Contactfullname</label>
+ <input type="text" name="contact[contactFullName]" value="<%= @contact.contactFullName %>" <%= placeholder( "Contactfullname" ) %> />
+ </li>
+
+ <li>
+ <label for="contact[workPhone]" class="fieldLabel">Workphone</label>
+ <input type="text" name="contact[workPhone]" value="<%= @contact.workPhone %>" <%= placeholder( "Workphone" ) %> />
+ </li>
+
+ </ul>
+ <input type="submit" class="standardButton" value="Update"/>
+ </form>
+</div>
@@ -0,0 +1,21 @@
+<div id="pageTitle">
+ <h1>Contacts</h1>
+</div>
+
+
+<div id="toolbar">
+ <%= link_to "New", :action => :new %>
+ <%= link_to "Home", RhoConfig::start_path %>
+</div>
+
+<div id="content">
+ <table>
+ <tr>
+ <% @contacts.each do |obj| %>
+
+ <td class="recordLabel"><%= link_to "#{obj.contactFullName}", :action => :show, :id => obj.object %></td>
+
+ <% end %>
+ </tr>
+ </table>
+</div>
@@ -0,0 +1,26 @@
+<div class="pageTitle">
+ <h1>Contacts</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>
+ <% @contacts.each do |contact| %>
+
+ <li>
+ <a href="<%= url_for :action => :show, :id => contact.object %>">
+ <span class="title"><%= contact.contactFullName %></span><span class="disclosure_indicator"></span>
+ </a>
+ </li>
+
+ <% end %>
+ </ul>
+</div>
@@ -0,0 +1,29 @@
+<div id="pageTitle">
+ <h1>New Contact</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="<%= @contact.object %>"/>
+ <table>
+
+ <tr>
+ <td class="itemLabel">Contactfullname: </td>
+ <td class="itemValue"><input type="text" name="contact[contactFullName]"/></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">Workphone: </td>
+ <td class="itemValue"><input type="text" name="contact[workPhone]"/></td>
+ </tr>
+
+ </table>
+ <input type="submit" class="standardButton" value="Create" />
+ </form>
+</div>
@@ -0,0 +1,31 @@
+<div class="pageTitle">
+ <h1>New <%= @contact.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="<%= @contact.object %>"/>
+ <ul>
+
+ <li>
+ <label for="contact[contactFullName]" class="fieldLabel">Contactfullname</label>
+ <input type="text" name="contact[contactFullName]" <%=
+ placeholder("Contactfullname") %> />
+ </li>
+
+ <li>
+ <label for="contact[workPhone]" class="fieldLabel">Workphone</label>
+ <input type="text" name="contact[workPhone]" <%=
+ placeholder("Workphone") %> />
+ </li>
+
+ </ul>
+ <input type="submit" class="standardButton" value="Create"/>
+ </form>
+</div>
@@ -0,0 +1,26 @@
+<div id="pageTitle">
+ <h1><%= @contact.contactFullName%></h1>
+</div>
+
+<div id="toolbar">
+ <%= link_to "Back", :action => :index %>
+ <%= link_to "Edit", :action => :edit, :id => @contact.object %>
+</div>
+
+
+<div id="content">
+
+ <table>
+
+ <tr>
+ <td class="itemLabel">ContactFullName</td>
+ <td class="itemValue"><%= @contact.contactFullName%></td>
+ </tr>
+
+ <tr>
+ <td class="itemLabel">WorkPhone</td>
+ <td class="itemValue"><%= @contact.workPhone%></td>
+ </tr>
+
+ </table>
+</div>
@@ -0,0 +1,28 @@
+<div class="pageTitle">
+ <h1><%= @contact.contactFullName %></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 => @contact.object %>">Edit</a>
+ </div>
+</div>
+
+<div class="content">
+ <ul>
+
+ <li>
+ <div class="itemLabel">ContactFullName</div>
+ <div class="itemValue"><%= @contact.contactFullName %></div>
+ </li>
+
+ <li>
+ <div class="itemLabel">WorkPhone</div>
+ <div class="itemValue"><%= @contact.workPhone %></div>
+ </li>
+
+ </ul>
+</div>
Oops, something went wrong. Retry.

0 comments on commit 39f65fb

Please sign in to comment.