EnVisageOnline/Main/Source/EnVisage/Content/templates/SupplyDemandReport/projectRow.html

47 lines
3.0 KiB
HTML

<tr ng-if="row.Initialized" ng-show="row.Show" class="ac-level-{{row.Level}}">
<td class="headcol1 headcol-week expCat ac-row-name" ng-click="toggleRow(row, $event);">
<div ng-if="(row.InactiveScenarios != null && row.InactiveScenarios.length > 0 || row.ActiveScenario.Id != null)"
class="btn-group menuGroup pull-right" ng-popup-menu hide-popovers-container="ng-popup-menu-container">
<a class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-chevron-circle-down menu-arrow"></i>
</a>
<ul class="dropdown-menu dropdown-menu-form dropdown-menu-right dropdown-menu-scroll-auto" style="width: 190px; clear: both; z-index: 499;">
<li ng-if="row.ActiveScenario.Id != null && !row.ReadOnly">
<div style="float: left;">
Edit Project
</div>
<div style="float: right;">
<a ng-if="row.EditUrl" class="btn btn-xs btn-primary popover-warning popover-dark pull-right" style="width: 27px;"
title="Edit Project" data-in-newtab data-checklock-url="{{ row.EditUrl }}" data-toggle="popover" data-container="body" data-placement="left"
data-checklock-table="Project" data-checklock-id="{{row.Id}}" data-checklock-backname="{{ViewModel.DisplayMode.BackUrlTitle}}">
<i class="fa fa-edit"></i>
</a>
</div>
</li>
<li ng-if="row.ActiveScenario.Id != null">
<div style="-ms-text-overflow: ellipsis; -o-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; max-width: 340px; float: left;">
<a class="popover-warning popover-dark" data-toggle="popover" data-container="body" data-in-newtab title="Open scenario" data-checklock-backname="{{ViewModel.DisplayMode.BackUrlTitle}}"
data-checklock-table="Scenario" data-checklock-id="{{row.ActiveScenario.Id}}" data-checklock-url="/Scenarios/Details">Open Scenario</a>
</div>
</li>
</ul>
</div>
<a ng-if="row.Children">
<i class="fa" ng-if="row.Children" ng-attr-title="{{row.Collapsed ? 'Expand' : 'Collapse'}}" ng-class="{'fa-plus-square':row.Collapsed, 'fa-minus-square':!row.Collapsed}"></i>
<div class="shortName ac-name" title="{{ row.Name }}">{{ row.Name }}</div>
</a>
<div class="shortName2" ng-if="!row.Children" title="{{ row.Name || 'empty' }}">{{ row.Name || 'empty' }}</div>
</td>
<td class="ac-row-total">
<div class="ac-total">
{{ row.Priority }}
</div>
</td>
<td class="ac-row-total">
<div class="ac-total">
{{ (row.TotalValue || 0 | number:2) }}
</div>
</td>
</tr>
<!-- Expenditures -->
<tr ng-if="!row.IsMaster && exp.Initialized" ng-repeat="exp in row.Children track by $index" grid-row templateUrl="{{exp.Templates.Main}}"></tr>