engine_room 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. data/.gitignore +10 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +159 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.rdoc +44 -0
  6. data/Rakefile +30 -0
  7. data/TODO +3 -0
  8. data/app/controllers/engine_room/content_controller.rb +117 -0
  9. data/app/controllers/engine_room/fields_controller.rb +119 -0
  10. data/app/controllers/engine_room/models_controller.rb +89 -0
  11. data/app/controllers/engine_room/pages_controller.rb +17 -0
  12. data/app/controllers/engine_room/sections_controller.rb +74 -0
  13. data/app/controllers/engine_room/users_controller.rb +84 -0
  14. data/app/controllers/er_devise/passwords_controller.rb +6 -0
  15. data/app/controllers/er_devise/registrations_controller.rb +8 -0
  16. data/app/controllers/er_devise/sessions_controller.rb +6 -0
  17. data/app/helpers/engine_room/content_helper.rb +103 -0
  18. data/app/helpers/engine_room/models_helper.rb +21 -0
  19. data/app/models/field.rb +89 -0
  20. data/app/models/section.rb +68 -0
  21. data/app/models/user.rb +31 -0
  22. data/app/views/engine_room/content/_form.html.erb +13 -0
  23. data/app/views/engine_room/content/_overview.html.erb +28 -0
  24. data/app/views/engine_room/content/_sidebar.html.erb +14 -0
  25. data/app/views/engine_room/content/edit.html.erb +38 -0
  26. data/app/views/engine_room/content/index.html.erb +1 -0
  27. data/app/views/engine_room/content/new.html.erb +1 -0
  28. data/app/views/engine_room/content/overview.html.erb +3 -0
  29. data/app/views/engine_room/fields/_form.html.erb +57 -0
  30. data/app/views/engine_room/fields/edit.html.erb +1 -0
  31. data/app/views/engine_room/fields/new.html.erb +1 -0
  32. data/app/views/engine_room/models/_form.html.erb +0 -0
  33. data/app/views/engine_room/models/edit.html.erb +14 -0
  34. data/app/views/engine_room/models/index.html.erb +16 -0
  35. data/app/views/engine_room/models/new.html.erb +14 -0
  36. data/app/views/engine_room/models/overview.html.erb +14 -0
  37. data/app/views/engine_room/pages/dashboard.html.erb +1 -0
  38. data/app/views/engine_room/pages/settings.html.erb +1 -0
  39. data/app/views/engine_room/sections/_form.html.erb +34 -0
  40. data/app/views/engine_room/sections/_sidebar.html.erb +11 -0
  41. data/app/views/engine_room/sections/edit.html.erb +81 -0
  42. data/app/views/engine_room/sections/index.html.erb +3 -0
  43. data/app/views/engine_room/sections/new.html.erb +1 -0
  44. data/app/views/engine_room/users/_form.html.erb +47 -0
  45. data/app/views/engine_room/users/edit.html.erb +11 -0
  46. data/app/views/engine_room/users/index.html.erb +24 -0
  47. data/app/views/engine_room/users/new.html.erb +1 -0
  48. data/app/views/er_devise/mailer/confirmation_instructions.html.erb +5 -0
  49. data/app/views/er_devise/mailer/reset_password_instructions.html.erb +8 -0
  50. data/app/views/er_devise/mailer/unlock_instructions.html.erb +7 -0
  51. data/app/views/er_devise/passwords/edit.html.erb +16 -0
  52. data/app/views/er_devise/passwords/new.html.erb +13 -0
  53. data/app/views/er_devise/registrations/edit.html.erb +42 -0
  54. data/app/views/er_devise/registrations/new.html.erb +21 -0
  55. data/app/views/er_devise/sessions/new.html.erb +23 -0
  56. data/app/views/er_devise/shared/_links.erb +19 -0
  57. data/app/views/layouts/engine_room.html.erb +103 -0
  58. data/app/views/layouts/login.html.erb +71 -0
  59. data/app/views/shared/_content_layout_selector.html.erb +45 -0
  60. data/app/views/shared/_error_messages.html.erb +17 -0
  61. data/config/initializers/devise.rb +146 -0
  62. data/config/initializers/locale.rb +5 -0
  63. data/config/locales/devise.de.yml +42 -0
  64. data/config/locales/devise.en.yml +39 -0
  65. data/config/locales/engine_room.de.yml +33 -0
  66. data/config/locales/engine_room.en.yml +42 -0
  67. data/config/routes.rb +62 -0
  68. data/engine_room.gemspec +35 -0
  69. data/lib/engine_room.rb +17 -0
  70. data/lib/engine_room/action_controller/controller_methods.rb +21 -0
  71. data/lib/engine_room/action_view/view_methods.rb +8 -0
  72. data/lib/engine_room/active_record/record_methods.rb +18 -0
  73. data/lib/engine_room/crummy/custom_renderer.rb +63 -0
  74. data/lib/engine_room/engine.rb +40 -0
  75. data/lib/engine_room/railties/tasks.rake +6 -0
  76. data/lib/engine_room/version.rb +3 -0
  77. data/lib/generators/engine_room/create_image_generator.rb +26 -0
  78. data/lib/generators/engine_room/setup_generator.rb +30 -0
  79. data/lib/generators/engine_room/templates/001_devise_create_users.rb +28 -0
  80. data/lib/generators/engine_room/templates/002_create_sections.rb +16 -0
  81. data/lib/generators/engine_room/templates/003_create_fields.rb +18 -0
  82. data/lib/generators/engine_room/templates/004_create_images.rb +19 -0
  83. data/lib/generators/engine_room/templates/image.rb +4 -0
  84. data/lib/tasks/dummy.rake +45 -0
  85. data/lib/tasks/templates/migrate/050_create_dogs.rb +18 -0
  86. data/lib/tasks/templates/models/dog.rb +3 -0
  87. data/public/images/er/accept.png +0 -0
  88. data/public/images/er/add.png +0 -0
  89. data/public/images/er/add_small.png +0 -0
  90. data/public/images/er/ajax-loader.gif +0 -0
  91. data/public/images/er/attach.png +0 -0
  92. data/public/images/er/back_disabled.jpg +0 -0
  93. data/public/images/er/back_enabled.jpg +0 -0
  94. data/public/images/er/bg/header_gradient_center.jpg +0 -0
  95. data/public/images/er/bg/header_gradient_left.jpg +0 -0
  96. data/public/images/er/bg/header_gradient_right.jpg +0 -0
  97. data/public/images/er/cancel.png +0 -0
  98. data/public/images/er/cog.png +0 -0
  99. data/public/images/er/database_add.png +0 -0
  100. data/public/images/er/delete.png +0 -0
  101. data/public/images/er/delete_small.png +0 -0
  102. data/public/images/er/down_arrow.gif +0 -0
  103. data/public/images/er/down_arrow.png +0 -0
  104. data/public/images/er/email.png +0 -0
  105. data/public/images/er/exclamation.png +0 -0
  106. data/public/images/er/forward_disabled.jpg +0 -0
  107. data/public/images/er/forward_enabled.jpg +0 -0
  108. data/public/images/er/help.png +0 -0
  109. data/public/images/er/image_add.png +0 -0
  110. data/public/images/er/information.png +0 -0
  111. data/public/images/er/link.png +0 -0
  112. data/public/images/er/loader.gif +0 -0
  113. data/public/images/er/telephone.png +0 -0
  114. data/public/images/er/up_arrow.gif +0 -0
  115. data/public/images/er/up_arrow.png +0 -0
  116. data/public/images/er/user.png +0 -0
  117. data/public/images/er/wrench.png +0 -0
  118. data/public/images/er/zoom.png +0 -0
  119. data/public/javascripts/er/dd_belatedpng.js +328 -0
  120. data/public/javascripts/er/fancybox/blank.gif +0 -0
  121. data/public/javascripts/er/fancybox/fancy_close.png +0 -0
  122. data/public/javascripts/er/fancybox/fancy_loading.png +0 -0
  123. data/public/javascripts/er/fancybox/fancy_nav_left.png +0 -0
  124. data/public/javascripts/er/fancybox/fancy_nav_right.png +0 -0
  125. data/public/javascripts/er/fancybox/fancy_shadow_e.png +0 -0
  126. data/public/javascripts/er/fancybox/fancy_shadow_n.png +0 -0
  127. data/public/javascripts/er/fancybox/fancy_shadow_ne.png +0 -0
  128. data/public/javascripts/er/fancybox/fancy_shadow_nw.png +0 -0
  129. data/public/javascripts/er/fancybox/fancy_shadow_s.png +0 -0
  130. data/public/javascripts/er/fancybox/fancy_shadow_se.png +0 -0
  131. data/public/javascripts/er/fancybox/fancy_shadow_sw.png +0 -0
  132. data/public/javascripts/er/fancybox/fancy_shadow_w.png +0 -0
  133. data/public/javascripts/er/fancybox/fancy_title_left.png +0 -0
  134. data/public/javascripts/er/fancybox/fancy_title_main.png +0 -0
  135. data/public/javascripts/er/fancybox/fancy_title_over.png +0 -0
  136. data/public/javascripts/er/fancybox/fancy_title_right.png +0 -0
  137. data/public/javascripts/er/fancybox/fancybox-x.png +0 -0
  138. data/public/javascripts/er/fancybox/fancybox-y.png +0 -0
  139. data/public/javascripts/er/fancybox/fancybox.png +0 -0
  140. data/public/javascripts/er/fancybox/jquery.fancybox-1.3.4.css +359 -0
  141. data/public/javascripts/er/fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
  142. data/public/javascripts/er/jquery-1.4.4.min.js +167 -0
  143. data/public/javascripts/er/jquery-ui-1.8.6.custom.min.js +477 -0
  144. data/public/javascripts/er/modernizr-1.5.min.js +28 -0
  145. data/public/javascripts/er/plugins.js +48 -0
  146. data/public/javascripts/er/rails.js +156 -0
  147. data/public/javascripts/er/script.js +50 -0
  148. data/public/stylesheets/.gitkeep +0 -0
  149. data/public/stylesheets/admin.css +417 -0
  150. data/public/stylesheets/boilerplate.css +264 -0
  151. data/public/stylesheets/handheld.css +7 -0
  152. data/public/stylesheets/login.css +125 -0
  153. data/public/stylesheets/skin.css +2 -0
  154. data/public/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  155. data/public/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  156. data/public/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  157. data/public/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  158. data/public/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  159. data/public/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  160. data/public/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  161. data/public/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  162. data/public/stylesheets/smoothness/images/ui-icons_222222_256x240.png +0 -0
  163. data/public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  164. data/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png +0 -0
  165. data/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png +0 -0
  166. data/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  167. data/public/stylesheets/smoothness/jquery-ui-1.8.6.custom.css +479 -0
  168. data/spec/controllers/content_controller_spec.rb +132 -0
  169. data/spec/controllers/fields_controller_spec.rb +103 -0
  170. data/spec/controllers/models_controller_spec.rb +65 -0
  171. data/spec/controllers/pages_controller_spec.rb +40 -0
  172. data/spec/controllers/sections_controller_spec.rb +124 -0
  173. data/spec/dummy/Rakefile +7 -0
  174. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  175. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  176. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  177. data/spec/dummy/config.ru +4 -0
  178. data/spec/dummy/config/application.rb +45 -0
  179. data/spec/dummy/config/boot.rb +10 -0
  180. data/spec/dummy/config/database.yml +22 -0
  181. data/spec/dummy/config/environment.rb +5 -0
  182. data/spec/dummy/config/environments/development.rb +26 -0
  183. data/spec/dummy/config/environments/production.rb +49 -0
  184. data/spec/dummy/config/environments/test.rb +35 -0
  185. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  186. data/spec/dummy/config/initializers/inflections.rb +10 -0
  187. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  188. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  189. data/spec/dummy/config/initializers/session_store.rb +8 -0
  190. data/spec/dummy/config/locales/en.yml +5 -0
  191. data/spec/dummy/config/routes.rb +58 -0
  192. data/spec/dummy/public/404.html +26 -0
  193. data/spec/dummy/public/422.html +26 -0
  194. data/spec/dummy/public/500.html +26 -0
  195. data/spec/dummy/public/favicon.ico +0 -0
  196. data/spec/dummy/public/javascripts/application.js +2 -0
  197. data/spec/dummy/public/javascripts/controls.js +965 -0
  198. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  199. data/spec/dummy/public/javascripts/effects.js +1123 -0
  200. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  201. data/spec/dummy/public/javascripts/rails.js +175 -0
  202. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  203. data/spec/dummy/script/rails +6 -0
  204. data/spec/engine_room_spec.rb +7 -0
  205. data/spec/factories.rb +32 -0
  206. data/spec/integration/navigation_spec.rb +9 -0
  207. data/spec/models/dog_spec.rb +14 -0
  208. data/spec/models/field_spec.rb +74 -0
  209. data/spec/models/section_spec.rb +70 -0
  210. data/spec/models/user_spec.rb +77 -0
  211. data/spec/routing/models_routing_spec.rb +66 -0
  212. data/spec/spec_helper.rb +39 -0
  213. data/spec/support/devise.rb +3 -0
  214. metadata +492 -0
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * Modernizr JavaScript library 1.5
3
+ * http://www.modernizr.com/
4
+ *
5
+ * Copyright (c) 2009-2010 Faruk Ates - http://farukat.es/
6
+ * Dual-licensed under the BSD and MIT licenses.
7
+ * http://www.modernizr.com/license/
8
+ *
9
+ * Featuring major contributions by
10
+ * Paul Irish - http://paulirish.com
11
+ */
12
+ window.Modernizr=function(i,e,I){function C(a,b){for(var c in a)if(m[a[c]]!==I&&(!b||b(a[c],D)))return true}function r(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);return!!C([a,"Webkit"+c,"Moz"+c,"O"+c,"ms"+c,"Khtml"+c],b)}function P(){j[E]=function(a){for(var b=0,c=a.length;b<c;b++)J[a[b]]=!!(a[b]in n);return J}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));j[Q]=function(a){for(var b=0,c,h=a.length;b<h;b++){n.setAttribute("type",a[b]);if(c=n.type!==
13
+ "text"){n.value=K;/tel|search/.test(n.type)||(c=/url|email/.test(n.type)?n.checkValidity&&n.checkValidity()===false:n.value!=K)}L[a[b]]=!!c}return L}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var j={},s=e.documentElement,D=e.createElement("modernizr"),m=D.style,n=e.createElement("input"),E="input",Q=E+"types",K=":)",M=Object.prototype.toString,y=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d={},L={},J={},N=[],u=function(){var a={select:"input",
14
+ change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},b={};return function(c,h){var t=arguments.length==1;if(t&&b[c])return b[c];h=h||document.createElement(a[c]||"div");c="on"+c;var g=c in h;if(!g&&h.setAttribute){h.setAttribute(c,"return;");g=typeof h[c]=="function"}h=null;return t?(b[c]=g):g}}(),F={}.hasOwnProperty,O;O=typeof F!=="undefined"&&typeof F.call!=="undefined"?function(a,b){return F.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]==="undefined"};
15
+ d.canvas=function(){return!!e.createElement("canvas").getContext};d.canvastext=function(){return!!(d.canvas()&&typeof e.createElement("canvas").getContext("2d").fillText=="function")};d.geolocation=function(){return!!navigator.geolocation};d.crosswindowmessaging=function(){return!!i.postMessage};d.websqldatabase=function(){var a=!!i.openDatabase;if(a)try{a=!!openDatabase("testdb","1.0","html5 test db",2E5)}catch(b){a=false}return a};d.indexedDB=function(){return!!i.indexedDB};d.hashchange=function(){return u("hashchange",
16
+ i)&&(document.documentMode===I||document.documentMode>7)};d.historymanagement=function(){return!!(i.history&&history.pushState)};d.draganddrop=function(){return u("drag")&&u("dragstart")&&u("dragenter")&&u("dragover")&&u("dragleave")&&u("dragend")&&u("drop")};d.websockets=function(){return"WebSocket"in i};d.rgba=function(){m.cssText="background-color:rgba(150,255,150,.5)";return(""+m.backgroundColor).indexOf("rgba")!==-1};d.hsla=function(){m.cssText="background-color:hsla(120,40%,100%,.5)";return(""+
17
+ m.backgroundColor).indexOf("rgba")!==-1};d.multiplebgs=function(){m.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(m.background)};d.backgroundsize=function(){return r("backgroundSize")};d.borderimage=function(){return r("borderImage")};d.borderradius=function(){return r("borderRadius","",function(a){return(""+a).indexOf("orderRadius")!==-1})};d.boxshadow=function(){return r("boxShadow")};d.opacity=function(){var a=y.join("opacity:.5;")+"";m.cssText=a;return(""+m.opacity).indexOf("0.5")!==
18
+ -1};d.cssanimations=function(){return r("animationName")};d.csscolumns=function(){return r("columnCount")};d.cssgradients=function(){var a=("background-image:"+y.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+y.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);m.cssText=a;return(""+m.backgroundImage).indexOf("gradient")!==-1};d.cssreflections=function(){return r("boxReflect")};d.csstransforms=function(){return!!C(["transformProperty",
19
+ "WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!C(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(a){var b=document.createElement("style"),c=e.createElement("div");b.textContent="@media ("+y.join("transform-3d),(")+"modernizr){#modernizr{height:3px}}";e.getElementsByTagName("head")[0].appendChild(b);c.id="modernizr";s.appendChild(c);a=c.offsetHeight===3;b.parentNode.removeChild(b);c.parentNode.removeChild(c)}return a};
20
+ d.csstransitions=function(){return r("transitionProperty")};d.fontface=function(){var a;if(/*@cc_on@if(@_jscript_version>=5)!@end@*/0)a=true;else{var b=e.createElement("style"),c=e.createElement("span"),h,t=false,g=e.body,o,w;b.textContent="@font-face{font-family:testfont;src:url('data:font/ttf;base64,AAEAAAAMAIAAAwBAT1MvMliohmwAAADMAAAAVmNtYXCp5qrBAAABJAAAANhjdnQgACICiAAAAfwAAAAEZ2FzcP//AAMAAAIAAAAACGdseWYv5OZoAAACCAAAANxoZWFk69bnvwAAAuQAAAA2aGhlYQUJAt8AAAMcAAAAJGhtdHgGDgC4AAADQAAAABRsb2NhAIQAwgAAA1QAAAAMbWF4cABVANgAAANgAAAAIG5hbWUgXduAAAADgAAABPVwb3N03NkzmgAACHgAAAA4AAECBAEsAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAACAAMDAAAAAAAAgAACbwAAAAoAAAAAAAAAAFBmRWQAAAAgqS8DM/8zAFwDMwDNAAAABQAAAAAAAAAAAAMAAAADAAAAHAABAAAAAABGAAMAAQAAAK4ABAAqAAAABgAEAAEAAgAuqQD//wAAAC6pAP///9ZXAwAAAAAAAAACAAAABgBoAAAAAAAvAAEAAAAAAAAAAAAAAAAAAAABAAIAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEACoAAAAGAAQAAQACAC6pAP//AAAALqkA////1lcDAAAAAAAAAAIAAAAiAogAAAAB//8AAgACACIAAAEyAqoAAwAHAC6xAQAvPLIHBADtMrEGBdw8sgMCAO0yALEDAC88sgUEAO0ysgcGAfw8sgECAO0yMxEhESczESMiARDuzMwCqv1WIgJmAAACAFUAAAIRAc0ADwAfAAATFRQWOwEyNj0BNCYrASIGARQGKwEiJj0BNDY7ATIWFX8aIvAiGhoi8CIaAZIoN/43KCg3/jcoAWD0JB4eJPQkHh7++EY2NkbVRjY2RgAAAAABAEH/+QCdAEEACQAANjQ2MzIWFAYjIkEeEA8fHw8QDxwWFhwWAAAAAQAAAAIAAIuYbWpfDzz1AAsEAAAAAADFn9IuAAAAAMWf0i797/8zA4gDMwAAAAgAAgAAAAAAAAABAAADM/8zAFwDx/3v/98DiAABAAAAAAAAAAAAAAAAAAAABQF2ACIAAAAAAVUAAAJmAFUA3QBBAAAAKgAqACoAWgBuAAEAAAAFAFAABwBUAAQAAgAAAAEAAQAAAEAALgADAAMAAAAQAMYAAQAAAAAAAACLAAAAAQAAAAAAAQAhAIsAAQAAAAAAAgAFAKwAAQAAAAAAAwBDALEAAQAAAAAABAAnAPQAAQAAAAAABQAKARsAAQAAAAAABgAmASUAAQAAAAAADgAaAUsAAwABBAkAAAEWAWUAAwABBAkAAQBCAnsAAwABBAkAAgAKAr0AAwABBAkAAwCGAscAAwABBAkABABOA00AAwABBAkABQAUA5sAAwABBAkABgBMA68AAwABBAkADgA0A/tDb3B5cmlnaHQgMjAwOSBieSBEYW5pZWwgSm9obnNvbi4gIFJlbGVhc2VkIHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgT3BlbiBGb250IExpY2Vuc2UuIEtheWFoIExpIGdseXBocyBhcmUgcmVsZWFzZWQgdW5kZXIgdGhlIEdQTCB2ZXJzaW9uIDMuYmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhTGlnaHRiYWVjMmE5MmJmZmU1MDMyIC0gc3Vic2V0IG9mIEZvbnRGb3JnZSAyLjAgOiBKdXJhIExpZ2h0IDogMjMtMS0yMDA5YmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhIExpZ2h0VmVyc2lvbiAyIGJhZWMyYTkyYmZmZTUwMzIgLSBzdWJzZXQgb2YgSnVyYUxpZ2h0aHR0cDovL3NjcmlwdHMuc2lsLm9yZy9PRkwAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMAA5ACAAYgB5ACAARABhAG4AaQBlAGwAIABKAG8AaABuAHMAbwBuAC4AIAAgAFIAZQBsAGUAYQBzAGUAZAAgAHUAbgBkAGUAcgAgAHQAaABlACAAdABlAHIAbQBzACAAbwBmACAAdABoAGUAIABPAHAAZQBuACAARgBvAG4AdAAgAEwAaQBjAGUAbgBzAGUALgAgAEsAYQB5AGEAaAAgAEwAaQAgAGcAbAB5AHAAaABzACAAYQByAGUAIAByAGUAbABlAGEAcwBlAGQAIAB1AG4AZABlAHIAIAB0AGgAZQAgAEcAUABMACAAdgBlAHIAcwBpAG8AbgAgADMALgBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQBMAGkAZwBoAHQAYgBhAGUAYwAyAGEAOQAyAGIAZgBmAGUANQAwADMAMgAgAC0AIABzAHUAYgBzAGUAdAAgAG8AZgAgAEYAbwBuAHQARgBvAHIAZwBlACAAMgAuADAAIAA6ACAASgB1AHIAYQAgAEwAaQBnAGgAdAAgADoAIAAyADMALQAxAC0AMgAwADAAOQBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQAgAEwAaQBnAGgAdABWAGUAcgBzAGkAbwBuACAAMgAgAGIAYQBlAGMAMgBhADkAMgBiAGYAZgBlADUAMAAzADIAIAAtACAAcwB1AGIAcwBlAHQAIABvAGYAIABKAHUAcgBhAEwAaQBnAGgAdABoAHQAdABwADoALwAvAHMAYwByAGkAcAB0AHMALgBzAGkAbAAuAG8AcgBnAC8ATwBGAEwAAAAAAgAAAAAAAP+BADMAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQACAQIAEQt6ZXJva2F5YWhsaQ==')}";
21
+ e.getElementsByTagName("head")[0].appendChild(b);c.setAttribute("style","font:99px _,arial,helvetica;position:absolute;visibility:hidden");if(!g){g=s.appendChild(e.createElement("fontface"));t=true}c.innerHTML="........";c.id="fonttest";g.appendChild(c);h=c.offsetWidth*c.offsetHeight;c.style.font="99px testfont,_,arial,helvetica";a=h!==c.offsetWidth*c.offsetHeight;var v=function(){if(g.parentNode){a=j.fontface=h!==c.offsetWidth*c.offsetHeight;s.className=s.className.replace(/(no-)?fontface\b/,"")+
22
+ (a?" ":" no-")+"fontface"}};setTimeout(v,75);setTimeout(v,150);addEventListener("load",function(){v();(w=true)&&o&&o(a);setTimeout(function(){t||(g=c);g.parentNode.removeChild(g);b.parentNode.removeChild(b)},50)},false)}j._fontfaceready=function(p){w||a?p(a):(o=p)};return a||h!==c.offsetWidth};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"');b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};
23
+ d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localStorage=function(){return"localStorage"in i&&i.localStorage!==null};d.sessionStorage=function(){try{return"sessionStorage"in i&&i.sessionStorage!==null}catch(a){return false}};d.webworkers=function(){return!!i.Worker};
24
+ d.applicationCache=function(){var a=i.applicationCache;return!!(a&&typeof a.status!="undefined"&&typeof a.update=="function"&&typeof a.swapCache=="function")};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};d.smil=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg","animate")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg",
25
+ "clipPath")))};for(var z in d)if(O(d,z))N.push(((j[z.toLowerCase()]=d[z]())?"":"no-")+z.toLowerCase());j[E]||P();j.addTest=function(a,b){a=a.toLowerCase();if(!j[a]){b=!!b();s.className+=" "+(b?"":"no-")+a;j[a]=b;return j}};m.cssText="";D=n=null;(function(){var a=e.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1})()&&function(a,b){function c(f,k){if(o[f])o[f].styleSheet.cssText+=k;else{var l=t[G],q=b[A]("style");q.media=f;l.insertBefore(q,l[G]);o[f]=q;c(f,k)}}function h(f,
26
+ k){for(var l=new RegExp("\\b("+w+")\\b(?!.*[;}])","gi"),q=function(B){return".iepp_"+B},x=-1;++x<f.length;){k=f[x].media||k;h(f[x].imports,k);c(k,f[x].cssText.replace(l,q))}}for(var t=b.documentElement,g=b.createDocumentFragment(),o={},w="abbr|article|aside|audio|canvas|command|datalist|details|figure|figcaption|footer|header|hgroup|keygen|mark|meter|nav|output|progress|section|source|summary|time|video",v=w.split("|"),p=[],H=-1,G="firstChild",A="createElement";++H<v.length;){b[A](v[H]);g[A](v[H])}g=
27
+ g.appendChild(b[A]("div"));a.attachEvent("onbeforeprint",function(){for(var f,k=b.getElementsByTagName("*"),l,q,x=new RegExp("^"+w+"$","i"),B=-1;++B<k.length;)if((f=k[B])&&(q=f.nodeName.match(x))){l=new RegExp("^\\s*<"+q+"(.*)\\/"+q+">\\s*$","i");g.innerHTML=f.outerHTML.replace(/\r|\n/g," ").replace(l,f.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");l=g.childNodes[0];l.className+=" iepp_"+q;l=p[p.length]=[f,l];f.parentNode.replaceChild(l[1],l[0])}h(b.styleSheets,"all")});a.attachEvent("onafterprint",
28
+ function(){for(var f=-1,k;++f<p.length;)p[f][1].parentNode.replaceChild(p[f][0],p[f][1]);for(k in o)t[G].removeChild(o[k]);o={};p=[]})}(this,e);j._enableHTML5=true;j._version="1.5";s.className=s.className.replace(/\bno-js\b/,"")+" js";s.className+=" "+N.join(" ");return j}(this,this.document);
@@ -0,0 +1,48 @@
1
+
2
+ // remap jQuery to $
3
+ (function($){
4
+
5
+ /*
6
+ $("a#inline").fancybox({
7
+ onCleanup: function() {
8
+ //alert("closed...");
9
+ //return false;
10
+ },
11
+ autoDimensions: false,
12
+ width: 600,
13
+ hideOnContentClick: false,
14
+ hideOnOverlayClick: false,
15
+ showCloseButton: true
16
+ //ajax : {
17
+ // type : "GET",
18
+ // scrolling: 'no'
19
+ //}
20
+ });
21
+ */
22
+
23
+ })(window.jQuery);
24
+
25
+
26
+
27
+ // usage: log('inside coolFunc',this,arguments);
28
+ // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
29
+ window.log = function(){
30
+ log.history = log.history || []; // store logs to an array for reference
31
+ log.history.push(arguments);
32
+ if(this.console){
33
+ console.log( Array.prototype.slice.call(arguments) );
34
+ }
35
+ };
36
+
37
+
38
+
39
+ // catch all document.write() calls
40
+ (function(doc){
41
+ var write = doc.write;
42
+ doc.write = function(q){
43
+ log('document.write(): ',arguments);
44
+ if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);
45
+ };
46
+ })(document);
47
+
48
+
@@ -0,0 +1,156 @@
1
+ /*
2
+ * jquery-ujs
3
+ *
4
+ * http://github.com/rails/jquery-ujs/blob/master/src/rails.js
5
+ *
6
+ * This rails.js file supports jQuery 1.4.3 and 1.4.4 .
7
+ *
8
+ */
9
+
10
+ jQuery(function ($) {
11
+ var csrf_token = $('meta[name=csrf-token]').attr('content'),
12
+ csrf_param = $('meta[name=csrf-param]').attr('content');
13
+
14
+ $.fn.extend({
15
+ /**
16
+ * Triggers a custom event on an element and returns the event result
17
+ * this is used to get around not being able to ensure callbacks are placed
18
+ * at the end of the chain.
19
+ *
20
+ * TODO: deprecate with jQuery 1.4.2 release, in favor of subscribing to our
21
+ * own events and placing ourselves at the end of the chain.
22
+ */
23
+ triggerAndReturn: function (name, data) {
24
+ var event = new $.Event(name);
25
+ this.trigger(event, data);
26
+
27
+ return event.result !== false;
28
+ },
29
+
30
+ /**
31
+ * Handles execution of remote calls. Provides following callbacks:
32
+ *
33
+ * - ajax:before - is execute before the whole thing begings
34
+ * - ajax:loading - is executed before firing ajax call
35
+ * - ajax:success - is executed when status is success
36
+ * - ajax:complete - is execute when status is complete
37
+ * - ajax:failure - is execute in case of error
38
+ * - ajax:after - is execute every single time at the end of ajax call
39
+ */
40
+ callRemote: function () {
41
+ var el = this,
42
+ method = el.attr('method') || el.attr('data-method') || 'GET',
43
+ url = el.attr('action') || el.attr('href'),
44
+ dataType = el.attr('data-type') || ($.ajaxSettings && $.ajaxSettings.dataType) || 'script';
45
+
46
+ if (url === undefined) {
47
+ throw "No URL specified for remote call (action or href must be present).";
48
+ } else {
49
+ if (el.triggerAndReturn('ajax:before')) {
50
+ var data = el.is('form') ? el.serializeArray() : [];
51
+ $.ajax({
52
+ url: url,
53
+ data: data,
54
+ dataType: dataType,
55
+ type: method.toUpperCase(),
56
+ beforeSend: function (xhr) {
57
+ el.trigger('ajax:loading', xhr);
58
+ },
59
+ success: function (data, status, xhr) {
60
+ el.trigger('ajax:success', [data, status, xhr]);
61
+ },
62
+ complete: function (xhr) {
63
+ el.trigger('ajax:complete', xhr);
64
+ },
65
+ error: function (xhr, status, error) {
66
+ el.trigger('ajax:failure', [xhr, status, error]);
67
+ }
68
+ });
69
+ }
70
+
71
+ el.trigger('ajax:after');
72
+ }
73
+ }
74
+ });
75
+
76
+ /**
77
+ * confirmation handler
78
+ */
79
+
80
+ $('body').delegate('a[data-confirm], button[data-confirm], input[data-confirm]', 'click.rails', function () {
81
+ var el = $(this);
82
+ if (el.triggerAndReturn('confirm')) {
83
+ if (!confirm(el.attr('data-confirm'))) {
84
+ return false;
85
+ }
86
+ }
87
+ });
88
+
89
+
90
+
91
+ /**
92
+ * remote handlers
93
+ */
94
+ $('form[data-remote]').live('submit.rails', function (e) {
95
+ $(this).callRemote();
96
+ e.preventDefault();
97
+ });
98
+
99
+ $('a[data-remote],input[data-remote]').live('click.rails', function (e) {
100
+ $(this).callRemote();
101
+ e.preventDefault();
102
+ });
103
+
104
+ $('a[data-method]:not([data-remote])').live('click.rails', function (e){
105
+ var link = $(this),
106
+ href = link.attr('href'),
107
+ method = link.attr('data-method'),
108
+ form = $('<form method="post" action="'+href+'"></form>'),
109
+ metadata_input = '<input name="_method" value="'+method+'" type="hidden" />';
110
+
111
+ if (csrf_param !== undefined && csrf_token !== undefined) {
112
+ metadata_input += '<input name="'+csrf_param+'" value="'+csrf_token+'" type="hidden" />';
113
+ }
114
+
115
+ form.hide()
116
+ .append(metadata_input)
117
+ .appendTo('body');
118
+
119
+ e.preventDefault();
120
+ form.submit();
121
+ });
122
+
123
+ /**
124
+ * disable-with handlers
125
+ */
126
+ var disable_with_input_selector = 'input[data-disable-with]',
127
+ disable_with_form_remote_selector = 'form[data-remote]:has(' + disable_with_input_selector + ')',
128
+ disable_with_form_not_remote_selector = 'form:not([data-remote]):has(' + disable_with_input_selector + ')';
129
+
130
+ var disable_with_input_function = function () {
131
+ $(this).find(disable_with_input_selector).each(function () {
132
+ var input = $(this);
133
+ input.data('enable-with', input.val())
134
+ .attr('value', input.attr('data-disable-with'))
135
+ .attr('disabled', 'disabled');
136
+ });
137
+ };
138
+
139
+ $(disable_with_form_remote_selector).live('ajax:before.rails', disable_with_input_function);
140
+ $(disable_with_form_not_remote_selector).live('submit.rails', disable_with_input_function);
141
+
142
+ $(disable_with_form_remote_selector).live('ajax:complete.rails', function () {
143
+ $(this).find(disable_with_input_selector).each(function () {
144
+ var input = $(this);
145
+ input.removeAttr('disabled')
146
+ .val(input.data('enable-with'));
147
+ });
148
+ });
149
+
150
+ var jqueryVersion = $().jquery;
151
+
152
+ if ( (jqueryVersion === '1.4') || (jqueryVersion === '1.4.1') || (jqueryVersion === '1.4.2') ){
153
+ alert('This rails.js does not support the jQuery version you are using. Please read documentation.');
154
+ }
155
+
156
+ });
@@ -0,0 +1,50 @@
1
+ /* Author:
2
+
3
+ */
4
+
5
+ $(document).ready(function() {
6
+
7
+ $("#tabs").tabs().show();
8
+
9
+ $("#overview-fields-table tbody").sortable({
10
+ axis: 'y',
11
+ opacity: 0.6,
12
+ stop: function(event, ui){
13
+ ui.item.effect("highlight", {}, 500);
14
+ }
15
+ });
16
+ //$("#overview-fields-table tbody").disableSelection();
17
+
18
+ // automatically reload forms when select has changed
19
+ $("form div.reload select").change(function(){
20
+ var hiddenField = document.createElement('input');
21
+ $(hiddenField).attr({
22
+ type: 'hidden',
23
+ name: 's_action',
24
+ value: 'reload'
25
+ });
26
+ $("form").append(hiddenField).submit();
27
+ });
28
+
29
+ });
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
File without changes
@@ -0,0 +1,417 @@
1
+ body {
2
+ background: #eee;
3
+ color: #333;
4
+ font-family: Helvetica, Arial, sans-serif;
5
+ font-size: 14px;
6
+ }
7
+
8
+ a:link,
9
+ a:visited {
10
+ color: #0077ff;
11
+ text-decoration: underline;
12
+ }
13
+ a:hover,
14
+ a:active {
15
+ color: #000;
16
+ }
17
+
18
+ h1 {
19
+ font-size: 1.6em;
20
+ margin: 15px 0;
21
+ }
22
+ h2 {
23
+ font-size: 1.3em;
24
+ margin: 15px 0;
25
+ }
26
+ h3 {
27
+ font-size: 1.1em;
28
+ margin: 10px 0;
29
+ }
30
+
31
+ ul {
32
+ margin-left: 20px;
33
+ }
34
+
35
+ .icon-cut,
36
+ .icon-add,
37
+ .icon-edit,
38
+ .icon-delete {
39
+ background-position: left 0;
40
+ background-repeat: no-repeat;
41
+ padding: 0 0 4px 20px;
42
+ }
43
+ .icon-add {
44
+ background-image: url(../images/er/add.png) !important;
45
+ }
46
+ .icon-edit {
47
+ background-image: url(../images/er/wrench.png) !important;
48
+ }
49
+ .icon-delete {
50
+ background-image: url(../images/er/delete.png) !important;
51
+ }
52
+ .icon-cut {
53
+ background-image: url(../images/er/cut.png) !important;
54
+ }
55
+
56
+ /* IE6 fixes */
57
+ .clearfix {
58
+ height: 1%;
59
+ }
60
+ .clearfix:after {
61
+ content: ".";
62
+ display: block;
63
+ height: 0;
64
+ clear: both;
65
+ visibility: hidden;
66
+ }
67
+
68
+ a.button {
69
+ font-family: "Lucida Grande", Helvetica, sans-serif;
70
+ font-size: 0.8em;
71
+ text-decoration: none;
72
+ padding: 6px 12px 4px !important;
73
+ }
74
+
75
+ a.button,
76
+ button {
77
+ -moz-border-radius:5px;
78
+ -webkit-border-radius:5px;
79
+ -moz-box-shadow:0px 0px 2px rgba(0,0,0,0.4);
80
+ -webkit-box-shadow:0px 0px 2px rgba(0,0,0,0.4);
81
+
82
+ color:rgba(0,0,0,0.9);
83
+ text-shadow:1px 1px 0px rgba(255,255,255,0.8);
84
+ border:1px solid rgba(0,0,0,0.5);
85
+
86
+ background:-webkit-gradient(linear,0% 0%,0% 100%,from(rgba(255,255,255,1)),to(rgba(185,185,185,1)));
87
+ background:-moz-linear-gradient(top,rgba(255,255,255,1),rgba(185,185,185,1));
88
+
89
+ font-weight: bold;
90
+ padding:5px 10px 3px;
91
+ }
92
+ a.button:hover,
93
+ button:hover {
94
+ background:rgba(240,240,240,1);
95
+ }
96
+ a.button:active, a.button:focus,
97
+ button:active, button:focus {
98
+ background:-webkit-gradient(linear,0% 100%,0% 0%,from(rgba(255,255,255,1)),to(rgba(185,185,185,1)));
99
+ background:-moz-linear-gradient(bottom,rgba(255,255,255,1),rgba(185,185,185,1));
100
+ }
101
+ button:disabled {
102
+ color:rgba(0,0,0,0.4);
103
+ text-shadow:1px 1px 0px rgba(255,255,255,0.5);
104
+ background:rgba(220,220,220,1);
105
+ }
106
+ button.add {
107
+ /* background: url(../images/er/add.png) no-repeat 4px center;
108
+ padding-left: 25px; */
109
+ }
110
+
111
+ /* Flash and Error Messages */
112
+
113
+ #error_explanation,
114
+ #flash_alert,
115
+ #flash_error,
116
+ #flash_notice {
117
+ -moz-border-radius:5px;
118
+ -webkit-border-radius:5px;
119
+ margin: 10px 0;
120
+ padding: 10px 10px 5px 40px;
121
+ width: 400px;
122
+ }
123
+
124
+ #error_explanation,
125
+ #flash_error,
126
+ #flash_alert {
127
+ background: #FFD6D6 url(../images/er/cancel.png) no-repeat 10px 8px;
128
+ border: 1px solid #FF8080;
129
+ color: #E3302C;
130
+ }
131
+ #flash_notice {
132
+ background: #D4F5A3 url(../images/er/accept.png) no-repeat 10px 8px;
133
+ border: 1px solid #6EB800;
134
+ color: #508600;
135
+ }
136
+
137
+ #content #error_explanation {
138
+ margin-bottom: 15px;
139
+ width: auto;
140
+ }
141
+ #content #error_explanation h2 {
142
+ color: #E3302C;
143
+ font-size: 14px;
144
+ margin: 0 0 5px;
145
+ }
146
+ #content div.field_with_errors label {
147
+ color: #E3302C;
148
+ }
149
+ #content div.field_with_errors input {
150
+ border-color: #FF8080;
151
+ background-color: #FFD6D6;
152
+ }
153
+
154
+
155
+
156
+ #wrapper {
157
+ margin: 20px 50px;
158
+ }
159
+
160
+ /* Header */
161
+
162
+ #header {
163
+ height: 25px;
164
+ }
165
+ #header .logo {
166
+ color: #0099ff;
167
+ float: left;
168
+ font-size: 1.5em;
169
+ padding-left: 15px;
170
+ position: relative;
171
+ top: -5px;
172
+ }
173
+ #header .preview,
174
+ #header .user-logout {
175
+ background: url(../images/er/user.png) no-repeat left top;
176
+ float: right;
177
+ font-size: 0.9em;
178
+ height: 16px;
179
+ margin-top: 3px;
180
+ padding: 4px 20px 0;
181
+ }
182
+ #header .preview {
183
+ background-image: url(../images/er/zoom.png);
184
+ }
185
+
186
+
187
+ /* Navigation */
188
+ nav {
189
+ background-color: #ddd;
190
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#999999');
191
+ background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#999));
192
+ background: -moz-linear-gradient(top, #ccc, #999);
193
+ -moz-border-radius: 5px;
194
+ border-radius: 5px;
195
+ clear: both;
196
+ padding: 2px 5px;
197
+ }
198
+ nav ul {
199
+ height: 30px;
200
+ margin-left: 0;
201
+ padding-right: 5px;
202
+ }
203
+ nav li {
204
+ float: left;
205
+ margin: 0 15px 0 10px;
206
+ padding-top: 10px;
207
+ }
208
+ nav li a:link,
209
+ nav li a:visited {
210
+ color: #444;
211
+ text-decoration: none;
212
+ text-shadow:1px 1px 0px rgba(210,210,210,0.8);
213
+ }
214
+ nav li a:hover,
215
+ nav li a:active {
216
+ color: #000;
217
+ text-decoration: underline;
218
+ }
219
+ nav div {
220
+ padding-right: 5px;
221
+ }
222
+
223
+ /* Content */
224
+
225
+ #content {
226
+ padding: 10px;
227
+ }
228
+ #wrapper div.columns {
229
+ padding-left: 210px;
230
+ }
231
+ #content div.box {
232
+ padding: 15px 10px;
233
+ }
234
+ #main {
235
+ display: inline-block;
236
+ float: right;
237
+ width: 100%;
238
+ }
239
+ #sidebar {
240
+ display: inline-block;
241
+ margin-left: -200px;
242
+ padding: 0;
243
+ padding-bottom: 60px;
244
+ width: 180px;
245
+ }
246
+ #sidebar h3 {
247
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#999999');
248
+ background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#999));
249
+ background: -moz-linear-gradient(top, #ccc, #999);
250
+ color: #444;
251
+ font-size: 1.0em;
252
+ margin: 0;
253
+ padding: 8px 10px 6px;
254
+ }
255
+ #sidebar div.box {
256
+ padding: 0;
257
+ }
258
+ #sidebar .box-content {
259
+ padding: 15px 10px;
260
+ }
261
+ #sidebar a.button {
262
+ display: inline-block;
263
+ margin: 10px 10px;
264
+ }
265
+
266
+ #content li {
267
+ margin-bottom: 5px;
268
+ }
269
+ #content ul.ui-tabs-nav li {
270
+ margin-bottom: 0;
271
+ }
272
+ #content #tabs {
273
+ display: none;
274
+ }
275
+
276
+ /*
277
+ #content p {
278
+ font-size: 12px;
279
+ }
280
+ #content th,
281
+ #content td {
282
+ font-size: 14px;
283
+ }
284
+
285
+ #content .mceEditor table {
286
+ margin: 0;
287
+ }
288
+ #content .mceEditor th,
289
+ #content .mceEditor td {
290
+ padding: 0;
291
+ }
292
+
293
+ #content p.new-link {
294
+ margin-top: 20px;
295
+ }
296
+ #content p.new-link a {
297
+ background: url(../images/er/add.png) no-repeat left top;
298
+ font-size: 14px;
299
+ padding-left: 20px;
300
+ }
301
+
302
+ #content .section-list {
303
+ border: 1px solid #000;
304
+ margin-bottom: 15px;
305
+ padding: 10px;
306
+ width: 300px;
307
+ }
308
+ #content .section-list li {
309
+ font-size: 13px;
310
+ margin-bottom: 5px;
311
+ }
312
+ #content .section-list ul {
313
+ margin-left: 30px;
314
+ margin-top: 10px;
315
+ }
316
+ #content .section-list ul li {
317
+ margin-bottom: 5px;
318
+ }
319
+ */
320
+
321
+ /* Tables */
322
+
323
+ table {
324
+ margin-top: 15px;
325
+ }
326
+ table th {
327
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#999999');
328
+ background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#999));
329
+ background: -moz-linear-gradient(top, #ccc, #999);
330
+ }
331
+ table th,
332
+ table td {
333
+ border: 1px solid #bbb;
334
+ padding: 5px 10px;
335
+ }
336
+ table th .current {
337
+ padding-right: 20px;
338
+ background-repeat: no-repeat;
339
+ background-position: right center;
340
+ }
341
+ table th .asc {
342
+ background-image: url(../images/er/up_arrow.png);
343
+ }
344
+ table th .desc {
345
+ background-image: url(../images/er/down_arrow.png);
346
+ }
347
+
348
+
349
+ /* Forms */
350
+
351
+ div.box,
352
+ form {
353
+ background-color: #ddd;
354
+ border: 1px solid #bbb;
355
+ -moz-border-radius:5px;
356
+ -webkit-border-radius:5px;
357
+ margin: 10px 0;
358
+ }
359
+ .ui-tabs div.box,
360
+ .ui-tabs form {
361
+ border: none;
362
+ }
363
+
364
+ div.field {
365
+ border-bottom: 1px solid #bbb;
366
+ padding: 10px;
367
+ padding-left: 200px;
368
+ position: relative;
369
+ }
370
+ div.field label {
371
+ position: absolute;
372
+ font-weight: bold;
373
+ margin-top: 5px;
374
+ left: 10px;
375
+ top: 10px;
376
+ width: 200px;
377
+ }
378
+ div.field select option {
379
+ font-size: 1em;
380
+ }
381
+ div.field select,
382
+ div.field textarea,
383
+ div.field input {
384
+ -moz-border-radius:5px;
385
+ -webkit-border-radius:5px;
386
+ border: 1px solid #999;
387
+ margin-right: 5px;
388
+ padding: 7px 7px 4px;
389
+ }
390
+ div.field select {
391
+ padding: .5em .3em .3em;
392
+ }
393
+ div.field input[type=text] {
394
+ width: 96%;
395
+ }
396
+ div.field textarea {
397
+ width: 96%;
398
+ }
399
+ div.field i {
400
+ color: #666;
401
+ display: inline-block;
402
+ margin-top: 8px;
403
+ }
404
+ div.actions {
405
+ margin-left: 190px;
406
+ padding: 10px;
407
+ }
408
+
409
+
410
+ /* Footer */
411
+
412
+ div.footer {
413
+ clear: both;
414
+ margin-top: 35px;
415
+ padding-left: 10px;
416
+ }
417
+