Vertica History for <%= @model %> <%= @id %> - Total: <%= @total_records %> records found
Select New Attributes you want to see in the table for the history of the records in vertica
<%= form_for(@model.to_s.to_sym, url: { :controller => '/vertica_history/vertica_history', :action => 'view_history' }, method: 'get', html: { class: 'form-horizontal' }) do |f| %>
<% @all_columns.each do |key| %>
>
<%= check_box_tag 'attribute-keys[]', key -%>
<%= h key -%>
<% end %>
<%= check_box_tag 'attribute-keys[]', "*" -%>
<%= h "All Attributes" -%>
<%= f.submit('Change Attributes', class: 'btn btn-primary') %>
<% end %>
<%= form_for(@model.to_s.to_sym, url: { :controller => '/vertica_history/vertica_history', :action => 'view_history' }, method: 'get', html: { class: 'form-horizontal' }) do |f| %>
Filters
<%= text_field_tag :filter_column, nil, placeholder: 'Enter filter value...' %>
<%= select_tag :filter_field, options_for_select(@columns), :include_blank => true%>
<%= f.submit('Update/Filter Query', class: 'btn btn-primary') %>
<% end %>
<% if @query_hash.present? %>
Current Filters:
<% @query_hash.each do |col, val| %>
<%= col %> = <%= val %>
<% end %>
<%= form_for(@model.to_s.to_sym, url: { :controller => '/vertica_history/vertica_history', :action => 'view_history' }, method: 'get', html: { class: 'form-horizontal' }) do |f| %>
<%= f.submit('Clear Filters', class: 'btn btn-primary') %>
<% end %>
<% end %>