module Workstation
  class ReleaseBasicsPage < Workstation::BasePage
    select_list(:release_meta_language, name: "meta_language")
    select_list(:film_brand, id: "artistName")
    select_list(:country_of_origin, id: "country_of_origin")
    text_field(:release_name, name: "releaseName")
    link(:localization, class: ["applyall", "locale-add"])
    text_field(:label, name: "label")
    text_field(:release_date, name: "release_date")
    text_field(:sale_start_date, name: "sale_start_date")
    select(:distribution, name: "distribution")
    select(:primary_genre, id: "primaryGenre")
    select(:subgenre, id: "secondaryGenres")
    select(:country_of_origin, id: "country_of_origin")
    select(:film_type, id: "productSubtype")
    select(:studio, id: "imprintName")
    select(:audio_language, id: "audio_language")
    text_field(:copyright, id: "c_line")
    text_area(:short_synopsis, id: "shortSynopsis")
    text_area(:long_synopsis, id: "description")
    radio_button(:closed_caption, id: "createreleasemodal_closedcaption-YES")
    radio_button(:VOD_rights, id: "vodStartDateBtn-Y")
    radio_button(:download_rights, id: "saleStartDateBtn-N")
    radio_button(:theatrical_release, id: "theatricalReleaseDateBtn-N")
    radio_button(:physical_release, id: "physicalReleaseDateBtn-N")
    span(:validation_errors, id: "validation_errors")
    text_field(:copy_right, name: "c_line")
    link(:submit, id: "saveRelease")
  end
end
