diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-18 21:00:14 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-18 21:00:14 -0400 |
commit | 854457baf0043b51ce9c30f36a6fecaed97cb04d (patch) | |
tree | 0f73023f63654ee7313ac79e83d9d19e58658a1a /app/Template/tasklink/show.php | |
parent | 68fba8fb64afe00aedccdf72f25d79b26356f2ab (diff) |
Improve task summary sections
Diffstat (limited to 'app/Template/tasklink/show.php')
-rw-r--r-- | app/Template/tasklink/show.php | 55 |
1 files changed, 13 insertions, 42 deletions
diff --git a/app/Template/tasklink/show.php b/app/Template/tasklink/show.php index b2ef93d7..9f718fc9 100644 --- a/app/Template/tasklink/show.php +++ b/app/Template/tasklink/show.php @@ -1,43 +1,14 @@ -<?php if (isset($show_title)): ?> - <div class="task-show-title color-<?= $task['color_id'] ?>"> - <h2><?= $this->text->e($task['title']) ?></h2> +<section class="accordion-section <?= empty($links) ? 'accordion-collapsed' : '' ?>"> + <div class="accordion-title"> + <h3><a href="#" class="fa accordion-toggle"></a> <?= t('Internal links') ?></h3> </div> -<?php endif ?> - -<div class="page-header"> - <h2><?= t('Internal links') ?></h2> - <ul> - <li> - <i class="fa fa-code-fork fa-fw"></i> - <?= $this->url->link(t('Add internal link'), 'tasklink', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?> - </li> - </ul> -</div> - -<div id="link"> - - <?= $this->render('tasklink/table', array('links' => $links, 'task' => $task, 'project' => $project, 'editable' => $editable, 'is_public' => $is_public)) ?> - - <?php if ($editable && isset($link_label_list)): ?> - <form action="<?= $this->url->href('tasklink', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" method="post" autocomplete="off"> - <?= $this->form->csrf() ?> - <?= $this->form->hidden('task_id', array('task_id' => $task['id'])) ?> - <?= $this->form->hidden('opposite_task_id', array()) ?> - <?= $this->form->select('link_id', $link_label_list, array(), array()) ?> - <?= $this->form->text( - 'title', - array(), - array(), - array( - 'required', - 'placeholder="'.t('Start to type task title...').'"', - 'title="'.t('Start to type task title...').'"', - 'data-dst-field="opposite_task_id"', - 'data-search-url="'.$this->url->href('TaskHelper', 'autocomplete', array('exclude_task_id' => $task['id'])).'"', - ), - 'autocomplete') ?> - <input type="submit" value="<?= t('Add') ?>" class="btn btn-blue"/> - </form> - <?php endif ?> - -</div> + <div class="accordion-content"> + <?= $this->render('tasklink/table', array( + 'links' => $links, + 'task' => $task, + 'project' => $project, + 'editable' => $editable, + 'is_public' => $is_public, + )) ?> + </div> +</section> |