Keep swimlane headers at the top
This commit is contained in:
parent
e41254ed74
commit
3c6df7a6c6
|
|
@ -0,0 +1,20 @@
|
||||||
|
<tr class="board-swimlane-columns-first">
|
||||||
|
<?php foreach ($swimlane['columns'] as $column): ?>
|
||||||
|
<th class="board-column-header board-column-header-first board-column-header-<?= $column['id'] ?>" data-column-id="<?= $column['id'] ?>">
|
||||||
|
|
||||||
|
<!-- column in collapsed mode -->
|
||||||
|
<div class="board-column-collapsed">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- column in expanded mode -->
|
||||||
|
<div class="board-column-expanded">
|
||||||
|
<span class="board-column-title">
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span class="pull-right">
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</th>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</tr>
|
||||||
|
|
@ -21,14 +21,16 @@
|
||||||
<?php foreach ($swimlanes as $index => $swimlane): ?>
|
<?php foreach ($swimlanes as $index => $swimlane): ?>
|
||||||
<?php if (! ($swimlane['nb_tasks'] === 0 && isset($not_editable))): ?>
|
<?php if (! ($swimlane['nb_tasks'] === 0 && isset($not_editable))): ?>
|
||||||
|
|
||||||
<!-- Note: Columns must render first otherwise we can't collapse them -->
|
|
||||||
<?= $this->render('board/table_column', array(
|
|
||||||
'swimlane' => $swimlane,
|
|
||||||
'not_editable' => isset($not_editable),
|
|
||||||
)) ?>
|
|
||||||
|
|
||||||
<!-- Hide first swimlane-header if project has only 1 swimlane -->
|
|
||||||
<?php if ($index === 0 && $swimlane['nb_swimlanes'] > 1): ?>
|
<?php if ($index === 0 && $swimlane['nb_swimlanes'] > 1): ?>
|
||||||
|
<!-- Render empty columns to setup the "grid" for collapsing columns (Only once and only if more than 1 swimlane in project) -->
|
||||||
|
<?= $this->render('board/table_column_first', array(
|
||||||
|
'swimlane' => $swimlane,
|
||||||
|
'not_editable' => isset($not_editable),
|
||||||
|
)) ?>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?php if ($index === 0 && $swimlane['nb_swimlanes'] > 1): ?>
|
||||||
|
<!-- Only show first swimlane-header if project more than 1 swimlanes -->
|
||||||
<?= $this->render('board/table_swimlane', array(
|
<?= $this->render('board/table_swimlane', array(
|
||||||
'project' => $project,
|
'project' => $project,
|
||||||
'swimlane' => $swimlane,
|
'swimlane' => $swimlane,
|
||||||
|
|
@ -44,6 +46,11 @@
|
||||||
)) ?>
|
)) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?= $this->render('board/table_column', array(
|
||||||
|
'swimlane' => $swimlane,
|
||||||
|
'not_editable' => isset($not_editable),
|
||||||
|
)) ?>
|
||||||
|
|
||||||
<?= $this->render('board/table_tasks', array(
|
<?= $this->render('board/table_tasks', array(
|
||||||
'project' => $project,
|
'project' => $project,
|
||||||
'swimlane' => $swimlane,
|
'swimlane' => $swimlane,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -16,10 +16,20 @@
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#board tr.board-swimlane-columns-first {
|
||||||
|
visibility: hidden;
|
||||||
|
padding: 0px
|
||||||
|
}
|
||||||
|
|
||||||
#board th.board-column-header {
|
#board th.board-column-header {
|
||||||
width: 240px
|
width: 240px
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#board th.board-column-header-first {
|
||||||
|
visibility:hidden;
|
||||||
|
padding: 0px
|
||||||
|
}
|
||||||
|
|
||||||
#board td {
|
#board td {
|
||||||
vertical-align: top
|
vertical-align: top
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue