spiderfw 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. data/CHANGELOG +5 -0
  2. data/VERSION +1 -1
  3. data/apps/core/auth/lib/rbac.rb +15 -0
  4. data/apps/core/auth/models/mixins/rbac_provider.rb +28 -10
  5. data/apps/core/auth/po/it/spider_auth.po +3 -2
  6. data/apps/core/auth/po/spider_auth.pot +3 -2
  7. data/apps/core/auth/views/login.shtml +1 -1
  8. data/apps/core/components/po/it/spider_components.po +11 -12
  9. data/apps/core/components/po/spider_components.pot +11 -10
  10. data/apps/core/components/public/css/crud.css +4 -0
  11. data/apps/core/components/public/js/jquery/jquery-ui-1.8.11/css/Aristo/jquery-ui.custom.css +1 -0
  12. data/apps/core/components/public/js/jquery/plugins/bsmselect/README.md +1 -0
  13. data/apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.js +11 -11
  14. data/apps/core/components/public/js/jquery/plugins/jquery.form.js +325 -154
  15. data/apps/core/components/public/js/spider.js +6 -0
  16. data/apps/core/components/widgets/admin/admin.rb +44 -1
  17. data/apps/core/components/widgets/crud/crud.rb +48 -27
  18. data/apps/core/components/widgets/crud/crud.shtml +5 -3
  19. data/apps/core/components/widgets/table/table.rb +3 -3
  20. data/apps/core/forms/po/it/spider_forms.po +4 -4
  21. data/apps/core/forms/po/spider_forms.pot +4 -3
  22. data/apps/core/forms/public/ckeditor/CHANGES.html +1295 -0
  23. data/apps/core/forms/public/ckeditor/INSTALL.html +92 -0
  24. data/apps/core/forms/public/ckeditor/LICENSE.html +1334 -0
  25. data/apps/core/forms/public/ckeditor/adapters/jquery.js +2 -2
  26. data/apps/core/forms/public/ckeditor/ckeditor.js +141 -133
  27. data/apps/core/forms/public/ckeditor/ckeditor_basic.js +8 -0
  28. data/apps/core/forms/public/ckeditor/ckeditor_basic_source.js +20 -0
  29. data/apps/core/forms/public/ckeditor/ckeditor_source.js +25 -0
  30. data/apps/core/forms/public/ckeditor/config.js +11 -0
  31. data/apps/core/forms/public/ckeditor/contents.css +23 -0
  32. data/apps/core/forms/public/ckeditor/lang/_languages.js +2 -2
  33. data/apps/core/forms/public/ckeditor/lang/_translationstatus.txt +58 -57
  34. data/apps/core/forms/public/ckeditor/lang/af.js +2 -2
  35. data/apps/core/forms/public/ckeditor/lang/ar.js +2 -2
  36. data/apps/core/forms/public/ckeditor/lang/bg.js +2 -2
  37. data/apps/core/forms/public/ckeditor/lang/bn.js +2 -2
  38. data/apps/core/forms/public/ckeditor/lang/bs.js +2 -2
  39. data/apps/core/forms/public/ckeditor/lang/ca.js +2 -2
  40. data/apps/core/forms/public/ckeditor/lang/cs.js +2 -2
  41. data/apps/core/forms/public/ckeditor/lang/cy.js +2 -2
  42. data/apps/core/forms/public/ckeditor/lang/da.js +2 -2
  43. data/apps/core/forms/public/ckeditor/lang/de.js +2 -2
  44. data/apps/core/forms/public/ckeditor/lang/el.js +2 -2
  45. data/apps/core/forms/public/ckeditor/lang/en-au.js +2 -2
  46. data/apps/core/forms/public/ckeditor/lang/en-ca.js +2 -2
  47. data/apps/core/forms/public/ckeditor/lang/en-gb.js +2 -2
  48. data/apps/core/forms/public/ckeditor/lang/en.js +2 -2
  49. data/apps/core/forms/public/ckeditor/lang/eo.js +2 -2
  50. data/apps/core/forms/public/ckeditor/lang/es.js +2 -2
  51. data/apps/core/forms/public/ckeditor/lang/et.js +2 -2
  52. data/apps/core/forms/public/ckeditor/lang/eu.js +2 -2
  53. data/apps/core/forms/public/ckeditor/lang/fa.js +2 -2
  54. data/apps/core/forms/public/ckeditor/lang/fi.js +2 -2
  55. data/apps/core/forms/public/ckeditor/lang/fo.js +2 -2
  56. data/apps/core/forms/public/ckeditor/lang/fr-ca.js +2 -2
  57. data/apps/core/forms/public/ckeditor/lang/fr.js +2 -2
  58. data/apps/core/forms/public/ckeditor/lang/gl.js +2 -2
  59. data/apps/core/forms/public/ckeditor/lang/gu.js +2 -2
  60. data/apps/core/forms/public/ckeditor/lang/he.js +2 -2
  61. data/apps/core/forms/public/ckeditor/lang/hi.js +2 -2
  62. data/apps/core/forms/public/ckeditor/lang/hr.js +2 -2
  63. data/apps/core/forms/public/ckeditor/lang/hu.js +2 -2
  64. data/apps/core/forms/public/ckeditor/lang/is.js +2 -2
  65. data/apps/core/forms/public/ckeditor/lang/it.js +2 -2
  66. data/apps/core/forms/public/ckeditor/lang/ja.js +2 -2
  67. data/apps/core/forms/public/ckeditor/lang/ka.js +6 -0
  68. data/apps/core/forms/public/ckeditor/lang/km.js +2 -2
  69. data/apps/core/forms/public/ckeditor/lang/ko.js +2 -2
  70. data/apps/core/forms/public/ckeditor/lang/lt.js +2 -2
  71. data/apps/core/forms/public/ckeditor/lang/lv.js +2 -2
  72. data/apps/core/forms/public/ckeditor/lang/mn.js +2 -2
  73. data/apps/core/forms/public/ckeditor/lang/ms.js +2 -2
  74. data/apps/core/forms/public/ckeditor/lang/nb.js +2 -2
  75. data/apps/core/forms/public/ckeditor/lang/nl.js +2 -2
  76. data/apps/core/forms/public/ckeditor/lang/no.js +2 -2
  77. data/apps/core/forms/public/ckeditor/lang/pl.js +2 -2
  78. data/apps/core/forms/public/ckeditor/lang/pt-br.js +2 -2
  79. data/apps/core/forms/public/ckeditor/lang/pt.js +2 -2
  80. data/apps/core/forms/public/ckeditor/lang/ro.js +2 -2
  81. data/apps/core/forms/public/ckeditor/lang/ru.js +2 -2
  82. data/apps/core/forms/public/ckeditor/lang/sk.js +2 -2
  83. data/apps/core/forms/public/ckeditor/lang/sl.js +2 -2
  84. data/apps/core/forms/public/ckeditor/lang/sr-latn.js +2 -2
  85. data/apps/core/forms/public/ckeditor/lang/sr.js +2 -2
  86. data/apps/core/forms/public/ckeditor/lang/sv.js +2 -2
  87. data/apps/core/forms/public/ckeditor/lang/th.js +2 -2
  88. data/apps/core/forms/public/ckeditor/lang/tr.js +2 -2
  89. data/apps/core/forms/public/ckeditor/lang/uk.js +2 -2
  90. data/apps/core/forms/public/ckeditor/lang/vi.js +2 -2
  91. data/apps/core/forms/public/ckeditor/lang/zh-cn.js +2 -2
  92. data/apps/core/forms/public/ckeditor/lang/zh.js +2 -2
  93. data/apps/core/forms/public/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +2 -2
  94. data/apps/core/forms/public/ckeditor/plugins/a11yhelp/lang/en.js +2 -2
  95. data/apps/core/forms/public/ckeditor/plugins/a11yhelp/lang/he.js +1 -1
  96. data/apps/core/forms/public/ckeditor/plugins/about/dialogs/about.js +2 -2
  97. data/apps/core/forms/public/ckeditor/plugins/adobeair/plugin.js +6 -0
  98. data/apps/core/forms/public/ckeditor/plugins/ajax/plugin.js +6 -0
  99. data/apps/core/forms/public/ckeditor/plugins/autogrow/plugin.js +2 -2
  100. data/apps/core/forms/public/ckeditor/plugins/bbcode/plugin.js +9 -0
  101. data/apps/core/forms/public/ckeditor/plugins/clipboard/dialogs/paste.js +3 -3
  102. data/apps/core/forms/public/ckeditor/plugins/colordialog/dialogs/colordialog.js +3 -3
  103. data/apps/core/forms/public/ckeditor/plugins/devtools/lang/en.js +6 -0
  104. data/apps/core/forms/public/ckeditor/plugins/devtools/plugin.js +6 -0
  105. data/apps/core/forms/public/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
  106. data/apps/core/forms/public/ckeditor/plugins/div/dialogs/div.js +1 -1
  107. data/apps/core/forms/public/ckeditor/plugins/docprops/dialogs/docprops.js +10 -0
  108. data/apps/core/forms/public/ckeditor/plugins/docprops/plugin.js +6 -0
  109. data/apps/core/forms/public/ckeditor/plugins/find/dialogs/find.js +4 -4
  110. data/apps/core/forms/public/ckeditor/plugins/flash/dialogs/flash.js +4 -4
  111. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js +2 -2
  112. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/checkbox.js +2 -2
  113. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/form.js +2 -2
  114. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js +2 -2
  115. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/radio.js +2 -2
  116. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/select.js +4 -4
  117. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/textarea.js +2 -2
  118. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/textfield.js +2 -3
  119. data/apps/core/forms/public/ckeditor/plugins/iframe/dialogs/iframe.js +7 -0
  120. data/apps/core/forms/public/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  121. data/apps/core/forms/public/ckeditor/plugins/iframedialog/plugin.js +2 -2
  122. data/apps/core/forms/public/ckeditor/plugins/image/dialogs/image.js +8 -8
  123. data/apps/core/forms/public/ckeditor/plugins/link/dialogs/anchor.js +2 -2
  124. data/apps/core/forms/public/ckeditor/plugins/link/dialogs/link.js +7 -7
  125. data/apps/core/forms/public/ckeditor/plugins/liststyle/dialogs/liststyle.js +1 -1
  126. data/apps/core/forms/public/ckeditor/plugins/pastefromword/filter/default.js +7 -6
  127. data/apps/core/forms/public/ckeditor/plugins/pastetext/dialogs/pastetext.js +2 -2
  128. data/apps/core/forms/public/ckeditor/plugins/placeholder/dialogs/placeholder.js +6 -0
  129. data/apps/core/forms/public/ckeditor/plugins/placeholder/lang/en.js +6 -0
  130. data/apps/core/forms/public/ckeditor/plugins/placeholder/lang/he.js +6 -0
  131. data/apps/core/forms/public/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  132. data/apps/core/forms/public/ckeditor/plugins/placeholder/plugin.js +6 -0
  133. data/apps/core/forms/public/ckeditor/plugins/scayt/dialogs/options.js +4 -4
  134. data/apps/core/forms/public/ckeditor/plugins/scayt/dialogs/toolbar.css +1 -1
  135. data/apps/core/forms/public/ckeditor/plugins/smiley/dialogs/smiley.js +3 -3
  136. data/apps/core/forms/public/ckeditor/plugins/specialchar/dialogs/specialchar.js +3 -3
  137. data/apps/core/forms/public/ckeditor/plugins/specialchar/lang/en.js +6 -0
  138. data/apps/core/forms/public/ckeditor/plugins/styles/styles/default.js +1 -1
  139. data/apps/core/forms/public/ckeditor/plugins/stylesheetparser/plugin.js +6 -0
  140. data/apps/core/forms/public/ckeditor/plugins/table/dialogs/table.js +3 -3
  141. data/apps/core/forms/public/ckeditor/plugins/tableresize/plugin.js +2 -2
  142. data/apps/core/forms/public/ckeditor/plugins/tabletools/dialogs/tableCell.js +4 -4
  143. data/apps/core/forms/public/ckeditor/plugins/templates/dialogs/templates.js +2 -2
  144. data/apps/core/forms/public/ckeditor/plugins/templates/templates/default.js +1 -1
  145. data/apps/core/forms/public/ckeditor/plugins/uicolor/dialogs/uicolor.js +1 -1
  146. data/apps/core/forms/public/ckeditor/plugins/uicolor/lang/en.js +1 -1
  147. data/apps/core/forms/public/ckeditor/plugins/uicolor/lang/he.js +1 -1
  148. data/apps/core/forms/public/ckeditor/plugins/uicolor/plugin.js +1 -1
  149. data/apps/core/forms/public/ckeditor/plugins/uicolor/yui/assets/yui.css +1 -1
  150. data/apps/core/forms/public/ckeditor/plugins/uicolor/yui/yui.js +1 -1
  151. data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/ciframe.html +1 -1
  152. data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
  153. data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/wsc.css +1 -1
  154. data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/wsc.js +3 -3
  155. data/apps/core/forms/public/ckeditor/plugins/xml/plugin.js +6 -0
  156. data/apps/core/forms/public/ckeditor/skins/kama/dialog.css +5 -5
  157. data/apps/core/forms/public/ckeditor/skins/kama/editor.css +9 -8
  158. data/apps/core/forms/public/ckeditor/skins/kama/icons.png +0 -0
  159. data/apps/core/forms/public/ckeditor/skins/kama/icons_rtl.png +0 -0
  160. data/apps/core/forms/public/ckeditor/skins/kama/skin.js +3 -3
  161. data/apps/core/forms/public/ckeditor/skins/kama/templates.css +1 -1
  162. data/apps/core/forms/public/ckeditor/themes/default/theme.js +4 -4
  163. data/apps/core/forms/public/css/form.css +1 -0
  164. data/apps/core/forms/public/css/html_area.css +3 -0
  165. data/apps/core/forms/public/html_area.js +4 -4
  166. data/apps/core/forms/public/search_select.js +2 -2
  167. data/apps/core/forms/public/select.js +5 -5
  168. data/apps/core/forms/tags/element_label.erb +5 -2
  169. data/apps/core/forms/tags/element_row.erb +7 -6
  170. data/apps/core/forms/tags/row.erb +6 -4
  171. data/apps/core/forms/widgets/form/form.rb +5 -4
  172. data/apps/core/forms/widgets/inputs/html_area/html_area.rb +10 -4
  173. data/apps/core/forms/widgets/inputs/html_area/html_area.shtml +1 -0
  174. data/apps/core/forms/widgets/inputs/select/select.rb +18 -5
  175. data/apps/core/forms/widgets/inputs/select/select.shtml +3 -0
  176. data/apps/master/po/master.pot +408 -0
  177. data/apps/messenger/po/it/spider_messenger.po +6 -10
  178. data/apps/messenger/po/spider_messenger.pot +2 -1
  179. data/blueprints/home/{Gemfile → Gemfile.disabled} +0 -0
  180. data/lib/spiderfw/config/configuration.rb +5 -0
  181. data/lib/spiderfw/config/options/spider.rb +2 -2
  182. data/lib/spiderfw/controller/controller.rb +4 -1
  183. data/lib/spiderfw/controller/mixins/http_mixin.rb +2 -0
  184. data/lib/spiderfw/create.rb +9 -5
  185. data/lib/spiderfw/model/base_model.rb +32 -9
  186. data/lib/spiderfw/model/condition.rb +7 -0
  187. data/lib/spiderfw/model/datatypes/text.rb +3 -1
  188. data/lib/spiderfw/model/mappers/db_mapper.rb +19 -5
  189. data/lib/spiderfw/model/mappers/mapper.rb +1 -1
  190. data/lib/spiderfw/model/mixins/tree.rb +2 -1
  191. data/lib/spiderfw/model/query_set.rb +14 -13
  192. data/lib/spiderfw/model/storage/db/adapters/mysql.rb +7 -2
  193. data/lib/spiderfw/model/storage/db/db_schema.rb +4 -2
  194. data/lib/spiderfw/model/storage/db/db_storage.rb +4 -4
  195. data/lib/spiderfw/model/unit_of_work.rb +3 -1
  196. data/lib/spiderfw/templates/blocks/html.rb +2 -2
  197. data/lib/spiderfw/templates/blocks/lambda.rb +25 -0
  198. data/lib/spiderfw/templates/blocks/recurse.rb +41 -0
  199. data/lib/spiderfw/templates/blocks/widget.rb +2 -3
  200. data/lib/spiderfw/templates/layout.rb +20 -3
  201. data/lib/spiderfw/templates/template.rb +35 -29
  202. data/lib/spiderfw/templates/template_blocks.rb +6 -0
  203. data/lib/spiderfw/widget/widget.rb +2 -1
  204. metadata +35 -5
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ = 0.6.2
2
+ = 10 June, 2011
3
+ * More flexible Admin widget
4
+ * Fixes and enhancements
5
+
1
6
  = 0.6.1
