<% data = action_data @ask_question = data["ask_question"] @categories = data["categories"] @tags = data["tags"] @module_app = data["module_app"] @switch_form = data["switch_form"] ask_setting = data["ask_setting"] set_input_name('ask_question') @default_ask_setting = data['default_ask_setting'] %> <% if data['layout_type'] != 'index' %> <%= render template: "asks/#{data['layout_type']}",:locals => { :data => data, :ask_setting => ask_setting } %> <% else %> <%# 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" %> <%= stylesheet_link_tag "custom_field" %> <%# stylesheet_link_tag "jquery-ui-timepicker-addon" %> <%# javascript_include_tag "lib/bootstrap-datetimepicker" %> <%# javascript_include_tag "jquery.ui.datepicker.monthyearpicker" %> <%= javascript_include_tag 'validator' %>
<% tmp_gotcha_error = gotcha_error tmp_gotcha = gotcha %> <%= @switch_form.gsub("{{gotcha_error}}",tmp_gotcha_error).gsub("{{gotcha}}",tmp_gotcha).html_safe %>
<% end %>