<% locale = I18n.locale.to_s %> <% true_false_trans = {'true'=> t('yes'), 'false'=>t('no')} %> <% default_setting = @default_ask_setting.default_setting if default_setting.keys[0].to_s != 'title' default_setting = {title: true}.merge(default_setting) end %> <% default_setting.each do |k,v| %> <% end %> <% @default_ask_setting.custom_fields.each do |k,v| %> <%= custom_field_block(k,v,true).html_safe %> <% end %>
<%= t('ask.clone_default_setting') %> <%= t('ask.recover_data') %>
<%= t("ask.title_layout") %>: <%= [t("ask.single_column"),t("ask.two_column")][@default_ask_setting.title_layout] %>
<%= t("ask.email_regex") %>: <%= check_box_tag :email_regex_enable, @default_ask_setting.email_regex_enable , nil, {:id=>"",:disabled=>'disabled'} %><%= t("ask.enable") %>
<%= @default_ask_setting.email_regex %>
<%= t('ask.field') %> <%= t('ask.whether_open') %>
<%= tmp = @default_ask_setting.field_name(k,locale, true) %> <%= tmp2 = true_false_trans[v] tmp2 = true_false_trans.values[0] if tmp2.nil? tmp2 %>
<%= t("ask.usage_rule") %> <%= @default_ask_setting.usage_rule.to_s.html_safe %>