2
7
  == 2 May, 2011
3
8
  * Bundler support
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -5,14 +5,25 @@ module RBAC
5
5
  def self.define_context(name, permissions=nil, options={})
6
6
  permissions ||= Spider::OrderedHash[]
7
7
  @contexts ||= {}
8
+ @labels ||= {}
9
+ inline_data = Spider::OrderedHash[]
8
10
  permissions.clone.each do |k, v|
9
11
  unless v.is_a?(Hash)
10
12
  permissions[k] = {:label => v}
11
13
  end
14
+ inline_data[k] = permissions[k][:label]
12
15
  end
13
16
  @contexts[name] = permissions
14
17
  @options ||= {}
15
18
  @options[name] = options
19
+ @labels[name] = inline_data
20
+ end
21
+
22
+
23
+ def self.add_to_context(name, key, val)
24
+ val = {:label => val} unless val.is_a?(Hash)
25
+ @contexts[name][key] = val
26
+ @labels[name][key] = val[:label]
16
27
  end
17
28
 
18
29
  def self.context(name)
@@ -22,6 +33,10 @@ module RBAC
22
33
  def self.context?(name)
23
34
  @contexts[name] != nil
24
35
  end
36
+
37
+ def self.labels(name)
38
+ @labels[name]
39
+ end
25
40
 
