mirror of https://github.com/Squidex/squidex.git
25 changed files with 293 additions and 477 deletions
@ -1,28 +1,44 @@ |
|||
<form [formGroup]="editForm" (ngSubmit)="saveSchema()"> |
|||
<div class="form-group"> |
|||
<label for="schemaName">Name</label> |
|||
<div class="modal-dialog"> |
|||
<div class="modal-content"> |
|||
<form [formGroup]="editForm" (ngSubmit)="saveSchema()"> |
|||
<div class="modal-header"> |
|||
<h4 class="modal-title">Edit Schema</h4> |
|||
|
|||
<input type="text" class="form-control" id="schemaName" [attr.value]="name" readonly /> |
|||
</div> |
|||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="complete()"> |
|||
<span aria-hidden="true">×</span> |
|||
</button> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<label for="schemaLabel">Label</label> |
|||
|
|||
<sqx-control-errors for="label" [submitted]="editFormSubmitted"></sqx-control-errors> |
|||
<div class="modal-body"> |
|||
<div class="form-group"> |
|||
<label for="schemaName">Name</label> |
|||
|
|||
<input type="text" class="form-control" id="schemaLabel" formControlName="label" /> |
|||
</div> |
|||
<input type="text" class="form-control" id="schemaName" readonly [ngModel]="schema.name" [ngModelOptions]="{standalone: true}" /> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<label for="schemaHints">Hints</label> |
|||
|
|||
<sqx-control-errors for="hints" [submitted]="editFormSubmitted"></sqx-control-errors> |
|||
<div class="form-group"> |
|||
<label for="schemaLabel">Label</label> |
|||
|
|||
<sqx-control-errors for="label" [submitted]="editFormSubmitted"></sqx-control-errors> |
|||
|
|||
<textarea type="text" class="form-control" id="schemaHints" formControlName="hints" rows="4"></textarea> |
|||
</div> |
|||
<input type="text" class="form-control" id="schemaLabel" formControlName="label" /> |
|||
</div> |
|||
|
|||
<div class="form-group clearfix"> |
|||
<button type="reset" class="float-left btn btn-secondary" (click)="cancel()" [disabled]="editFormSubmitted">Cancel</button> |
|||
<button type="submit" class="float-right btn btn-primary">Save</button> |
|||
<div class="form-group"> |
|||
<label for="schemaHints">Hints</label> |
|||
|
|||
<sqx-control-errors for="hints" [submitted]="editFormSubmitted"></sqx-control-errors> |
|||
|
|||
<textarea type="text" class="form-control" id="schemaHints" formControlName="hints" rows="4"></textarea> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="modal-footer"> |
|||
<div class="clearfix"> |
|||
<button type="reset" class="float-left btn btn-secondary" (click)="complete()" [disabled]="editFormSubmitted">Cancel</button> |
|||
<button type="submit" class="float-right btn btn-primary">Save</button> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
@ -1,33 +1,38 @@ |
|||
<form [formGroup]="editForm" (ngSubmit)="saveSchema()"> |
|||
<div class="modal-header"> |
|||
<h4 class="modal-title">Scripts</h4> |
|||
<div class="modal-dialog modal-lg"> |
|||
<div class="modal-content"> |
|||
<form [formGroup]="editForm" (ngSubmit)="saveSchema()"> |
|||
<div class="modal-header"> |
|||
<h4 class="modal-title">Scripts</h4> |
|||
|
|||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="cancel()"> |
|||
<span aria-hidden="true">×</span> |
|||
</button> |
|||
</div> |
|||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="complete()"> |
|||
<span aria-hidden="true">×</span> |
|||
</button> |
|||
</div> |
|||
|
|||
<div class="modal-body"> |
|||
<ul class="nav nav-tabs"> |
|||
<li class="nav-item" *ngFor="let script of scripts"> |
|||
<a class="nav-link" [class.active]="selectedField === 'script' + script" (click)="selectField('script' + script)">{{script}}</a> |
|||
</li> |
|||
</ul> |
|||
<div class="modal-tabs clearfix"> |
|||
<ul class="nav nav-tabs2"> |
|||
<li class="nav-item" *ngFor="let script of scripts"> |
|||
<a class="nav-link" [class.active]="selectedField === 'script' + script" (click)="selectField('script' + script)">{{script}}</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<div *ngFor="let script of scripts"> |
|||
<div *ngIf="selectedField === 'script' + script"> |
|||
<sqx-jscript-editor name="script" [formControlName]="'script' + script"></sqx-jscript-editor> |
|||
<div class="modal-body"> |
|||
<div class="form-group"> |
|||
<div *ngFor="let script of scripts"> |
|||
<div *ngIf="selectedField === 'script' + script"> |
|||
<sqx-jscript-editor name="script" [formControlName]="'script' + script"></sqx-jscript-editor> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="modal-footer"> |
|||
<div class="clearfix"> |
|||
<button type="reset" class="float-left btn btn-secondary" (click)="cancel()" [disabled]="editFormSubmitted">Cancel</button> |
|||
<button type="submit" class="float-right btn btn-primary">Save</button> |
|||
</div> |
|||
<div class="modal-footer"> |
|||
<div class="clearfix"> |
|||
<button type="reset" class="float-left btn btn-secondary" (click)="complete()" [disabled]="editFormSubmitted">Cancel</button> |
|||
<button type="submit" class="float-right btn btn-primary">Save</button> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
</form> |
|||
|
|||
</div> |
|||
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 4.7 KiB |
Loading…
Reference in new issue