diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-02 15:47:13 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-02 15:47:13 -0400 |
commit | f04ec0700cb111baabc49febf22425612a5b7c58 (patch) | |
tree | cc7439a273de42530f5cbc4106cd54a9e6f746a5 /app/Template/board/table_swimlane.php | |
parent | a0004fb1731994d7308165667fb1c2a0b1ed37f9 (diff) |
Add column vertical scrolling and set column height dynamically
Diffstat (limited to 'app/Template/board/table_swimlane.php')
-rw-r--r-- | app/Template/board/table_swimlane.php | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/app/Template/board/table_swimlane.php b/app/Template/board/table_swimlane.php index 4cd137cb..f9e4c5c1 100644 --- a/app/Template/board/table_swimlane.php +++ b/app/Template/board/table_swimlane.php @@ -1,4 +1,5 @@ <tr id="swimlane-<?= $swimlane['id'] ?>"> + <!-- swimlane toggle --> <?php if (! $hide_swimlane): ?> <th> <?php if (! $not_editable && $swimlane['nb_tasks'] > 0): ?> @@ -11,8 +12,9 @@ </th> <?php endif ?> + <!-- column header title --> <?php foreach ($swimlane['columns'] as $column): ?> - <th class="board-column"> + <th class="board-column-header"> <?php if (! $not_editable): ?> <div class="board-add-icon"> <?= $this->url->link('+', 'taskcreation', 'create', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'task-board-popover', t('Add a new task')) ?> @@ -45,8 +47,9 @@ </th> <?php endforeach ?> </tr> -<tr class="swimlane-row-<?= $swimlane['id'] ?>"> +<tr class="board-swimlane swimlane-row-<?= $swimlane['id'] ?>"> + <!-- swimlane title --> <?php if (! $hide_swimlane): ?> <th class="board-swimlane-title"> <?= $this->e($swimlane['name']) ?> @@ -57,27 +60,19 @@ </th> <?php endif ?> + <!-- task list --> <?php foreach ($swimlane['columns'] as $column): ?> - - <?php if ($not_editable): ?> - <td> - <?php else: ?> - <td - id="column-<?= $column['id'] ?>" - class="column <?= $column['task_limit'] && count($column['tasks']) > $column['task_limit'] ? 'task-limit-warning' : '' ?>" - data-column-id="<?= $column['id'] ?>" - data-swimlane-id="<?= $swimlane['id'] ?>" - data-task-limit="<?= $column['task_limit'] ?>"> - <?php endif ?> - - <?php foreach ($column['tasks'] as $task): ?> - <?= $this->render($not_editable ? 'board/task_public' : 'board/task_private', array( - 'project' => $project, - 'task' => $task, - 'board_highlight_period' => $board_highlight_period, - 'not_editable' => $not_editable, - )) ?> - <?php endforeach ?> - </td> + <td id="column-<?= $column['id'] ?>" class="<?= $column['task_limit'] && $column['nb_tasks'] > $column['task_limit'] ? 'board-task-list-limit' : '' ?>"> + <div class="board-task-list" data-column-id="<?= $column['id'] ?>" data-swimlane-id="<?= $swimlane['id'] ?>" data-task-limit="<?= $column['task_limit'] ?>"> + <?php foreach ($column['tasks'] as $task): ?> + <?= $this->render($not_editable ? 'board/task_public' : 'board/task_private', array( + 'project' => $project, + 'task' => $task, + 'board_highlight_period' => $board_highlight_period, + 'not_editable' => $not_editable, + )) ?> + <?php endforeach ?> + </div> + </td> <?php endforeach ?> </tr>
\ No newline at end of file |