26
41
  def self.options(name)
27
42
  @options[name] || {}
@@ -17,7 +17,8 @@ module Spider; module Auth
17
17
  el = self.class.rbac_provider_elements[context]
18
18
  options = RBAC.options(context)
19
19
  if options[:superuser]
20
- val = self.get(options[:superuser])
20
+ val = nil
21
+ val = self.get(options[:superuser]) if self.class.elements[options[:superuser]]
21
22
  return true if val
22
23
  end
23
24
  val = self.get(el)
@@ -59,12 +60,13 @@ module Spider; module Auth
59
60
  @rbac_provider_elements[context] = :"#{context}_permissions"
60
61
  inline_data = Spider::OrderedHash.new
61
62
  permissions = RBAC.context(context)
62
- permissions.each do |k, v|
63
- inline_data[k] = v[:label]
64
- end
63
+ options = RBAC.options(context)
64
+ inline_data = RBAC.labels(context)
65
+ rbac_name = @rbac_provider_elements[context]
66
+ el_label = options[:element_label] || _("%s permissions") % context.to_s.gsub(/_+/, ' ').capitalize
65
67
 
66
- self.multiple_choice @rbac_provider_elements[context], inline_data,
67
- :label => _("%s permissions") % context.to_s.gsub(/_+/, ' ').capitalize,
68
+ self.multiple_choice rbac_name, inline_data,
69
+ :label => el_label,
68
70
  :inline_model => [[:id, String, {:primary_key => true}], [:desc, String]]
