<%= bootstrap_form_with local: true, model: model, id: "video_form" do |form| %> <% if video.new_record? %> <%= form.hidden_field :video_editing_system %> <% end %>
<%= form.text_field :name, wrapper_class: "col-sm-6" %> <%= form.text_field :number, wrapper_class: "col-sm-6" %>
<% if video.new_record? %> <%= form.file_field :file, required: true, label_class: "required", data: { direct_upload_url: rails_direct_uploads_url, aws_bucket: ENV['AWS_BUCKET'], aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'], signer_url: multipart_signatures_url } %> <% end %> <% if video.adobe_premiere? %> <%= render "videos/adobe_premiere_fields", form: form, video: video %> <% else %> <%= render "videos/avid_fields", form: form, video: video %> <% end %>
<% if video.new_record? %> <%= link_to t("shared.back"), [:landing, video.project, :videos], class: "col-3 text-reset" %>
<%= form.button class: "btn btn-success btn-block", id: "video_submit_button", data: { disable_with: fa_icon("spinner spin", text: t("shared.disable_with")) } %>
<% else %> <%= link_to t("shared.cancel"), [video.project, :videos], class: "col-3 text-reset" %>
<%= form.button class: "btn btn-primary btn-block", id: "video_submit_button", data: { disable_with: fa_icon("spinner spin", text: t("shared.disable_with")), confirm: "Warning: Re-uploading the EDLs will restart the reporting process. Expect delays in receiving your reports." } %>
<% end %>
<% end %>