<%= form_tag('./export_import') do %>
  <p><label for="codes">
    CSV content goes here:
  </label><br />
  <textarea id="csv_content" name="csv_content" rows=20 style="width: 100%"><%= @csv_content %></textarea></p>

  <p><label for="task">Task: </label>
  <%= select_tag "task", options_for_select(@tasks, @task) %></p>

  <p><%= submit_tag "Run task" %></p>

  <% if !@error_message.nil? && @error_message != "" %>
  <div>Error message: <span style="color: red"><%= @error_message %></span></div>
  <% end %>

  <br />
  <p><label for="output_area">Output area: </label>
  <div id="output_area" style="width: 100%;height: 14em;outline: 1px solid #A9A9A9; overflow: scroll"><%= unless @output.nil?
    @output.html_safe end %>
  </div>
<% end %>