69
71
  permissions.each do |k, v|
70
72
  if models = v[:with_models]
@@ -96,9 +98,25 @@ module Spider; module Auth
96
98
  el_name ||= "#{context}_#{k}_#{model_name}".to_sym
97
99
  reverse_name ||= "#{context}_#{k}_#{self_name}".to_sym
98
100
  end
99
- self.many el_name, model, :add_multiple_reverse => {
100
- :name => reverse_name, :rbac_reverse => [context, k], :version_content => false
101
- }, :delete_cascade => true, :rbac => [context, k], :version_content => false
101
+ choice_condition = Spider::Model::Condition.new{ |provider| (provider.__el(rbac_name) == k) }
102
+ if self.elements[options[:superuser]]
103
+ choice_condition.and(Spider::Model::Condition.new{ |provider|
104
+ (provider.__el(options[:superuser]) .not true)
105
+ })
106
+ end
107
+ attributes = {
108
+ :add_multiple_reverse => {
109
+ :name => reverse_name, :rbac_reverse => [context, k], :version_content => false, :association => :multiple_choice,
110
+ :choice_condition => choice_condition
111
+ }, :delete_cascade => true, :rbac => [context, k], :version_content => false,
112
+ :association => :multiple_choice
113
+ }
114
+ labels = v[:model_labels]
115
+ if labels && labels[model] && lbls = labels[model][self.name]
116
+ attributes[:label] = lbls[0]
117
+ attributes[:add_multiple_reverse][:label] = lbls[1]
118
+ end
119
+ self.many el_name, model, attributes
102
120
  end
