Externalize operation list template.
This commit is contained in:
parent
d2e8a3f7ef
commit
296c89ce20
46
src/operations/operationList.component.html
Normal file
46
src/operations/operationList.component.html
Normal file
@ -0,0 +1,46 @@
|
||||
<!-- vim: set tw=80 ts=2 sw=2 sts=2 : -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<balance-chart [account]="account"></balance-chart>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<category-chart></category-chart>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-striped table-condensed table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Date d'op.</th>
|
||||
<th>Libellé de l'opération</th>
|
||||
<th>Montant</th>
|
||||
<th>Solde</th>
|
||||
<th>Catégorie</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<a class="btn btn-success"
|
||||
[routerLink]="['new']">
|
||||
Ajouter
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr [operation-row]="operation"
|
||||
[account]="account"
|
||||
(needsReload)="loadData()"
|
||||
*ngFor="let operation of operations">
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -16,52 +16,7 @@ import { OperationService } from './operation.service';
|
||||
|
||||
@Component({
|
||||
selector: 'operation-list',
|
||||
template: `
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<balance-chart [account]="account"></balance-chart>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<category-chart></category-chart>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-striped table-condensed table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Date d'op.</th>
|
||||
<th>Libellé de l'opération</th>
|
||||
<th>Montant</th>
|
||||
<th>Solde</th>
|
||||
<th>Catégorie</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<a class="btn btn-success"
|
||||
[routerLink]="['new']">
|
||||
Ajouter
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr [operation-row]="operation"
|
||||
[account]="account"
|
||||
(needsReload)="loadData()"
|
||||
*ngFor="let operation of operations">
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
templateUrl: './operationList.component.html'
|
||||
})
|
||||
export class OperationListComponent implements OnInit {
|
||||
private account: Account;
|
||||
|
Loading…
Reference in New Issue
Block a user