{{ 'FORM.LABELS.NAME' | translate }}
{{ 'GOALS_PAGE.FORM.LABELS.LEVEL' | translate }}
{{ 'GOALS_PAGE.FORM.LABELS.STATUS' | translate }}
{{ 'GOALS_PAGE.FORM.LABELS.OWNER' | translate }}
{{ 'GOALS_PAGE.FORM.LABELS.LEAD' | translate }}
{{ 'GOALS_PAGE.SESSION' | translate }}
{{ 'GOALS_PAGE.CURRENT_TARGET' | translate }}
{{ 'SM_TABLE.LAST_UPDATED' | translate }}
{{ 'GOALS_PAGE.PROGRESS' | translate }}
@if (noGoals) {
} @else if (!visibleGoals.length) {
{{ 'GOALS_PAGE.NO_MATCHING_OBJECTIVES' | translate }}
}
@for (group of activeGroups; track group) {
@let groupGoals = goalsForGroup(group);
@if (groupGoals.length) {
{{ groupTitle(group) }}
@if (timeFrameOf(group); as timeFrame) {
{{ timeFrame.startDate | dateFormat : null : 'll' }} –
{{ timeFrame.endDate | dateFormat : null : 'll' }}
}
@for (goal of groupGoals; track goal.id) {
@let expanded = isExpanded(goal);
@let row = rows.get(goal.id);
{{ goal.name }}
{{ levelTitle(goal.level) }}
@if (row?.status) {
}
{{ goalOwnerName(goal) }}
{{ employeeName(goal.lead) }}
{{
goal.deadline
}}
@if (row?.keyResults; as keyResults) {
{{ keyResults.done }} / {{ keyResults.total }} {{ 'GOALS_PAGE.KEY_RESULTS' | translate }}
}
{{ row?.updatedAt | dateFormat : null : 'll' }}
@if (expanded) {
@for (keyResult of goal.keyResults; track keyResult.id) {
@let row = rows.get(keyResult.id);
{{ keyResult.name }}
{{
employeeName(keyResult.owner)
}}
{{
employeeName(keyResult.lead)
}}
{{
row?.deadline | date
}}
@if (row?.value; as value) {
{{ value.current | number }} / {{ value.target | number }} {{ value.unit }}
} @else if (row?.type) {
{{ 'KEY_RESULT_PAGE.TYPE.' + row.type.toUpperCase().replace('/', '_OR_') | translate }}
}
{{ row?.updatedAt | dateFormat : null : 'll' }}
}
}
}
}
}