#macro batchStatusBadge status>
<#if status == 'COMPLETED'><@tag color='success'>#i18n{module.appointment.importer.status.COMPLETED}@tag>
<#elseif status == 'COMPLETED_WITH_ERRORS'><@tag color='danger'>#i18n{module.appointment.importer.status.COMPLETED_WITH_ERRORS}@tag>
<#elseif status == 'PROCESSING'><@tag color='warning'>#i18n{module.appointment.importer.status.PROCESSING}@tag>
<#elseif status == 'VALIDATION_FAILED'><@tag color='danger'>#i18n{module.appointment.importer.status.VALIDATION_FAILED}@tag>
<#elseif status == 'PENDING'><@tag color='secondary'>#i18n{module.appointment.importer.status.PENDING}@tag>
<#else><@tag color='secondary'>${status?html}@tag>#if>
#macro>
<#macro rowStatusBadge status>
<#if status == 'CREATED'><@tag color='success'>#i18n{module.appointment.importer.status.CREATED}@tag>
<#elseif status == 'ERROR'><@tag color='danger'>#i18n{module.appointment.importer.status.ERROR}@tag>
<#elseif status == 'PROCESSING'><@tag color='warning'>#i18n{module.appointment.importer.status.PROCESSING}@tag>
<#elseif status == 'REPLACED'><@tag color='info'>#i18n{module.appointment.importer.status.REPLACED}@tag>
<#elseif status == 'PENDING'><@tag color='secondary'>#i18n{module.appointment.importer.status.PENDING}@tag>
<#else><@tag color='secondary'>${status?html}@tag>#if>
#macro>
<@messages errors=errors![] warnings=warnings![] infos=infos![] />
<@row><@columns lg=10 offsetLg=1>
<@box class='border shadow-sm'>
<@boxBody>
#i18n{module.appointment.importer.labelBatchFile}
${import_batch.importFileName?html}
#i18n{module.appointment.importer.labelBatchForm}
<#if import_batch.formTitle?has_content>${import_batch.formTitle?html}<#else>${import_batch.idForm}#if>
#i18n{module.appointment.importer.labelBatchSlot}
${import_batch.startingDateTimeLabel?html} – ${import_batch.endingTimeLabel?html}
#i18n{module.appointment.importer.labelBatchStatus}
<@batchStatusBadge status=import_batch.status />
#i18n{module.appointment.importer.labelBatchProcessed}
${processed_rows_count} / ${total_rows_count}
#i18n{module.appointment.importer.columnRows}
${import_batch.counts.created} #i18n{module.appointment.importer.countCreated}
· ${import_batch.counts.errors} #i18n{module.appointment.importer.countErrors}
<#if import_batch.counts.replaced gt 0>· ${import_batch.counts.replaced} #i18n{module.appointment.importer.countReplaced}#if>
<@aButton href=batch_url title='#i18n{module.appointment.importer.buttonAllRows}' size='sm' color='light' />
<@aButton href='${batch_url}&status=ERROR' title='#i18n{module.appointment.importer.buttonErrors}' color='danger' size='sm' />
<@aButton href='${batch_url}&status=CREATED' title='#i18n{module.appointment.importer.buttonCreated}' color='success' size='sm' />
<#if can_retry && import_batch.status == 'COMPLETED_WITH_ERRORS'>
<@tform class='d-inline ms-auto' action='jsp/admin/plugins/appointment/modules/importer/ManageAppointmentImport.jsp'>
<@input type='hidden' name='id_import_batch' value='${import_batch.idImportBatch}' />
<@button type='submit' name='action_doRetryImportBatch' title='#i18n{module.appointment.importer.buttonRetryErrors}' color='warning' size='sm' buttonIcon='refresh' />
@tform>
#if>
<@table class='table-sm table-striped table-hover table-vcenter'>