.modal-dialog.modal-dialog-centered{ role: 'document' }
  .modal-content
    = form_for(download_on_demand) do |f|
      .modal-header
        %h5.modal-title#edit-dod-source-label= title
      .modal-body
        .mb-3.row
          = f.label :arch, 'Architecture', class: 'col-sm-4 col-form-label'
          .col-sm-8
            = f.select :arch, options_for_select(available_architectures, download_on_demand.try(:arch)), {}, required: true,
                              class: 'form-select'
        .mb-3.row
          = f.label :repotype, 'Type', class: 'col-sm-4 col-form-label'
          .col-sm-8
            = f.select :repotype, options_for_select(DownloadRepository::REPOTYPES, download_on_demand.try(:repotype)), {},
                                  class: 'form-select'
        .mb-3.row
          = f.label :url, 'Url', class: 'col-sm-4 col-form-label'
          .col-sm-8
            = f.text_field(:url, required: true, class: 'form-control')
        .mb-3.row
          = f.label :archfilter, 'Arch. Filter', class: 'col-sm-4 col-form-label'
          .col-sm-8
            = f.text_field :archfilter, class: 'form-control'
        .mb-3.row
          = f.label :masterurl, 'Master Url', class: 'col-sm-4 col-form-label'
          .col-sm-8
            = f.text_field :masterurl, class: 'form-control'
        .mb-3.row
          = f.label :mastersslfingerprint, 'SSL Fingerprint', class: 'col-sm-4 col-form-label'
          .col-sm-8
            = f.text_field :mastersslfingerprint, class: 'form-control'
        .mb-3.row
          = f.label :pubkey, 'Public Key', class: 'col-sm-4 col-form-label'
          .col-sm-8
            = f.text_area :pubkey, row: 2, class: 'form-control'
        .mb-3.row
          = f.hidden_field :repository_id
          = hidden_field_tag :project, project
      .modal-footer
        = render partial: 'webui/shared/dialog_action_buttons'
