<% if video.edl_file.attached? %>
  <div id="current-edl-file" class="offset-md-2 col-md-6 mb-2">
    <div class="text-muted"><em>Current EDL file</em></div>
    <%= link_to video.edl_file do %>
      <%= fa_icon "file-text-o" %> <%= video.edl_file.filename %>
    <% end %>
  </div>
<% end %>
<%= form.file_field :edl_file, required: video.new_record?, accept: '.edl', label_class: "required", label: "Video Only EDL", help: "Make sure the EDL features the video track containing all video elements needed for the Production Elements Log. Failure to do so may result in inaccurate and incomplete reporting." %>

<% if video.graphics_only_edl_file.attached? %>
  <div id="current-graphics-only-edl-file" class="offset-md-2 col-md-6 mb-2">
    <div class="text-muted"><em>Current Graphics Only EDL file</em></div>
    <%= link_to video.graphics_only_edl_file do %>
      <%= fa_icon "file-text-o" %> <%= video.graphics_only_edl_file.filename %>
    <% end %>
  </div>
<% end %>
<%= form.file_field :graphics_only_edl_file, accept: '.edl', label: "Graphics Only EDL", help: "Make sure the EDL features the video track containing all text and graphic elements needed for the Graphics Cue List. Failure to do so may result in inaccurate or incomplete reporting." %>

<% if video.audio_only_edl_file.attached? %>
  <div id="current-audio-only-edl-file" class="offset-md-2 col-md-6 mb-2">
    <div class="text-muted"><em>Current Audio Only EDL file</em></div>
    <%= link_to video.audio_only_edl_file do %>
      <%= fa_icon "file-text-o" %> <%= video.audio_only_edl_file.filename %>
    <% end %>
  </div>
<% end %>
<%= form.file_field :audio_only_edl_file, required: video.new_record?, accept: '.edl', label_class: "required", label: "Audio Only EDL", help: "Make sure the EDL features the 4 audio tracks containing all the music elements needed for the Music Cue Sheet. Failure to do so may result in inaccurate or incomplete reporting." %>
<p class="alert alert-info text-center">
  If your video project requires additional EDLs,
  <%= mail_to_for_multiple_edls "click here", video.project %> to email them to the BiG support team.
</p>
