more fix premise account stuff
This commit is contained in:
@ -11,7 +11,8 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<mat-accordion>
|
<mat-accordion>
|
||||||
<mat-expansion-panel (opened)="collapseDetails = true"
|
<mat-expansion-panel (opened)="collapseDetails = true"
|
||||||
(closed)="collapseDetails = false">
|
(closed)="collapseDetails = false"
|
||||||
|
[expanded]="premise.id == 0">
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<mat-panel-title>
|
<mat-panel-title>
|
||||||
Details
|
Details
|
||||||
@ -42,7 +43,7 @@
|
|||||||
</div><div>
|
</div><div>
|
||||||
<mat-form-field appearance="outline" *ngIf="premise.account">
|
<mat-form-field appearance="outline" *ngIf="premise.account">
|
||||||
<mat-label>Betriebskostenkonto</mat-label>
|
<mat-label>Betriebskostenkonto</mat-label>
|
||||||
<input matInput name="street" [(ngModel)]="premise.account"/>
|
<input matInput name="account" [readonly]="true" [(ngModel)]="premise.account"/>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<button #submitButton type="submit" mat-raised-button color="primary">Speichern</button>
|
<button #submitButton type="submit" mat-raised-button color="primary">Speichern</button>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { MatButton } from '@angular/material/button';
|
import { MatButton } from '@angular/material/button';
|
||||||
|
import { MatExpansionPanel } from '@angular/material/expansion';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { AccountService, PremiseService } from '../data-object-service';
|
import { AccountService, PremiseService } from '../data-object-service';
|
||||||
import { Account, NULL_Premise, Premise } from '../data-objects';
|
import { Account, NULL_Premise, Premise } from '../data-objects';
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<mat-accordion>
|
<mat-accordion>
|
||||||
<mat-expansion-panel (opened)="collapseTenantDetails = true"
|
<mat-expansion-panel (opened)="collapseTenantDetails = true"
|
||||||
(closed)="collapseTenantDetails = false">
|
(closed)="collapseTenantDetails = false"
|
||||||
|
[expanded]="tenant.id == 0">
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<mat-panel-title *ngIf="!collapseTenantDetails">
|
<mat-panel-title *ngIf="!collapseTenantDetails">
|
||||||
Details
|
Details
|
||||||
|
Reference in New Issue
Block a user