typus 3.1.0.rc8 → 3.1.0.rc9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. data/.gitmodules +1 -1
  2. data/app/controllers/admin/resources_controller.rb +29 -13
  3. data/app/helpers/admin/resources/data_types/datetime_helper.rb +2 -0
  4. data/app/helpers/admin/resources/data_types/dragonfly_helper.rb +1 -2
  5. data/app/helpers/admin/resources/data_types/float_helper.rb +0 -1
  6. data/app/helpers/admin/resources/data_types/paperclip_helper.rb +11 -13
  7. data/app/helpers/admin/resources/data_types/string_helper.rb +2 -0
  8. data/app/helpers/admin/resources/filters_helper.rb +14 -16
  9. data/app/helpers/admin/resources/relationships_helper.rb +1 -5
  10. data/app/helpers/admin/resources_helper.rb +1 -1
  11. data/app/mailers/admin/mailer.rb +1 -2
  12. data/app/themes/default/assets/javascripts/typus.js +8 -0
  13. data/app/{assets → themes/default/assets}/javascripts/typus/application.js +0 -1
  14. data/app/{assets → themes/default/assets}/javascripts/typus/jquery.application.js +0 -0
  15. data/app/{assets → themes/default/assets}/stylesheets/typus.css +2 -1
  16. data/app/{assets → themes/default/assets}/stylesheets/typus/application.css +0 -0
  17. data/app/{assets → themes/default/assets}/stylesheets/typus/pagination.css +0 -0
  18. data/app/{assets → themes/default/assets}/stylesheets/typus/reset.css +0 -0
  19. data/app/{assets → themes/default/assets}/stylesheets/typus/screen.css +0 -0
  20. data/app/{views → themes/default/views}/admin/account/forgot_password.html.erb +0 -0
  21. data/app/{views → themes/default/views}/admin/account/new.html.erb +0 -0
  22. data/app/{views → themes/default/views}/admin/base/user_guide.html.erb +0 -0
  23. data/app/{views → themes/default/views}/admin/dashboard/_applications.html.erb +0 -0
  24. data/app/{views → themes/default/views}/admin/dashboard/_sidebar.html.erb +0 -0
  25. data/app/{views → themes/default/views}/admin/dashboard/show.html.erb +0 -0
  26. data/app/{views → themes/default/views}/admin/dashboard/styles.html.erb +0 -0
  27. data/app/{views → themes/default/views}/admin/mailer/reset_password_link.text.erb +0 -0
  28. data/app/{views → themes/default/views}/admin/resources/_edit.html.erb +0 -0
  29. data/app/{views → themes/default/views}/admin/resources/_form.html.erb +0 -0
  30. data/app/{views → themes/default/views}/admin/resources/_index.html.erb +0 -0
  31. data/app/{views → themes/default/views}/admin/resources/_new.html.erb +0 -0
  32. data/app/{views → themes/default/views}/admin/resources/_show.html.erb +0 -0
  33. data/app/{views → themes/default/views}/admin/resources/edit.html.erb +0 -0
  34. data/app/{views → themes/default/views}/admin/resources/index.html.erb +0 -0
  35. data/app/{views → themes/default/views}/admin/resources/new.html.erb +0 -0
  36. data/app/{views → themes/default/views}/admin/resources/show.html.erb +0 -0
  37. data/app/{views → themes/default/views}/admin/session/new.html.erb +0 -0
  38. data/app/{views → themes/default/views}/admin/shared/_head.html.erb +0 -0
  39. data/app/{views → themes/default/views}/admin/templates/_belongs_to.html.erb +0 -0
  40. data/app/{views → themes/default/views}/admin/templates/_belongs_to_with_autocomplete.html.erb +1 -1
  41. data/app/{views → themes/default/views}/admin/templates/_boolean.html.erb +0 -0
  42. data/app/{views → themes/default/views}/admin/templates/_date.html.erb +0 -0
  43. data/app/{views → themes/default/views}/admin/templates/_datetime.html.erb +0 -0
  44. data/app/{views → themes/default/views}/admin/templates/_dragonfly.html.erb +0 -0
  45. data/app/{views → themes/default/views}/admin/templates/_dragonfly_preview.html.erb +0 -0
  46. data/app/{views → themes/default/views}/admin/templates/_has_n.html.erb +0 -0
  47. data/app/{views → themes/default/views}/admin/templates/_has_one.html.erb +0 -0
  48. data/app/{views → themes/default/views}/admin/templates/_paperclip.html.erb +0 -0
  49. data/app/{views → themes/default/views}/admin/templates/_paperclip_preview.html.erb +0 -0
  50. data/app/{views → themes/default/views}/admin/templates/_password.html.erb +0 -0
  51. data/app/{views → themes/default/views}/admin/templates/_profile_sidebar.html.erb +0 -0
  52. data/app/{views → themes/default/views}/admin/templates/_selector.html.erb +0 -0
  53. data/app/{views → themes/default/views}/admin/templates/_string.html.erb +0 -0
  54. data/app/{views → themes/default/views}/admin/templates/_string_with_preview.html.erb +0 -0
  55. data/app/{views → themes/default/views}/admin/templates/_text.html.erb +0 -0
  56. data/app/{views → themes/default/views}/admin/templates/_text_with_ckeditor.html.erb +1 -1
  57. data/app/{views → themes/default/views}/admin/templates/_text_with_ckeditor_and_assets.html.erb +1 -1
  58. data/app/{views → themes/default/views}/admin/templates/_time.html.erb +0 -0
  59. data/app/{views → themes/default/views}/admin/templates/_tree.html.erb +0 -0
  60. data/app/{views → themes/default/views}/helpers/admin/base/_apps.html.erb +0 -0
  61. data/app/{views → themes/default/views}/helpers/admin/base/_flash_message.html.erb +0 -0
  62. data/app/{views → themes/default/views}/helpers/admin/base/_header.html.erb +0 -0
  63. data/app/{views → themes/default/views}/helpers/admin/base/_login_info.html.erb +0 -0
  64. data/app/{views → themes/default/views}/helpers/admin/dashboard/_resources.html.erb +0 -0
  65. data/app/{views → themes/default/views}/helpers/admin/resources/_actions.html.erb +0 -0
  66. data/app/{views → themes/default/views}/helpers/admin/resources/_errors.html.erb +0 -0
  67. data/app/{views → themes/default/views}/helpers/admin/resources/_filters.html.erb +0 -0
  68. data/app/{views → themes/default/views}/helpers/admin/resources/_search.html.erb +0 -0
  69. data/app/{views → themes/default/views}/helpers/admin/resources/_sidebar.html.erb +0 -0
  70. data/app/{views → themes/default/views}/helpers/admin/resources/_table.html.erb +0 -0
  71. data/app/{views → themes/default/views}/layouts/admin/base.html.erb +0 -0
  72. data/app/{views → themes/default/views}/layouts/admin/headless.html.erb +0 -0
  73. data/app/{views → themes/default/views}/layouts/admin/session.html.erb +0 -0
  74. data/config/locales/typus.pt-PT.models.yml +17 -0
  75. data/config/locales/typus.pt-PT.yml +83 -0
  76. data/lib/typus.rb +3 -2
  77. data/lib/typus/controller/associations.rb +1 -1
  78. data/lib/typus/controller/format.rb +1 -1
  79. data/lib/typus/engine.rb +2 -1
  80. data/lib/typus/orm/base.rb +1 -1
  81. data/lib/typus/version.rb +1 -1
  82. data/typus.gemspec +1 -1
  83. data/{app → vendor}/assets/images/blank.gif +0 -0
  84. data/{app → vendor}/assets/images/fancy_close.png +0 -0
  85. data/{app → vendor}/assets/images/fancy_loading.png +0 -0
  86. data/{app → vendor}/assets/images/fancy_nav_left.png +0 -0
  87. data/{app → vendor}/assets/images/fancy_nav_right.png +0 -0
  88. data/{app → vendor}/assets/images/fancy_shadow_e.png +0 -0
  89. data/{app → vendor}/assets/images/fancy_shadow_n.png +0 -0
  90. data/{app → vendor}/assets/images/fancy_shadow_ne.png +0 -0
  91. data/{app → vendor}/assets/images/fancy_shadow_nw.png +0 -0
  92. data/{app → vendor}/assets/images/fancy_shadow_s.png +0 -0
  93. data/{app → vendor}/assets/images/fancy_shadow_se.png +0 -0
  94. data/{app → vendor}/assets/images/fancy_shadow_sw.png +0 -0
  95. data/{app → vendor}/assets/images/fancy_shadow_w.png +0 -0
  96. data/{app → vendor}/assets/images/fancy_title_left.png +0 -0
  97. data/{app → vendor}/assets/images/fancy_title_main.png +0 -0
  98. data/{app → vendor}/assets/images/fancy_title_over.png +0 -0
  99. data/{app → vendor}/assets/images/fancy_title_right.png +0 -0
  100. data/{app → vendor}/assets/images/fancybox-x.png +0 -0
  101. data/{app → vendor}/assets/images/fancybox-y.png +0 -0
  102. data/{app → vendor}/assets/images/fancybox.png +0 -0
  103. data/{app/assets/vendor/jquery.fancybox-1.3.4/fancybox → vendor/assets/javascripts}/jquery.fancybox-1.3.4.pack.js +0 -0
  104. data/{app/assets/javascripts/typus → vendor/assets/javascripts}/jquery.rails.autocomplete.js +0 -0
  105. data/{app/assets/javascripts/typus → vendor/assets/javascripts}/jquery.searchField.js +0 -0
  106. data/{app/assets/vendor/jquery-tokeninput/js → vendor/assets/javascripts}/jquery.tokeninput.js +0 -0
  107. data/{app/assets/vendor/jquery.fancybox-1.3.4/fancybox → vendor/assets/stylesheets}/jquery.fancybox-1.3.4.css +0 -0
  108. data/{app/assets/vendor/jquery-tokeninput/css → vendor/assets/stylesheets}/token-input.css +0 -0
  109. metadata +175 -219
  110. data/app/assets/javascripts/typus.js +0 -7
  111. data/app/assets/vendor/jquery-tokeninput/css/token-input-facebook.css +0 -122
  112. data/app/assets/vendor/jquery-tokeninput/css/token-input-mac.css +0 -204
  113. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  114. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  115. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  116. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  117. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  118. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  119. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  120. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  121. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  122. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  123. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  124. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  125. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  126. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  127. data/app/assets/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/jquery-ui-1.8.12.custom.css +0 -578
  128. data/app/assets/vendor/jquery-ui-1.8.12.custom/index.html +0 -367
  129. data/app/assets/vendor/jquery-ui-1.8.12.custom/js/jquery-ui-1.8.12.custom.min.js +0 -783
  130. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/blank.gif +0 -0
  131. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_close.png +0 -0
  132. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_loading.png +0 -0
  133. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_left.png +0 -0
  134. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_right.png +0 -0
  135. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_e.png +0 -0
  136. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_n.png +0 -0
  137. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_ne.png +0 -0
  138. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_nw.png +0 -0
  139. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_s.png +0 -0
  140. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_se.png +0 -0
  141. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_sw.png +0 -0
  142. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_w.png +0 -0
  143. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_left.png +0 -0
  144. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_main.png +0 -0
  145. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_over.png +0 -0
  146. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_right.png +0 -0
  147. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-x.png +0 -0
  148. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-y.png +0 -0
  149. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/fancybox.png +0 -0
  150. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/jquery.easing-1.3.pack.js +0 -72
  151. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js +0 -1156
  152. data/app/assets/vendor/jquery.fancybox-1.3.4/fancybox/jquery.mousewheel-3.0.4.pack.js +0 -14
@@ -1,14 +0,0 @@
1
- /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
2
- * Licensed under the MIT License (LICENSE.txt).
3
- *
4
- * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
- * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
- * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
- *
8
- * Version: 3.0.4
9
- *
10
- * Requires: 1.2.2+
11
- */
12
-
13
- (function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
14
- f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);