Move task import outside of project settings

This commit is contained in:
Frederic Guillot
2016-05-28 21:24:24 -04:00
parent 14d6affe2e
commit ed074d1764
8 changed files with 45 additions and 30 deletions

View File

@@ -1,7 +1,7 @@
<div class="page-header">
<h2><?= t('Tasks Importation') ?></h2>
</div>
<form action="<?= $this->url->href('TaskImportController', 'step2', array('project_id' => $project['id'])) ?>" method="post" enctype="multipart/form-data">
<form action="<?= $this->url->href('TaskImportController', 'save', array('project_id' => $project['id'])) ?>" method="post" enctype="multipart/form-data">
<?= $this->form->csrf() ?>
<?= $this->form->label(t('Delimiter'), 'delimiter') ?>

View File

@@ -0,0 +1,9 @@
<div class="sidebar">
<h2><?= t('Imports') ?></h2>
<ul>
<li <?= $this->app->checkMenuSelection('TaskImportController', 'show') ?>>
<?= $this->url->link(t('Tasks').' (CSV)', 'TaskImportController', 'show', array('project_id' => $project['id'])) ?>
</li>
<?= $this->hook->render('template:task-import:sidebar') ?>
</ul>
</div>