<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/wrap-nav" %> <%= stylesheet_link_tag "lib/main-list" %> <%= stylesheet_link_tag "survey" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "jquery-ui-custom.js" %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <%= javascript_include_tag "lib/member/textarea-lang-btn.js" %> <%= javascript_include_tag "lib/jquery.tmpl.min.js" %> <%= javascript_include_tag "survey.js" %> <%= javascript_include_tag "trigger_option.js" %> <% end %> <%= f.error_messages %>

Basic

<%= select_category(f, @module_app) %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
" id="title_<%= locale %>"> <%= f.fields_for :title_translations do |f| %> <%= f.text_field locale, :value => (@survey.title_translations[locale] rescue nil), :placeholder=>"#{t("survey.title")}" %> <% end %>
<% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %> " href="#title_<%= locale %>" data-toggle="tab"><%= t(locale.to_s) %> <% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %> " href="#textarea_<%= locale %>_0" data-toggle="tab"><%= t(locale.to_s) %> <% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
" id="textarea_<%= locale %>_0"> <%= f.fields_for :description_translations do |f| %> <%= f.text_area locale, :class=>'resizable', :value => (@survey.description_translations[locale] rescue nil), :placeholder => "#{t("survey.description")}", :rows=>"3" %> <% end %>
<% end %>
<%= f.datetime_picker :postdate, :value => @survey.postdate, :new_record => @survey.new_record? %>
<%= f.datetime_picker :deadline, :value => @survey.deadline, :new_record => @survey.new_record? %>
<%= f.label :needs_login, t("survey.needs_login"), :class=>"control-label muted" %>
<%= f.label :answer_repeat, t("survey.same_user_can_answer_repeatedly"), :class=>"control-label muted" %>
<%= f.text_field :redirect_url, :class=>"input-xlarge", :placeholder=>"Redirect URL" %>
<%= f.submit t('save'), :class=>'btn btn-primary' %> <%= link_to t('cancel'), get_go_back, :class=>"btn" %>
<%= render :partial => "questions" %>