diff --git a/app/helpers/admin/asks_helper.rb b/app/helpers/admin/asks_helper.rb
index 16e5046..ac2416d 100644
--- a/app/helpers/admin/asks_helper.rb
+++ b/app/helpers/admin/asks_helper.rb
@@ -330,10 +330,12 @@ module Admin::AsksHelper
default_key = options_hash.keys[default_idx]
options_values = options_hash.values
value ||= {default_key=>default_key}
- readonly ? value.collect{|k1,v1| options_values[v1.to_i][I18n.locale]}.join(', ') : options_hash.collect do |index1,option|
+ field_name_underscre = field_name.gsub(/(\[|\])/,'_').gsub('__','_').chomp('_')
+ readonly ? value.collect{|k1,v1| options_values[v1.to_i][I18n.locale]}.join(', ') : ("" + options_hash.collect do |index1,option|
next if option['disabled'] == 'true'
- "#{check_box_tag("#{field_name}[#{index1}]",index1,value[index1]==index1)}#{option[I18n.locale]}"
- end.compact.join
+ checkbox_option = option[I18n.locale]
+ ""
+ end.compact.join + "")
end
when 'file'
file_value = value[0] rescue nil
diff --git a/app/views/asks/index.html.erb b/app/views/asks/index.html.erb
index 9ba067b..338d609 100644
--- a/app/views/asks/index.html.erb
+++ b/app/views/asks/index.html.erb
@@ -77,6 +77,9 @@
.ask-question .controls > input[type="radio"]:not(:first-child) {
margin-left: 0.5em;
}
+ .ask-question .checkbox-inline:first-child {
+ margin-left: 0.625em;
+ }
<%# javascript_include_tag "/assets/lib/jquery-ui-1.12.1/jquery-ui.min" %>
<%# stylesheet_link_tag "/assets/lib/jquery-ui-1.12.1/jquery-ui.min" %>
diff --git a/app/views/asks/show.html.erb b/app/views/asks/show.html.erb
index c2ced5b..1a8d0bb 100644
--- a/app/views/asks/show.html.erb
+++ b/app/views/asks/show.html.erb
@@ -47,6 +47,9 @@
padding: 1em 0 0 0;
text-align: center;
}
+ .ask-question .checkbox-inline:first-child {
+ margin-left: 0.625em;
+ }
<%= stylesheet_link_tag "custom_field" %>