<div class="file-panel">
  <fieldset class="file bg-upload">
    <div class="well bg-info">
      <%= f.text_field "files[][title]", label: "Title", class: "title", value: file.title, placeholder: t(:'dataset_file.name'), readonly: !file.id.nil? %>
      <%= f.text_area "files[][description]", label: "Description", class: "description", value: file.description, placeholder: t(:'dataset_file.description') %>
      <% if file.filename %>
        <div class="form-group filename-wrapper">
          <div class="current-file">
            <label class="control-label">
              Current file
            </label>
            <p><%= link_to file.filename, file.gh_pages_url %> <%= f.check_box "Change file #{i}", label: "Change file", class: "change-file" %> </p>
          </div>
        </div>
      <% else %>
        <%= f.file_field "files[][file]", label: "File", accept: ".csv" %>
      <% end %>
      <%= f.hidden_field("files[][id]", name: "files[][id]", value: file.id) if file.id %>
    </div>
  </fieldset>
</div>

<div class="file-panel">
  <fieldset class="file bg-upload">
    <div class="well bg-info">
      <%= f.text_field "files[][title]", label: "Title", class: "title", value: file.title, placeholder: t(:'dataset_file.name'), readonly: !file.id.nil? %>
      <%= f.text_area "files[][description]", label: "Description", class: "description", value: file.description, placeholder: t(:'dataset_file.description') %>
      <% if file.dataset_file_schema %>
      <div class="alert alert-warning" role="alert"><b>Warning</b> This file has been validated against the schema <%= link_to file.dataset_file_schema.name, dataset_file_schema_path(file.dataset_file_schema) %></div>
      <% end %>
      <% if file.filename %>
        <div class="form-group filename-wrapper">
          <div class="current-file">
            <label class="control-label">
              Current file
            </label>
            <p><%= link_to file.filename, file.gh_pages_url %> <%= f.check_box "Change file #{i}", label: "Change file", class: "change-file" %> </p>
          </div>
        </div>
      <% else %>
        <%= f.file_field "files[][file]", label: "File", accept: ".csv" %>
      <% end %>
      <%= f.hidden_field("files[][id]", name: "files[][id]", value: file.id) if file.id %>
    </div>
  </fieldset>
</div>

Add schema info to edit form
Add schema info to edit form
