mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
872 B
19 lines
872 B
<form class="inner-form" [formGroup]="editForm.form" (ngSubmit)="saveSchema()">
|
|
<div class="inner-header">
|
|
<ul class="nav nav-tabs2">
|
|
<li class="nav-item" *ngFor="let script of editForm.form.controls | sqxKeys">
|
|
<a class="nav-link" [class.active]="selectedField === script" (click)="selectField(script)">{{script | titlecase}}</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<button type="submit" class="float-right btn btn-primary" [class.invisible]="!isEditable">Save</button>
|
|
</div>
|
|
|
|
<div class="inner-main">
|
|
<ng-container *ngFor="let script of editForm.form.controls | sqxKeys">
|
|
<ng-container *ngIf="selectedField === script">
|
|
<sqx-code-editor [noBorder]="true" [formControlName]="script"></sqx-code-editor>
|
|
</ng-container>
|
|
</ng-container>
|
|
</div>
|
|
</form>
|
|
|