%
#rather than yaml arrays of the drop downs
export_to = ["destination_db","s3","both"]
export_type = ["incremental","fulldump"]
%>
<%= form_for(@export) do |f| %>
<% if @export.errors.any? %>
<%= pluralize(@export.errors.count, "error") %> prohibited this export from being saved:
<% @export.errors.full_messages.each do |msg| %>
<%= msg %>
<% end %>
<% end %>
Source Schema
<%= f.select :source_schema, @dbs %>
Destination Schema
<%= f.select :destination_schema, @dbs %>
Table Name
<%= f.select :table_name, [] %>
Incremental Column
<%= f.text_field :incremental_column %>
Incremental Column Type
<%= f.text_field :incremental_column_type %>
Maximum Incremental Value
<%= f.text_field :max_incremental_value %>
S3 Path
<%= f.text_field :s3_path %>
Export to
<% export_to.each do |val| %>
SELECTED<% end %>><%= val %>
<% end %>
Export type
<% export_type.each do |val| %>
SELECTED<% end %>><%= val %>
<% end %>
Active
SELECTED<% end %>>true
SELECTED<% end %>>false
<%= f.submit %>
<%= link_to content_tag(:span, 'cancel'), exports_path, :class => "btn left action cancel" %>
<% end %>
<%= javascript_include_tag "myreplicator/chosen.jquery.min" %>
<%= javascript_include_tag "myreplicator/cronwtf.min" %>