103
121
  end
104
122
  end
@@ -119,4 +137,4 @@ module Spider; module Auth
119
137
 
120
138
  end
121
139
 
122
- end; end
140
+ end; end
@@ -6,10 +6,11 @@
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: Spider::Auth 0.1\n"
9
- "POT-Creation-Date: 2010-11-29 12:48+0100\n"
9
+ "POT-Creation-Date: 2011-05-09 17:37+0200\n"
10
10
  "PO-Revision-Date: 2010-11-02 18:13+0100\n"
11
11
  "Last-Translator: Ivan Pirlik <ivan.pirlik@soluzionipa.it>\n"
12
12
  "Language-Team: LANGUAGE <LL@li.org>\n"
13
+ "Language: \n"
13
14
  "MIME-Version: 1.0\n"
14
15
  "Content-Type: text/plain; charset=UTF-8\n"
15
16
  "Content-Transfer-Encoding: 8bit\n"
@@ -47,7 +48,7 @@ msgstr "Ultima login"
47
48
  msgid "Login count"
48
49
  msgstr "Numero login"
49
50
 
50
- #: models/mixins/rbac_provider.rb:41
51
+ #: models/mixins/rbac_provider.rb:68
51
52
  msgid "%s permissions"
52
53
  msgstr "Permessi %s"
