EnVisageOnline/Main/Source/EnVisage/Content/templates/ActivityCalendar/_activityCalendarByResource...

154 lines
8.4 KiB
HTML

<div ng-controller="activityCalendarByResController" class="ac-container">
<div class="ac-control" ng-show="ViewModel.DataLoaded" ng-cloak ng-init-widget>
<!--Left Frozen Block-->
<div class="ac-left-col">
<!--Header section-->
<div class="freezeTable1 ac-left-col-header">
<table class="table1 table-light">
<thead>
<tr>
<th class="firstcol">
<div>Project</div>
</th>
<th class="firstcol">
<div>Total</div>
</th>
</tr>
</thead>
</table>
</div>
<!--Section with project names-->
<div class="freezeTable1 ac-left-col-content height-container">
<!-- ac-left-table class uses only for ngMovable directive to identify right place to move body from the bottom part -->
<table class="table table1 vertical-scroll-target watch-resizing ng-popup-menu-container ac-left-table" data-scrollcontainerclass="table-light" data-menuclass="menuGroup">
<tbody ng-if="ViewModel.DisplayMode.ShowUpper.Value">
<tr ng-repeat="resourceRow in ViewModel.Rows" grid-row templateUrl="{{resourceRow.Templates.Main}}"></tr>
<!-- Unassigned Row -->
<tr ng-if="ViewModel.UnassignedRow">
<td class="headcol1 headcol-week">
<div class="shortNameGroup" title="Unassigned">
<strong>Unassigned</strong>
</div>
</td>
<td class="ac-row-total">
<div class="ac-total">
<strong>{{ (ViewModel.UnassignedRow.TotalValue || 0 | number:2) }}</strong>
</div>
</td>
</tr>
<!-- Projects -->
<tr ng-repeat="row in ViewModel.UnassignedRow.Children" grid-row templateUrl="{{row.Templates.Main}}"></tr>
<tr>
<td class="headcol1 headcol-week ac-row-name">
<strong title="Total">Total</strong>
</td>
<td class="ac-row-total">
<div class="ac-total">
<strong>{{ (ViewModel.TotalRow.TotalValue || 0 | number:2) }}</strong>
</div>
</td>
</tr>
</tbody>
<tbody>
<tr class="remaining-capacity-row">
<td class="headcol1 headcol-week">
<strong title="Remaining Capacity">Remaining Capacity</strong>
</td>
<td class="ac-row-total">
<div class="ac-total">
<strong>{{ (ViewModel.RemainingCapacityRow.TotalValue || 0 | number:2) }}</strong>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="header-container width-container">
<div class="freezeTable1 horizontal-scroll-target" style="margin-left: -400px">
<table class="table ac-table-header table-light">
<thead class="watch-resizing">
<tr>
<th style="width:400px" class="firstcol"></th>
<!-- years -->
<th ng-repeat="header in (ViewModel.Header.Years) track by $index" colspan="{{ header.Colspan }}" class="ac-normal-header-cell">
{{ header.Title }}
</th>
</tr>
<tr>
<th class="headcol" style="visibility: hidden;"></th>
<!-- months -->
<th ng-repeat="header in (ViewModel.Header.Months) track by $index" ng-click="toggleMonth($index)"
colspan="{{ header.Colspan }}" class="ac-normal-header-cell headcol-month">
<i class="fa" ng-class="header.CollapsedClass" style="margin-right: 5px;"></i>
{{ header.ShortTitle }}
</th>
</tr>
<tr>
<th class="headcol" style="visibility: hidden;"></th>
<!-- days -->
<th ng-repeat="header in (ViewModel.Header.Weeks) track by $index"
ng-if="header.Initialized"
ng-show="header.Show" class="ac-normal-header-cell">
{{ header.ShortTitle }}
</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="table-light table-responsive very-big-table freezeTable freezeTable1 main-table-container height-container width-container watch-scroll">
<!-- ac-right-table class uses only for ngMovable directive to identify right place to move body from the bottom part -->
<table class="table table-striped table-bordered main-table ac-right-table"
ng-attr-data-visible-cells="{{ ViewModel.Header.Colspan }}"
ng-class="{'bar-mode':ViewModel.DisplayMode.IsBarMode}">
<tbody ng-if="ViewModel.DisplayMode.ShowUpper.Value">
<tr ng-repeat="resourceRow in ViewModel.Rows" grid-row templateUrl="{{resourceRow.Templates.Numbers}}"></tr>
<!-- Unassigned Row -->
<tr ng-if="ViewModel.UnassignedRow">
<td ng-repeat="header in (ViewModel.Header.Weeks) track by $index"
ng-if="header.Initialized"
ng-show="header.Show">
<strong>{{ (ViewModel.UnassignedRow.Cells[$index] | number:2) }}</strong>
</td>
</tr>
<!-- Projects -->
<tr ng-repeat="row in ViewModel.UnassignedRow.Children" grid-row templateUrl="{{row.Templates.Numbers}}"></tr>
<!-- Total row -->
<tr>
<td ng-repeat="header in (ViewModel.Header.Weeks) track by $index"
ng-if="header.Initialized"
ng-show="header.Show"
ng-attr-style="{{ ViewModel.TotalRow.CSSStyle[$index] }}"
ng-class="ViewModel.TotalRow.CSSClass[$index]">
<strong>{{ (ViewModel.TotalRow.Cells[$index] | number:2) }}</strong>
</td>
</tr>
</tbody>
<tbody>
<tr class="remaining-capacity-row">
<td ng-repeat="header in (ViewModel.Header.Weeks) track by $index"
ng-if="header.Initialized"
ng-show="header.Show"
ng-attr-style="{{ ViewModel.RemainingCapacityRow.CSSStyle[$index] }}"
ng-class="ViewModel.RemainingCapacityRow.CSSClass[$index]">
<strong>{{ (ViewModel.RemainingCapacityRow.Cells[$index] | number:2) }}</strong>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="ac-control" ng-show="!ViewModel.DataLoaded">
<table class="table" style="width: 100%">
<tbody>
<tr>
<td style="text-align: center;">
There is no data available.
</td>
</tr>
</tbody>
</table>
</div>
<div ng-show="::false" ng-include="'/Content/templates/ActivityCalendar/_activityCalendarTeamInfo.html?v=9'"></div>
</div>