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.
30 lines
1.3 KiB
30 lines
1.3 KiB
<form [formGroup]="editForm.form" (ngSubmit)="saveSchema()">
|
|
<sqx-modal-dialog (close)="emitComplete()" large="true">
|
|
<ng-container title>
|
|
Scripts
|
|
</ng-container>
|
|
|
|
<ng-container tabs>
|
|
<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>
|
|
</ng-container>
|
|
|
|
<ng-container content>
|
|
<div class="form-group">
|
|
<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>
|
|
</ng-container>
|
|
|
|
<ng-container footer>
|
|
<button type="reset" class="float-left btn btn-secondary" (click)="emitComplete()" [disabled]="editForm.submitted | async">Cancel</button>
|
|
<button type="submit" class="float-right btn btn-primary" *ngIf="isEditable">Save</button>
|
|
</ng-container>
|
|
</sqx-modal-dialog>
|
|
</form>
|
|
|