% 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_for_ask('ask_question') @default_ask_setting = data['default_ask_setting'] email_regex = data['email_regex'] %> <% 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' %>