Connect Production release September #50
|
@ -34,7 +34,7 @@
|
||||||
</div>
|
</div>
|
||||||
<form *ngIf="!showLoading" [formGroup]="myForm">
|
<form *ngIf="!showLoading" [formGroup]="myForm">
|
||||||
<div class="uk-grid uk-child-width-1-2">
|
<div class="uk-grid uk-child-width-1-2">
|
||||||
<div *ngIf="placementsOptions.length > 1 && myForm.get('placement').value" input [formInput]="myForm.get('placement')"
|
<div *ngIf="placementsOptions.length > 1" input [formInput]="myForm.get('placement')"
|
||||||
placeholder="Select placement" [options]="placementsOptions" type="select"></div>
|
placeholder="Select placement" [options]="placementsOptions" type="select"></div>
|
||||||
<div *ngIf="orderOptions.length > 1 " input [formInput]="myForm.get('order')" placeholder="Select order" [options]="orderOptions" type="select"></div>
|
<div *ngIf="orderOptions.length > 1 " input [formInput]="myForm.get('order')" placeholder="Select order" [options]="orderOptions" type="select"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -149,6 +149,9 @@ export class PageContentFormComponent implements OnInit {
|
||||||
if (page.left) {
|
if (page.left) {
|
||||||
this.placementsOptions.push({label: "left", value: "left"});
|
this.placementsOptions.push({label: "left", value: "left"});
|
||||||
}
|
}
|
||||||
|
if (page.right) {
|
||||||
|
this.placementsOptions.push({label: "right", value: "right"});
|
||||||
|
}
|
||||||
this.orderOptions = [];
|
this.orderOptions = [];
|
||||||
for (let i = 1; i < countContents + 1; i++) {
|
for (let i = 1; i < countContents + 1; i++) {
|
||||||
this.orderOptions.push({label: "" + i, value: i});
|
this.orderOptions.push({label: "" + i, value: i});
|
||||||
|
|
Loading…
Reference in New Issue