<div class="modal fade"
     id="exportRepositoryRowsModal"
     tabindex="-1"
     role="dialog"
     aria-labelledby="modal-export-repository-label">
  <%= form_with(url: export_repository_team_path(repository),
                         html: { id: 'form-repository-rows-export' },
                         data: { remote: true }) do |f| %>
     <div class="modal-dialog" role="document" data-e2e="e2e-MD-invInventoryExportItemsAT">
       <div class="modal-content">
         <div class="modal-header">
           <button type="button" data-e2e="e2e-BT-exportMD-close" class="close" data-dismiss="modal" aria-label="Close"><i class="sn-icon sn-icon-close"></i></button>
           <h4 class="modal-title"><%=t 'zip_export.repositories_modal_label' %></h4>
         </div>
         <div class="modal-body">
           <div class="mb-6"><%=t('zip_export.repository_header_html', repository: repository.name) %></div>
           <div class="mb-6"><%=t 'zip_export.repository_footer_html' %></div>

          <div class="sci-radio-container">
            <%= f.radio_button(
                  :file_type,
                  "xlsx",
                  id: 'file_type_radio',
                  class: 'sci-radio',
                  checked: current_user.settings[:repository_export_file_type].nil? || current_user.settings[:repository_export_file_type] == "xlsx"
                ) %>
            <span class="sci-radio-label"></span>
          </div>
          <%= f.label :file_type, ".xlsx", value: "xlsx", class: "mr-6 ml-3 font-normal" %>

          <div class="sci-radio-container">
            <%= f.radio_button(
                  :file_type,
                  "csv",
                  id: 'file_type_radio',
                  class: 'sci-radio',
                  checked: current_user.settings[:repository_export_file_type] == "csv"
                ) %>
            <span class="sci-radio-label"></span>
          </div>
          <%= f.label :file_type, ".csv", value: "csv", class: "mr-6 ml-3 font-normal" %>
         </div>
         <div class="modal-footer">
           <button type='button' data-e2e='e2e-BT-exportMD-cancel' class='btn btn-secondary' data-dismiss='modal' id='close-modal-export-repository-rows'><%= t('general.cancel')%></button>
           <%= f.submit t('my_modules.repository.export'), id: "export-repository-rows", class: "btn btn-success", data: {e2e: 'e2e-BT-exportMD-export'} %>
         </div>
       </div>
     </div>
   <% end %>
</div>
