Browse Source

Finalize GUI

pull/3260/head
Thomas Kaul 1 year ago
parent
commit
f86915acfa
  1. 1
      apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html
  2. 17
      libs/ui/src/lib/account-balances/account-balances.component.html
  3. 1
      libs/ui/src/lib/account-balances/account-balances.component.ts

1
apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html

@ -115,6 +115,7 @@
</ng-template> </ng-template>
<gf-account-balances <gf-account-balances
[accountBalances]="accountBalances" [accountBalances]="accountBalances"
[accountCurrency]="currency"
[accountId]="data.accountId" [accountId]="data.accountId"
[locale]="user?.settings?.locale" [locale]="user?.settings?.locale"
[showActions]=" [showActions]="

17
libs/ui/src/lib/account-balances/account-balances.component.html

@ -15,8 +15,7 @@
<gf-value [isDate]="true" [locale]="locale" [value]="element?.date" /> <gf-value [isDate]="true" [locale]="locale" [value]="element?.date" />
</td> </td>
<td *matFooterCellDef class="px-2" mat-footer-cell> <td *matFooterCellDef class="px-2" mat-footer-cell>
<mat-form-field appearance="outline"> <mat-form-field appearance="outline" class="py-1 without-hint">
<mat-label i18n>Date</mat-label>
<input formControlName="date" matInput [matDatepicker]="date" /> <input formControlName="date" matInput [matDatepicker]="date" />
<mat-datepicker-toggle matSuffix [for]="date"> <mat-datepicker-toggle matSuffix [for]="date">
<ion-icon <ion-icon
@ -25,7 +24,7 @@
name="calendar-clear-outline" name="calendar-clear-outline"
/> />
</mat-datepicker-toggle> </mat-datepicker-toggle>
<mat-datepicker #date disabled="false" /> <mat-datepicker #date />
</mat-form-field> </mat-form-field>
</td> </td>
</ng-container> </ng-container>
@ -46,13 +45,16 @@
</td> </td>
<td *matFooterCellDef class="px-2" mat-footer-cell> <td *matFooterCellDef class="px-2" mat-footer-cell>
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<mat-form-field apperance="outline"> <mat-form-field appearance="outline" class="without-hint">
<input <input
formControlName="balance" formControlName="balance"
matInput matInput
placeholder="Value" placeholder="Value"
type="number" type="number"
/> />
<div class="ml-2" matTextSuffix>
{{ accountCurrency }}
</div>
</mat-form-field> </mat-form-field>
</div> </div>
</td> </td>
@ -88,7 +90,6 @@
type="submit" type="submit"
[disabled]="accountBalanceForm.invalid" [disabled]="accountBalanceForm.invalid"
> >
<ion-icon name="add" />
<span i18n>Add</span> <span i18n>Add</span>
</button> </button>
</td> </td>
@ -96,6 +97,10 @@
<tr *matHeaderRowDef="displayedColumns" mat-header-row></tr> <tr *matHeaderRowDef="displayedColumns" mat-header-row></tr>
<tr *matRowDef="let row; columns: displayedColumns" mat-row></tr> <tr *matRowDef="let row; columns: displayedColumns" mat-row></tr>
<tr *matFooterRowDef="displayedColumns" mat-footer-row></tr> <tr
*matFooterRowDef="displayedColumns"
mat-footer-row
[hidden]="!showActions"
></tr>
</table> </table>
</form> </form>

1
libs/ui/src/lib/account-balances/account-balances.component.ts

@ -57,6 +57,7 @@ export class GfAccountBalancesComponent
implements OnChanges, OnDestroy, OnInit implements OnChanges, OnDestroy, OnInit
{ {
@Input() accountBalances: AccountBalancesResponse['balances']; @Input() accountBalances: AccountBalancesResponse['balances'];
@Input() accountCurrency: string;
@Input() accountId: string; @Input() accountId: string;
@Input() locale = getLocale(); @Input() locale = getLocale();
@Input() showActions = true; @Input() showActions = true;

Loading…
Cancel
Save