<%= javascript_tag("function update_table() {" + remote_function(:update => 'survey_table', :url => { :controller=> 'survey', :action => 'list_inline', :state_id => @state_id }) + "}") %> <%= javascript_tag("function table_invalid(){Element.setStyle('log_table', {backgroundColor : '#FFBBBB'})}") %> <%= javascript_tag("function table_reload(){Element.setStyle('log_table', {backgroundColor : '#FFFF66'})}") %> <%= javascript_tag("function table_valid(){Element.setStyle('log_table', {backgroundColor : 'transparent'})}") %> <%= show_hide_script %>
Data
<%= button_to 'Chart', {:action => 'chart',:state_id => @state_id }%> <%= button_to "Create View", {:action => 'create_view', :state_id => @state_id} %> <%= button_to_function('Hide query', "Element.toggle('action_hide_query','action_show_query', 'query')", :id => 'action_hide_query', :style => 'display: none' ) %> Download data as: <%= button_to 'CSV', {:action => 'csv', :show_originals => params[:show_originals], :state_id => @state_id }%> <%= button_to 'Text', {:action => 'text',:show_originals => params[:show_originals],:state_id => @state_id }%> <%= button_to 'PDF', {:action => 'pdf',:show_originals => params[:show_originals],:state_id => @state_id }%>
Query <%= short_help("Query","This query describes the current datasource containing all selected conditions and filters.") %> <%= create_links_in_query(@query_string) %>
Count <%= short_help("Count","The total count of the data source plus the percentage of the selected set. Because counting can be very slow, by default this field is not calculated. Pleas click on 'Calculate' to get the values.") %> <%= render :partial => 'count_text' %>
Paging <%= render :partial => 'pagination_form' %>
<%= render :partial => 'data_table' %>