53
54
 
@@ -7,10 +7,11 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Spider::Auth 0.1\n"
10
- "POT-Creation-Date: 2010-11-29 12:48+0100\n"
10
+ "POT-Creation-Date: 2011-05-09 17:37+0200\n"
11
11
  "PO-Revision-Date: 2009-06-30 16:58+0200\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "Language: \n"
14
15
  "MIME-Version: 1.0\n"
15
16
  "Content-Type: text/plain; charset=UTF-8\n"
16
17
  "Content-Transfer-Encoding: 8bit\n"
@@ -46,7 +47,7 @@ msgstr ""
46
47
  msgid "Login count"
47
48
  msgstr ""
48
49
 
49
- #: models/mixins/rbac_provider.rb:41
50
+ #: models/mixins/rbac_provider.rb:68
50
51
  msgid "%s permissions"
51
52
  msgstr ""
52
53
 
@@ -9,7 +9,7 @@
9
9
  <div class='logout' sp:if='@did_logout'>
10
10
  Logout eseguito
11
11
  </div>
12
- <form action='do_login' method='POST'>
12
+ <form action='{ @controller[:request_url] }/do_login' method='POST'>
13
13
  <input type="hidden" name="redirect" value="{ @redirect }">
14
14
  <div class='row'>
15
15
  <label for='login'>Login:</label>
@@ -6,10 +6,11 @@
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: Spider::Components 0.1\n"
9
- "POT-Creation-Date: 2010-11-29 12:48+0100\n"
9
+ "POT-Creation-Date: 2011-05-09 17:37+0200\n"
10
10
  "PO-Revision-Date: 2010-11-29 12:51+0100\n"
11
11
  "Last-Translator: Ivan Pirlik <ivan.pirlik@soluzionipa.it>\n"
12
12
  "Language-Team: LANGUAGE <LL@li.org>\n"
13
+ "Language: \n"
13
14
  "MIME-Version: 1.0\n"
14
15
  "Content-Type: text/plain; charset=UTF-8\n"
15
16
  "Content-Transfer-Encoding: 8bit\n"
