Files
we_bstly-web/src/app/pages/account/voucher/voucher.component.html
T
2022-12-09 22:04:35 +01:00

35 lines
1.4 KiB
HTML

<mat-card>
<mat-card-content>
<p>{{'vouchers.info' | i18n}}</p>
</mat-card-content>
<mat-card-actions>
<a *ngFor="let name of available" mat-raised-button (click)="create(name)" matTooltip="{{'vouchers.' + name + '.text' | i18n}}">
{{'vouchers.' + name | i18n}}
</a>
</mat-card-actions>
<mat-card-footer>
<a href="https://wiki.bstly.de/services/webstly#voucher" class="help-button" matTooltip="{{'help-button' | i18n}}"
matTooltipPosition="above" target="_blank" mat-fab color="accent">
<mat-icon>contact_support</mat-icon>
</a>
</mat-card-footer>
</mat-card>
<div *ngIf="vouchers && vouchers[0]">
<h3>{{'vouchers.temp' | i18n}}</h3>
<p>{{'vouchers.temp.info' | i18n}}</p>
<table mat-table [dataSource]="voucherSource">
<ng-container matColumnDef="type">
<th mat-header-cell *matHeaderCellDef> {{'voucher.type' | i18n}} </th>
<td mat-cell *matCellDef="let voucher">{{voucher.type}}</td>
</ng-container>
<ng-container matColumnDef="code">
<th mat-header-cell *matHeaderCellDef> {{'voucher.code' | i18n}} </th>
<td mat-cell *matCellDef="let voucher">{{voucher.code}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="voucherColumns"></tr>
<tr mat-row *matRowDef="let myRowData; columns: voucherColumns"></tr>
</table>
</div>