Commit 1e3af09114728e0b2eeeec22e9933c12db39771a
1 parent
9f066363
Exists in
master
and in
29 other branches
User tip for multiple select weird selection
Showing
2 changed files
with
6 additions
and
2 deletions
Show diff stats
plugins/custom_forms/lib/custom_forms_plugin/helper.rb
... | ... | @@ -10,7 +10,7 @@ module CustomFormsPlugin::Helper |
10 | 10 | return _('Public') if form.access.nil? |
11 | 11 | return _('Logged users') if form.access == 'logged' |
12 | 12 | if form.access == 'associated' |
13 | - return _('Members') if form.profile.organization? | |
13 | + return _('Members') if form.profile.organization? | |
14 | 14 | return _('Friends') if form.profile.person? |
15 | 15 | end |
16 | 16 | return _('Custom') |
... | ... | @@ -84,7 +84,7 @@ module CustomFormsPlugin::Helper |
84 | 84 | case field.select_field_type |
85 | 85 | when 'multiple_select' |
86 | 86 | selected = answer.present? ? answer.value.split(',') : field.alternatives.select {|a| a.selected_by_default}.map{|a| a.id.to_s} |
87 | - select_tag "submission[#{field.id}]", options_for_select(field.alternatives.map{|a| [a.label, a.id.to_s]}, selected), :multiple => true, :size => field.alternatives.size, :disabled => (answer.present? && answer.id.present?) || field.form.expired? | |
87 | + select_tag "submission[#{field.id}]", options_for_select(field.alternatives.map{|a| [a.label, a.id.to_s]}, selected), :multiple => true, :title => _('Hold down Ctrl to select options'), :size => field.alternatives.size, :disabled => (answer.present? && answer.id.present?) || field.form.expired? | |
88 | 88 | when 'check_box' |
89 | 89 | field.alternatives.map do |alternative| |
90 | 90 | default = answer.present? ? answer.value.split(',').include?(alternative.id.to_s) : alternative.selected_by_default | ... | ... |
po/pt/noosfero.po
... | ... | @@ -10588,6 +10588,10 @@ msgstr "Obrigatório" |
10588 | 10588 | msgid "Multiple" |
10589 | 10589 | msgstr "Múltiplo" |
10590 | 10590 | |
10591 | +#: plugins/custom_forms/lib/custom_forms_plugin/helper.rb:87 | |
10592 | +msgid "Hold down Ctrl to select options" | |
10593 | +msgstr "Segure Ctrl para selecionar as opções" | |
10594 | + | |
10591 | 10595 | #: plugins/custom_forms/lib/custom_forms_plugin/helper.rb:4 |
10592 | 10596 | #: plugins/custom_forms/lib/custom_forms_plugin/helper.rb:37 |
10593 | 10597 | msgid "Logged users" | ... | ... |