@@ -43,12 +44,19 @@ msgstr "Vai"
43
44
  msgid "Clear"
44
45
  msgstr "Pulisci"
45
46
 
47
+ #: widgets/table/table.rb:150 public/js/utils.js:14
48
+ msgid "Yes"
49
+ msgstr "Sì"
50
+
51
+ #: widgets/table/table.rb:150 public/js/utils.js:19
52
+ msgid "No"
53
+ msgstr "No"
54
+
46
55
  #: widgets/list/list.shtml:10
47
56
  msgid "Search"
48
57
  msgstr "Cerca"
49
58
 
50
- #: widgets/list/list.shtml:17
51
- #: widgets/table/table.shtml:45
59
+ #: widgets/list/list.shtml:17 widgets/table/table.shtml:47
52
60
  msgid "No element"
53
61
  msgstr "Nessun elemento"
54
62
 
@@ -59,12 +67,3 @@ msgstr "Elimina"
59
67
  #: public/js/utils.js:9
60
68
  msgid "Are you sure?"
61
69
  msgstr "Sei sicuro?"
62
-
63
- #: public/js/utils.js:14
64
- msgid "Yes"
65
- msgstr "Sì"
66
-
67
- #: public/js/utils.js:19
68
- msgid "No"
69
- msgstr "No"
70
-
@@ -7,10 +7,11 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Spider::Components 0.1\n"
10
- "POT-Creation-Date: 2010-11-29 12:48+0100\n"
10
+ "POT-Creation-Date: 2011-05-09 17:37+0200\n"
11
11
  "PO-Revision-Date: 2009-06-30 16:58+0200\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "Language: \n"
14
15
  "MIME-Version: 1.0\n"
15
16
  "Content-Type: text/plain; charset=UTF-8\n"
16
17
  "Content-Transfer-Encoding: 8bit\n"
@@ -44,11 +45,19 @@ msgstr ""
44
45
  msgid "Clear"
45
46
  msgstr ""
46
47
 
48
+ #: widgets/table/table.rb:150 public/js/utils.js:14
49
+ msgid "Yes"
50
+ msgstr ""
51
+
52
+ #: widgets/table/table.rb:150 public/js/utils.js:19
53
+ msgid "No"
54
+ msgstr ""
55
+
47
56
  #: widgets/list/list.shtml:10
48
57
  msgid "Search"
49
58
  msgstr ""
50
59
 
51
- #: widgets/list/list.shtml:17 widgets/table/table.shtml:45
60
+ #: widgets/list/list.shtml:17 widgets/table/table.shtml:47
52
61
  msgid "No element"
53
62
  msgstr ""
54
63
 
@@ -59,11 +68,3 @@ msgstr ""
59
68
  #: public/js/utils.js:9
60
69
  msgid "Are you sure?"
61
70
  msgstr ""
62
-
63
- #: public/js/utils.js:14
64
- msgid "Yes"
65
- msgstr ""
66
-
67
- #: public/js/utils.js:19
68
- msgid "No"
69
- msgstr ""
@@ -56,3 +56,7 @@
56
56
  color: white;
57
57
  font-weight:bold;
58
58
  }
59
+
60
+ .wdgt-Spider-Components-Crud .wdgt-Spider-Components-Confirm ul{
61
+ margin-left: 20px;
62
+ }
@@ -448,6 +448,7 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
448
448
  .ui-tabs-panel .ui-button { border-width: 0px; background: transparent; }
449
449
 
450
450
  /* === Datepicker === */
451
+ #ui-datepicker-div{ display: none; }
451
452
  .ui-datepicker { width: 17em; padding: .2em .2em 0; background: #FFFFFF url(images/datepicker.gif) left top repeat-x; -moz-box-shadow: 0px 5px 10px rgba(0,0,0,0.8); -webkit-box-shadow: 0px 5px 10px rgba(0,0,0,0.8); box-shadow: 0px 5px 10px rgba(0,0,0,0.8); }
452
453
  .ui-datepicker .ui-datepicker-header { position:relative; padding:2px 0px 6px 0px; background: transparent; -moz-border-radius: 0px; -webkit-border-radius: 0px; border-radius: 0px; border: 0px none; }
453
454
  .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 6px; width: 16px; height: 16px; border: 0px none; cursor: pointer; }
