35 lines
1.6 KiB
Plaintext
35 lines
1.6 KiB
Plaintext
<div class="table-light table-responsive very-big-table" ng-controller="costSavingController" id="controller">
|
|
<table class="table table-striped table-bordered dataTable" style="width:300px" id="costSaving-table">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center;text-decoration:underline;color:#4083a9;cursor:pointer;"
|
|
class="nextcol" ng-click="onMonthHeaderClick()">
|
|
<i class="fa" ng-class="filters.CollapsedClass" style="margin-right: 5px;"></i>Expand to Months
|
|
</th>
|
|
<th class="headcol" ng-repeat="header in (filters.Months)" class="nextcol" ng-show="filters.Show" style="text-align:center;">
|
|
{{header}}
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="row in (data) track by $index">
|
|
<td class="headcol">
|
|
<a href="#" editable-text="row.Costs[0]">
|
|
{{ (row.Costs[0] || 0 | number:2) }}
|
|
</a>
|
|
</td>
|
|
|
|
<td class="headcol" ng-repeat="col in (filters.Months) track by $index" ng-show="filters.Show">
|
|
@*<a href="#" editable-text="row.Costs[$index + 1]" e-name="ColValue" e-ng-blur="onTxtBlur(this);" onshow="watchKeyInput(this)"
|
|
buttons="no" blur="submit"
|
|
onbeforesave="checkValue($data, $parent.$index, $index + 1)" e-required>
|
|
{{ (row.Costs[$index + 1] || 0 | number:2) }}
|
|
</a> *@
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|