<h1><%= t('projects.reports.wizard.first_step.select_project_title') %></h1>
<p class="description">
  <%= t('projects.reports.wizard.first_step.select_project_description') %>
</p>
<div class="row">
  <div class="col-md-6">
    <div class='project-selector' data-e2e='e2e-DD-reports-wizard-selectProject'>
      <%= label_tag :projectSelector, t('projects.reports.wizard.first_step.select_project') %>
      <%= select_tag :projectSelector,
                     options_from_collection_for_select(@visible_projects, :id, :name, report.project_id),
                     prompt: t('projects.reports.wizard.first_step.select_project') %>
    </div>

    <div class='template-selector' data-e2e='e2e-DD-reports-wizard-selectPdfTemplate'>
      <%= label_tag :templateSelector, t('projects.reports.wizard.first_step.select_template') %>
      <%= select_tag :templateSelector,
                     options_for_select(@templates.invert, @active_template),
                     prompt: t('projects.reports.wizard.first_step.select_template'),
                     data: {
                       disable_on_load: report.settings[:template].blank? && report.new_record?,
                       placeholder: t('projects.reports.wizard.first_step.select_template'),
                       selected_template: report.settings[:template],
                       default_template: @default_template,
                       values_editor_path: reports_new_template_values_path(report_id: report.id)
                     } %>
    </div>
    <div class='template-selector <%= "hidden" unless custom_templates(Extends::DOCX_REPORT_TEMPLATES) %>' data-e2e='e2e-DD-reports-wizard-selectDocxTemplate'>
      <%= label_tag :docxTemplateSelector, t('projects.reports.wizard.first_step.select_docx_template') %>
      <%= select_tag :docxTemplateSelector,
                     options_for_select(@docx_templates.invert, @active_docx_template),
                     prompt: t('projects.reports.wizard.first_step.select_docx_template'),
                     data: {
                       disable_on_load: report.settings[:docx_template].blank? && report.new_record?,
                       placeholder: t('projects.reports.wizard.first_step.select_docx_template'),
                       selected_template: report.settings[:docx_template],
                       default_template: @default_docx_template,
                       values_editor_path: reports_new_docx_template_values_path(report_id: report.id)
                     } %>
    </div>
  </div>
  <div class="col-md-6">
    <div class="sci-input-container">
      <%= label_tag :projectDescription, t('projects.reports.wizard.first_step.report_description') %>
      <%= text_area_tag :projectDescription, report.description, placeholder: t('projects.reports.wizard.first_step.report_description_placeholder'), class: 'sci-input-field', data: { e2e: "e2e-TX-reports-wizard-description"} %>
    </div>
  </div>
</div>