@@ -178,6 +178,7 @@ The newly created select default option is the original select title attribute:
178
178
  * [Ryan Cramer](http://www.ryancramer.com/) is the author of the original asmSelect
179
179
  * [Victor Berchet](http://github.com/vicb) is the author of bsmSelect
180
180
  * [Andy Fowler](http://github.com/andyfowler) has contributed many enhancements
181
+ * [Cracky](https://github.com/Cracky)
181
182
 
182
183
  ## History ##
183
184
 
@@ -2,13 +2,13 @@
2
2
  * Better Select Multiple - jQuery Plugin
3
3
  *
4
4
  * based on Alternate Select Multiple (asmSelect) 1.0.4a beta (http://www.ryancramer.com/projects/asmselect/)
5
- *
5
+ *
6
6
  * Copyright (c) 2009 by Ryan Cramer - http://www.ryancramer.com
7
7
  * Copyright (c) 2010 by Victor Berchet - http://www.github.com/vicb
8
8
  *
9
9
  * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
10
10
  *
11
- * bsmSelect version: v1.4.2 - 2011-02-22
11
+ * bsmSelect version: v1.4.3 - 2011-05-05
12
12
  */
13
13
 
14
14
  (function($) {
@@ -53,10 +53,10 @@
53
53
  click: $.proxy(this.selectClickEvent, this)
54
54
  });
55
55
 
56
- this.$list = $.isFunction(o.listType)
56
+ this.$list = $.isFunction(o.listType)
57
57
  ? o.listType(this.$original)
58
58
  : $('<' + o.listType + '>', { id: o.listClass + this.uid });
59
-
59
+
60
60
  this.$list.addClass(o.listClass);
61
61
 
62
62
  this.$container = $('<div>', { 'class': o.containerClass, id: this.uid });
@@ -124,7 +124,7 @@
124
124
  */
125
125
  buildSelect: function() {
126
126
  var self = this;
127
-
127
+
128
128
  this.buildingSelect = true;
129
129
 
130
130
  // add a first option to be the home option / default selectLabel
@@ -174,7 +174,7 @@
174
174
  addSelectOptionGroup: function($parent, $group)
175
175
  {
176
176
  var self = this,
177
- $G = $('<optgroup>', { label: $group.attr('label')} ).appendTo($parent);
177
+ $G = $('<optgroup>', { label: $group.attr('label')} ).appendTo($parent);
178
178
  if ($group.is(':disabled')) { $G.attr('disabled', 'disabled'); }
179
179
  $('option', $group).each(function() { self.addSelectOption($G, $(this)); });
180
180
  },
@@ -238,7 +238,7 @@
238
238
  this.disableSelectOption($bsmOpt.data('item', $item));
239
239
 
240
240
  switch (o.addItemTarget) {
241
- case 'top':
241
+ case 'bottom':
242
242
  this.$list.append($item.hide());
243
243
  break;
244
244
  case 'original':
@@ -255,7 +255,7 @@
255
255
  default:
256
256
  this.$list.prepend($item.hide());
257
257
  }
258
-
258
+
259
259
  if (this.buildingSelect) {
260
260
  $.bsmSelect.effects.show($item);
261
261
  } else {
@@ -287,7 +287,7 @@
287
287
  * @param {String} type Event type
288
288
  */
289
289
  triggerOriginalChange: function($origOpt, type) {
290
- this.ignoreOriginalChangeEvent = true;
290
+ this.ignoreOriginalChangeEvent = true;
291
291
  this.$original.trigger('change', [{
292
292
  option: $origOpt,
293
293
  value: $origOpt.val(),
@@ -316,9 +316,9 @@
316
316
  remove: function($el) { $el.remove(); },
317
317
 
318
318
  highlight: function ($select, $item, label, conf) {
319
- var $highlight,
319
+ var $highlight,
320
320
  id = $select.attr('id') + conf.highlightClass;
321
- $('#' + id).remove();
321
+ $('#' + id).remove();
322
322
  $highlight = $('<span>', {
323
323
  'class': conf.highlightClass,
324
324
  id: id,