diff --git a/src/operations/operationRow.component.html b/src/operations/operationRow.component.html new file mode 100644 index 0000000..1a4d3f6 --- /dev/null +++ b/src/operations/operationRow.component.html @@ -0,0 +1,51 @@ + +{{ operation.id }} + +{{ operation.operation_date | date:"yyyy-MM-dd" }} + +{{ operation.label }} + +{{ operation.value | currency:'EUR':'symbol' }} + + + {{ operation.balance | currency:'EUR':'symbol' }} + + +{{ operation.category }} + + +
+ + + + + + + + + + + + + +
+ diff --git a/src/operations/operationRow.component.ts b/src/operations/operationRow.component.ts index 094558f..25b34bb 100644 --- a/src/operations/operationRow.component.ts +++ b/src/operations/operationRow.component.ts @@ -21,58 +21,7 @@ import { OperationDeleteModalComponent } from './operationDeleteModal.component' "[class.warning]": "operation.balance < 0", "[class.danger]": "operation.balance < account.authorized_overdraft" }, - template: ` -{{ operation.id }} - -{{ operation.operation_date | date:"yyyy-MM-dd" }} - -{{ operation.label }} - -{{ operation.value | currency:'EUR':'symbol' }} - - - {{ operation.balance | currency:'EUR':'symbol' }} - - -{{ operation.category }} - - -
- - - - - - - - - - - - - -
- - ` + templateUrl: './operationRow.component.html' }) export class OperationRowComponent { @Input('operation-row') operation: Operation = new Operation();