module Workstation
  class EditFilmArtwork < Workstation::BasePage
    include Workstation::ReleaseStatusBar

    # this page needs the uploader to be changed from flash to something that can be automated easily
    link(:back_to_overview, id: "back-to-overview")
    file_field(:poster_art, id: "uploadposterart")
    file_field(:cover_art, id: "uploadcoverart")
    div(:uploading_modal, id: "progressModal")

    def upload_cover_art(file)
      upload_workaround(element: cover_art_element, path: file)
    end

    def upload_poster_art(file)
      upload_workaround(element: poster_art_element, path: file)
    end
  end
end
