minor ui changes
This commit is contained in:
parent
da0633e4c0
commit
519870efce
|
@ -1,31 +1,38 @@
|
|||
<div class="container-fluid">
|
||||
<div class="tenant-choose-dialog row">
|
||||
<mat-card class="col-md-4 offset-md-4">
|
||||
<mat-card-header>
|
||||
<h1 mat-card-title> {{'TENANT-CHOOSE-DIALOG.TITLE' | translate}}</h1>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<form *ngIf="formGroup" class="dialog-form" (ngSubmit)="formSubmit()" [formGroup]="formGroup">
|
||||
<div class="row">
|
||||
<mat-form-field appearance="fill" class="col-md-12">
|
||||
<mat-label>{{'TENANT-CHOOSE-DIALOG.FIELDS.TENANT-CODE' | translate}}</mat-label>
|
||||
<mat-select formControlName="tenantCode">
|
||||
<mat-option *ngFor="let tenant of tenants" [value]="tenant.code">
|
||||
{{tenant.code}}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
<mat-error *ngIf="formGroup.get('tenantCode').hasError('backendError')">{{formGroup.get('tenantCode').getError('backendError')?.message}}</mat-error>
|
||||
<mat-error *ngIf="formGroup.get('tenantCode').hasError('required')">{{'COMMONS.VALIDATION.REQUIRED' | translate}}</mat-error>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="col-12 pt-2">
|
||||
<div class="row editor-actions">
|
||||
<div class="col"><button mat-raised-button color="button" (click)="cancel()" type="button">{{'TENANT-CHOOSE-DIALOG.ACTIONS.BACK' | translate}}</button></div>
|
||||
<div class="col-auto"><button mat-raised-button color="primary" (click)="save($event)" type="primary">{{'TENANT-CHOOSE-DIALOG.ACTIONS.SUBMIT' | translate}}</button></div>
|
||||
<div class="col-12 col-md-8 offset-md-2 col-lg-4 offset-lg-4">
|
||||
<mat-card>
|
||||
<mat-card-header>
|
||||
<h1 mat-card-title> {{'TENANT-CHOOSE-DIALOG.TITLE' | translate}}</h1>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<form *ngIf="formGroup" class="dialog-form" (ngSubmit)="formSubmit()" [formGroup]="formGroup">
|
||||
<div class="row">
|
||||
<mat-form-field appearance="fill" class="col-md-12">
|
||||
<mat-label>{{'TENANT-CHOOSE-DIALOG.FIELDS.TENANT-CODE' | translate}}</mat-label>
|
||||
<mat-select formControlName="tenantCode">
|
||||
<mat-option *ngFor="let tenant of tenants" [value]="tenant.code">
|
||||
{{tenant.code}}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
<mat-error *ngIf="formGroup.get('tenantCode').hasError('backendError')">{{formGroup.get('tenantCode').getError('backendError')?.message}}</mat-error>
|
||||
<mat-error *ngIf="formGroup.get('tenantCode').hasError('required')">{{'COMMONS.VALIDATION.REQUIRED' | translate}}</mat-error>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<div class="col-12">
|
||||
<div class="row editor-actions">
|
||||
<div class="col mt-2">
|
||||
<button type="button" class="default-btn" (click)="cancel()">{{'TENANT-CHOOSE-DIALOG.ACTIONS.BACK' | translate}}</button>
|
||||
</div>
|
||||
<div class="col-auto mt-2">
|
||||
<!-- <button mat-raised-button color="primary" (click)="save($event)" type="primary">{{'TENANT-CHOOSE-DIALOG.ACTIONS.SUBMIT' | translate}}</button> -->
|
||||
<button type="button" class="normal-btn" (click)="save($event)">{{'TENANT-CHOOSE-DIALOG.ACTIONS.SUBMIT' | translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue