kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
187 lines
7.0 KiB
187 lines
7.0 KiB
<div class="generic-table--container work-package-table--container"
|
|
ng-class="{ '-with-footer': displaySums }">
|
|
<div class="generic-table--results-container" ng-if="rows.length">
|
|
<table interactive-table class="keyboard-accessible-list generic-table">
|
|
<colgroup>
|
|
<col highlight-col />
|
|
<col highlight-col ng-repeat="column in columns" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th class="checkbox -short hide-when-print">
|
|
<div class="generic-table--header-outer">
|
|
<a href
|
|
alt="{{toggleRowsLabel}}"
|
|
class="no-decoration-on-hover"
|
|
ng-click="setCheckedStateForAllRows(!(rows | allRowsChecked))"
|
|
title="{{toggleRowsLabel}}">
|
|
<icon-wrapper icon-title="{{toggleRowsLabel}}"
|
|
icon-name="yes"></icon-wrapper>
|
|
</a>
|
|
</div>
|
|
</th>
|
|
|
|
<th sort-header ng-repeat="column in columns"
|
|
has-dropdown-menu
|
|
position-relative-to=".generic-table--sort-header-outer"
|
|
target="ColumnContextMenu"
|
|
locals="columns, column"
|
|
locale="column.custom_field && columns.custom_field.name_locale || I18n.locale"
|
|
header-name="column.name"
|
|
header-title="column.title"
|
|
sortable="column.sortable"
|
|
query="query"
|
|
ng-class="column.name == 'id' && '-short' ">
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<!-- Group headers -->
|
|
|
|
<tr work-package-group-header
|
|
ng-repeat-start="row in rows"
|
|
ng-if="!!groupByColumn &&
|
|
($first || row.groupName !== rows[$index-1].groupName)"
|
|
ng-class="{
|
|
group: true,
|
|
open: groupExpanded[currentGroup],
|
|
closed: !groupExpanded[currentGroup],
|
|
keyboard_hover: true
|
|
}"
|
|
id="group-header-{{ row.groupName }}">
|
|
<td colspan="{{ columns.length + 2 - (!!hideWorkPackageDetails * 1) }}">
|
|
<div ng-class="[
|
|
'expander',
|
|
'icon-context',
|
|
'icon-' + (groupExpanded[currentGroup] && 'minus' || 'plus')
|
|
]"
|
|
ng-click="toggleCurrentGroup()">
|
|
<span ng-class="{
|
|
'hidden-for-sighted': true,
|
|
expand: !groupExpanded[currentGroup],
|
|
collapse: groupExpanded[currentGroup]
|
|
}">
|
|
{{ groupExpanded[currentGroup] && I18n.t('js.label_collapse') || I18n.t('js.label_expand') }}
|
|
</span>
|
|
<span class="hidden-for-sighted collapse">{{ I18n.t('js.label_collapse') }}</span>
|
|
</div>
|
|
|
|
<div>
|
|
<span work-package-column
|
|
work-package="row.object"
|
|
column="groupByColumn"
|
|
display-type="{{ groupByColumn.name }}"
|
|
display-empty="-">
|
|
</span>
|
|
|
|
<span class="count">
|
|
({{ countByGroup[row.groupName] }})
|
|
</span>
|
|
</div>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- Work package rows -->
|
|
|
|
<tr work-package-row
|
|
id="work-package-{{ row.object.id }}"
|
|
has-dropdown-menu
|
|
trigger-on-event="contextmenu"
|
|
target="WorkPackageContextMenu"
|
|
locals="rows,row"
|
|
after-focus-on=".id a"
|
|
single-click="selectWorkPackage(row, $event)"
|
|
ng-dblclick="showWorkPackageDetails(row)"
|
|
ng-class="[
|
|
'issue',
|
|
'hascontextmenu',
|
|
row.checked && 'context-menu-selection',
|
|
!row.object['leaf?'] && 'parent' || '',
|
|
row.level > 0 && 'child idnt' || '',
|
|
row.level > 0 && ('idnt-' + row.level) || ''
|
|
]"
|
|
ng-show="!groupByColumn || groupExpanded[row.groupName]">
|
|
|
|
<td class="checkbox -short hide-when-print">
|
|
<accessible-checkbox name="ids[]"
|
|
checkbox-id="work_package{{row.object.id}}"
|
|
checkbox-value="row.object.id"
|
|
checkbox-title="{{checkboxTitle}}"
|
|
model="row.checked"/>
|
|
</td>
|
|
|
|
<td ng-repeat="column in columns" class="{{column.name}}" lang="{{column.custom_field && column.custom_field.name_locale || I18n.locale}}" ng-class="column.name == 'id' && '-short'">
|
|
<span work-package-column
|
|
work-package="row.object"
|
|
column="column"
|
|
display-type="{{column.meta_data.data_type}}"
|
|
project-identifier="projectIdentifier"
|
|
ng-class="[row.level > 0 && column.name == 'subject' && 'icon-context icon-pulldown-arrow4']"/>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<!-- Sums for groups -->
|
|
|
|
<tr work-package-group-sums
|
|
ng-repeat-end
|
|
ng-if="displaySums && !!groupByColumn &&
|
|
($last || row.groupName !== rows[$index+1].groupName)"
|
|
ng-show="!groupByColumn || groupExpanded[row.groupName]"
|
|
ng-class="[
|
|
'group-sum',
|
|
'sum',
|
|
'grouped',
|
|
'group',
|
|
'issue',
|
|
'work_package'
|
|
]">
|
|
<td colspan="{{1 - (!!hideWorkPackageDetails * 1)}}">
|
|
{{ I18n.t('js.label_sum_for') }}
|
|
<span work-package-column
|
|
work-package="row.object"
|
|
column="groupByColumn"
|
|
display-empty="-"/>
|
|
</td>
|
|
<td ng-repeat="column in columns">
|
|
{{ column.group_sums[row.groupName] }}
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
<tfoot>
|
|
|
|
<!-- Total sums -->
|
|
|
|
<tr work-package-total-sums
|
|
ng-if="displaySums"
|
|
class="sum group all issue work_package">
|
|
<td colspan="{{1 - (!!hideWorkPackageDetails * 1)}}">
|
|
<div class="generic-table--footer-outer">
|
|
{{ I18n.t('js.label_sum_for') }} {{ I18n.t('js.label_all_work_packages') }}
|
|
</div>
|
|
</td>
|
|
<td ng-repeat="column in columns">
|
|
<div class="generic-table--footer-outer">
|
|
{{ column.total_sum }}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
</tfoot>
|
|
</table>
|
|
<div class="generic-table--header-background"></div>
|
|
<div class="generic-table--footer-background" ng-if="displaySums"></div>
|
|
</div>
|
|
<div class="generic-table--no-results-container" ng-if="!rows.length">
|
|
<i class="icon-info"></i>
|
|
<h2 class="generic-table--no-results-title">
|
|
{{ I18n.t('js.work_packages.no_results.title') }}
|
|
</h2>
|
|
<div class="generic-table--no-results-description"
|
|
ng-bind-html="I18n.t('js.work_packages.no_results.description_html')"></div>
|
|
</div>
|
|
</div>
|
|
|