Files
grzanieplus.pl/plugins/stTaskSchedulerImportPlugin/modules/stTaskSchedulerImportBackend/templates/uploadSuccess.php
2025-03-12 17:06:23 +01:00

41 lines
1.5 KiB
PHP

<?php
/**
* @var \stTaskSchedulerImportConfigurationInterface[] $imports
* @var \stAdminFileUpload[] $uploaders
* @var \stTaskSchedulerImportConfigurationInterface $configuration
*/
use_helper('stAdminGenerator', 'stTaskSchedulerImport', 'stProgressBar');
st_include_partial('stTaskSchedulerImportBackend/header', [
'title' => __($configuration->getLabel(), null , $configuration->getClass()) . ' - ' . __('Załącz plik')
]);
st_include_partial('stTaskSchedulerImportBackend/list_menu');
st_include_partial('stAdminGenerator/message', ['labels' => $labels]);
echo st_admin_form_tag_start('@stTaskSchedulerImportBackend?action=upload&id='.$id);
echo st_admin_section_start();
if (count($imports) > 1)
{
foreach ($imports as $import)
{
echo st_admin_get_form_field('upload['.$import->getId().'][file]', __($import->getLabel(), null, $import->getClass()), null, 'st_admin_input_file_tag', $uploaders[$import->getId()]->getOptions());
}
}
else
{
echo st_admin_get_form_field('upload['.$imports[0]->getId().'][file]', __('Plik importu'), null, 'st_admin_input_file_tag', $uploaders[$imports[0]->getId()]->getOptions());
}
echo st_admin_section_end();
echo content_tag('div', st_get_admin_actions([
['label' => __('Wykonaj'), 'type' => 'save'],
]));
echo st_admin_form_tag_end();
st_include_partial('stTaskSchedulerImportBackend/footer');