2017-03-31 04:42:33 +11:00
|
|
|
- content_for :page_title do
|
2023-07-17 22:08:56 +10:00
|
|
|
= t("imports.titles.#{@bulk_import.type}")
|
2017-03-31 04:42:33 +11:00
|
|
|
|
2023-05-02 20:08:48 +10:00
|
|
|
- if @bulk_import.likely_mismatched?
|
2023-07-18 00:57:18 +10:00
|
|
|
.flash-message.warning= t('imports.mismatched_types_warning')
|
2018-08-15 05:56:17 +10:00
|
|
|
|
2023-05-02 20:08:48 +10:00
|
|
|
- if @bulk_import.overwrite?
|
2023-07-17 22:08:56 +10:00
|
|
|
%p.hint= t("imports.overwrite_preambles.#{@bulk_import.type}_html", filename: @bulk_import.original_filename, total_items: @bulk_import.total_items)
|
2023-05-02 20:08:48 +10:00
|
|
|
- else
|
2023-07-17 22:08:56 +10:00
|
|
|
%p.hint= t("imports.preambles.#{@bulk_import.type}_html", filename: @bulk_import.original_filename, total_items: @bulk_import.total_items)
|
2017-03-31 04:42:33 +11:00
|
|
|
|
2023-05-02 20:08:48 +10:00
|
|
|
.simple_form
|
2017-03-31 04:42:33 +11:00
|
|
|
.actions
|
2023-05-02 20:08:48 +10:00
|
|
|
= link_to t('generic.cancel'), settings_import_path(@bulk_import), method: :delete, class: 'button button-tertiary'
|
|
|
|
= link_to t('generic.confirm'), confirm_settings_import_path(@bulk_import), method: :post, class: 'button'
|