EnVisageOnline/Main/Source/EnVisage/Content/templates/ActivityCalendar/resourceGbrNumbersRow.html

54 lines
2.7 KiB
HTML

<tr>
<td ng-repeat="header in (ViewModel.Header.Weeks) track by $index"
ng-if="header.Initialized"
ng-show="header.Show"
ng-attr-style="{{ resourceRow.CSSStyle[$index] }}"
ng-class="resourceRow.CSSClass[$index]">
<div class="exp-cat-total" ng-tooltip tt-header="header" tt-on-content="resourceRow.getTooltipContent"
tt-resource-id="resourceRow.Id"
tt-expcat-id="resourceRow.OwnExpenditureCategoryId">
{{ (resourceRow.Cells[$index] | number:2) }}
</div>
</td>
</tr>
<!-- Projects -->
<tr ng-if="prj.Initialized" ng-repeat="prj in resourceRow.Children" grid-row templateUrl="{{prj.Templates.Numbers}}" ng-init="row = prj"></tr>
<!-- Resource Non-Project Time -->
<tr ng-if="resourceRow.NonProjectTime.Initialized" ng-show="resourceRow.NonProjectTime.Show">
<!-- NPT total values row -->
<td ng-repeat="header in (ViewModel.Header.Weeks) track by $index"
ng-if="header.Initialized"
ng-show="header.Show"
ng-attr-style="{{ resourceRow.NonProjectTime.CSSStyle[$index] }}"
ng-class="resourceRow.NonProjectTime.CSSClass[$index]">
{{ (resourceRow.NonProjectTime.Cells[$index] | number:2) }}
</td>
</tr>
<!-- NPT Category values row -->
<tr ng-if="nptCat.Initialized" ng-show="nptCat.Show" ng-repeat-start="nptCat in (resourceRow.NonProjectTime.Children) track by $index">
<td ng-repeat="header in (ViewModel.Header.Weeks) track by $index"
ng-if="header.Initialized"
ng-show="header.Show"
ng-class="nptCat.CSSClass[$index]">
{{ (nptCat.Cells[$index] | number:2) }}
</td>
</tr>
<!-- NPT Item values row -->
<tr ng-if="nptItem.Initialized" ng-show="nptItem.Show" ng-repeat="nptItem in (nptCat.Children) track by $index">
<td ng-repeat="header in (ViewModel.Header.Weeks) track by $index"
ng-if="header.Initialized"
ng-show="header.Show"
ng-class="nptItem.CSSClass[$index]"
style="height: 31px;">
<a href="javascript:void(0)" editable-text="nptItem.Cells[$index]" e-name="ColValue" e-ng-blur="onTxtBlur(this);" onshow="watchKeyInput(this)" buttons="no"
blur="submit" onbeforesave="checkNptResourceValue(resourceRow, resourceRow.NonProjectTime, nptCat, nptItem, nptItem.Children[0], $index, $data)" e-required
ng-if="nptItem.Children[0].EditableNptWeeks[$index] && (nptItem.Cells[$index] != 0)">
{{ nptItem.Cells[$index] | number:2 }}
</a>
<span ng-if="!nptItem.Children[0].EditableNptWeeks[$index] && (nptItem.Cells[$index] != 0)">
{{ (nptItem.Cells[$index] | number:2) }}
</span>
</td>
</tr>
<tr ng-repeat-end ng-if="::false"></tr><!-- NPT Category values row -->