spiderfw 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/VERSION +1 -1
- data/apps/core/auth/lib/rbac.rb +15 -0
- data/apps/core/auth/models/mixins/rbac_provider.rb +28 -10
- data/apps/core/auth/po/it/spider_auth.po +3 -2
- data/apps/core/auth/po/spider_auth.pot +3 -2
- data/apps/core/auth/views/login.shtml +1 -1
- data/apps/core/components/po/it/spider_components.po +11 -12
- data/apps/core/components/po/spider_components.pot +11 -10
- data/apps/core/components/public/css/crud.css +4 -0
- data/apps/core/components/public/js/jquery/jquery-ui-1.8.11/css/Aristo/jquery-ui.custom.css +1 -0
- data/apps/core/components/public/js/jquery/plugins/bsmselect/README.md +1 -0
- data/apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.js +11 -11
- data/apps/core/components/public/js/jquery/plugins/jquery.form.js +325 -154
- data/apps/core/components/public/js/spider.js +6 -0
- data/apps/core/components/widgets/admin/admin.rb +44 -1
- data/apps/core/components/widgets/crud/crud.rb +48 -27
- data/apps/core/components/widgets/crud/crud.shtml +5 -3
- data/apps/core/components/widgets/table/table.rb +3 -3
- data/apps/core/forms/po/it/spider_forms.po +4 -4
- data/apps/core/forms/po/spider_forms.pot +4 -3
- data/apps/core/forms/public/ckeditor/CHANGES.html +1295 -0
- data/apps/core/forms/public/ckeditor/INSTALL.html +92 -0
- data/apps/core/forms/public/ckeditor/LICENSE.html +1334 -0
- data/apps/core/forms/public/ckeditor/adapters/jquery.js +2 -2
- data/apps/core/forms/public/ckeditor/ckeditor.js +141 -133
- data/apps/core/forms/public/ckeditor/ckeditor_basic.js +8 -0
- data/apps/core/forms/public/ckeditor/ckeditor_basic_source.js +20 -0
- data/apps/core/forms/public/ckeditor/ckeditor_source.js +25 -0
- data/apps/core/forms/public/ckeditor/config.js +11 -0
- data/apps/core/forms/public/ckeditor/contents.css +23 -0
- data/apps/core/forms/public/ckeditor/lang/_languages.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/_translationstatus.txt +58 -57
- data/apps/core/forms/public/ckeditor/lang/af.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/ar.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/bg.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/bn.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/bs.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/ca.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/cs.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/cy.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/da.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/de.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/el.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/en-au.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/en-ca.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/en-gb.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/en.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/eo.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/es.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/et.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/eu.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/fa.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/fi.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/fo.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/fr-ca.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/fr.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/gl.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/gu.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/he.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/hi.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/hr.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/hu.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/is.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/it.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/ja.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/ka.js +6 -0
- data/apps/core/forms/public/ckeditor/lang/km.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/ko.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/lt.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/lv.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/mn.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/ms.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/nb.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/nl.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/no.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/pl.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/pt-br.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/pt.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/ro.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/ru.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/sk.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/sl.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/sr-latn.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/sr.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/sv.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/th.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/tr.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/uk.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/vi.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/zh-cn.js +2 -2
- data/apps/core/forms/public/ckeditor/lang/zh.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/a11yhelp/lang/en.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/a11yhelp/lang/he.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/about/dialogs/about.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/adobeair/plugin.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/ajax/plugin.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/autogrow/plugin.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/bbcode/plugin.js +9 -0
- data/apps/core/forms/public/ckeditor/plugins/clipboard/dialogs/paste.js +3 -3
- data/apps/core/forms/public/ckeditor/plugins/colordialog/dialogs/colordialog.js +3 -3
- data/apps/core/forms/public/ckeditor/plugins/devtools/lang/en.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/devtools/plugin.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/div/dialogs/div.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/docprops/dialogs/docprops.js +10 -0
- data/apps/core/forms/public/ckeditor/plugins/docprops/plugin.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/find/dialogs/find.js +4 -4
- data/apps/core/forms/public/ckeditor/plugins/flash/dialogs/flash.js +4 -4
- data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/checkbox.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/form.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/radio.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/select.js +4 -4
- data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/textarea.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/textfield.js +2 -3
- data/apps/core/forms/public/ckeditor/plugins/iframe/dialogs/iframe.js +7 -0
- data/apps/core/forms/public/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/apps/core/forms/public/ckeditor/plugins/iframedialog/plugin.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/image/dialogs/image.js +8 -8
- data/apps/core/forms/public/ckeditor/plugins/link/dialogs/anchor.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/link/dialogs/link.js +7 -7
- data/apps/core/forms/public/ckeditor/plugins/liststyle/dialogs/liststyle.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/pastefromword/filter/default.js +7 -6
- data/apps/core/forms/public/ckeditor/plugins/pastetext/dialogs/pastetext.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/placeholder/dialogs/placeholder.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/placeholder/lang/en.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/placeholder/lang/he.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/placeholder/placeholder.gif +0 -0
- data/apps/core/forms/public/ckeditor/plugins/placeholder/plugin.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/scayt/dialogs/options.js +4 -4
- data/apps/core/forms/public/ckeditor/plugins/scayt/dialogs/toolbar.css +1 -1
- data/apps/core/forms/public/ckeditor/plugins/smiley/dialogs/smiley.js +3 -3
- data/apps/core/forms/public/ckeditor/plugins/specialchar/dialogs/specialchar.js +3 -3
- data/apps/core/forms/public/ckeditor/plugins/specialchar/lang/en.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/styles/styles/default.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/stylesheetparser/plugin.js +6 -0
- data/apps/core/forms/public/ckeditor/plugins/table/dialogs/table.js +3 -3
- data/apps/core/forms/public/ckeditor/plugins/tableresize/plugin.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/tabletools/dialogs/tableCell.js +4 -4
- data/apps/core/forms/public/ckeditor/plugins/templates/dialogs/templates.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/templates/templates/default.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/uicolor/dialogs/uicolor.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/uicolor/lang/en.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/uicolor/lang/he.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/uicolor/plugin.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/uicolor/yui/assets/yui.css +1 -1
- data/apps/core/forms/public/ckeditor/plugins/uicolor/yui/yui.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/ciframe.html +1 -1
- data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +1 -1
- data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/wsc.css +1 -1
- data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/wsc.js +3 -3
- data/apps/core/forms/public/ckeditor/plugins/xml/plugin.js +6 -0
- data/apps/core/forms/public/ckeditor/skins/kama/dialog.css +5 -5
- data/apps/core/forms/public/ckeditor/skins/kama/editor.css +9 -8
- data/apps/core/forms/public/ckeditor/skins/kama/icons.png +0 -0
- data/apps/core/forms/public/ckeditor/skins/kama/icons_rtl.png +0 -0
- data/apps/core/forms/public/ckeditor/skins/kama/skin.js +3 -3
- data/apps/core/forms/public/ckeditor/skins/kama/templates.css +1 -1
- data/apps/core/forms/public/ckeditor/themes/default/theme.js +4 -4
- data/apps/core/forms/public/css/form.css +1 -0
- data/apps/core/forms/public/css/html_area.css +3 -0
- data/apps/core/forms/public/html_area.js +4 -4
- data/apps/core/forms/public/search_select.js +2 -2
- data/apps/core/forms/public/select.js +5 -5
- data/apps/core/forms/tags/element_label.erb +5 -2
- data/apps/core/forms/tags/element_row.erb +7 -6
- data/apps/core/forms/tags/row.erb +6 -4
- data/apps/core/forms/widgets/form/form.rb +5 -4
- data/apps/core/forms/widgets/inputs/html_area/html_area.rb +10 -4
- data/apps/core/forms/widgets/inputs/html_area/html_area.shtml +1 -0
- data/apps/core/forms/widgets/inputs/select/select.rb +18 -5
- data/apps/core/forms/widgets/inputs/select/select.shtml +3 -0
- data/apps/master/po/master.pot +408 -0
- data/apps/messenger/po/it/spider_messenger.po +6 -10
- data/apps/messenger/po/spider_messenger.pot +2 -1
- data/blueprints/home/{Gemfile → Gemfile.disabled} +0 -0
- data/lib/spiderfw/config/configuration.rb +5 -0
- data/lib/spiderfw/config/options/spider.rb +2 -2
- data/lib/spiderfw/controller/controller.rb +4 -1
- data/lib/spiderfw/controller/mixins/http_mixin.rb +2 -0
- data/lib/spiderfw/create.rb +9 -5
- data/lib/spiderfw/model/base_model.rb +32 -9
- data/lib/spiderfw/model/condition.rb +7 -0
- data/lib/spiderfw/model/datatypes/text.rb +3 -1
- data/lib/spiderfw/model/mappers/db_mapper.rb +19 -5
- data/lib/spiderfw/model/mappers/mapper.rb +1 -1
- data/lib/spiderfw/model/mixins/tree.rb +2 -1
- data/lib/spiderfw/model/query_set.rb +14 -13
- data/lib/spiderfw/model/storage/db/adapters/mysql.rb +7 -2
- data/lib/spiderfw/model/storage/db/db_schema.rb +4 -2
- data/lib/spiderfw/model/storage/db/db_storage.rb +4 -4
- data/lib/spiderfw/model/unit_of_work.rb +3 -1
- data/lib/spiderfw/templates/blocks/html.rb +2 -2
- data/lib/spiderfw/templates/blocks/lambda.rb +25 -0
- data/lib/spiderfw/templates/blocks/recurse.rb +41 -0
- data/lib/spiderfw/templates/blocks/widget.rb +2 -3
- data/lib/spiderfw/templates/layout.rb +20 -3
- data/lib/spiderfw/templates/template.rb +35 -29
- data/lib/spiderfw/templates/template_blocks.rb +6 -0
- data/lib/spiderfw/widget/widget.rb +2 -1
- metadata +35 -5
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/apps/core/auth/lib/rbac.rb
CHANGED
@@ -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 =
|
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
|
-
|
63
|
-
|
64
|
-
|
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
|
67
|
-
:label =>
|
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
|
-
|
100
|
-
|
101
|
-
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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 ""
|
@@ -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.
|
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 '
|
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,
|