Load external tasks asynchronously from task view page

This commit is contained in:
Frederic Guillot
2016-11-06 20:08:36 -05:00
parent f758ddfc5e
commit e5c63f4ecc
7 changed files with 69 additions and 3 deletions

View File

@@ -160,6 +160,10 @@
<?php endif ?>
</div>
<?php if (! empty($task['external_uri']) && ! empty($task['external_provider'])): ?>
<external-task-view url="<?= $this->url->href('ExternalTaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])) ?>"></external-task-view>
<?php endif ?>
<?php if ($editable && empty($task['date_started'])): ?>
<div class="buttons-header">
<?= $this->url->button('fa-play', t('Set start date'), 'TaskModificationController', 'start', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>