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="modal-dialog"> |
||||
<div class="form-group"> |
<div class="modal-content"> |
||||
<label for="schemaName">Name</label> |
<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 /> |
<button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="complete()"> |
||||
</div> |
<span aria-hidden="true">×</span> |
||||
|
</button> |
||||
|
</div> |
||||
|
|
||||
<div class="form-group"> |
<div class="modal-body"> |
||||
<label for="schemaLabel">Label</label> |
<div class="form-group"> |
||||
|
<label for="schemaName">Name</label> |
||||
|
|
||||
<sqx-control-errors for="label" [submitted]="editFormSubmitted"></sqx-control-errors> |
<input type="text" class="form-control" id="schemaName" readonly [ngModel]="schema.name" [ngModelOptions]="{standalone: true}" /> |
||||
|
</div> |
||||
|
|
||||
<input type="text" class="form-control" id="schemaLabel" formControlName="label" /> |
<div class="form-group"> |
||||
</div> |
<label for="schemaLabel">Label</label> |
||||
|
|
||||
<div class="form-group"> |
<sqx-control-errors for="label" [submitted]="editFormSubmitted"></sqx-control-errors> |
||||
<label for="schemaHints">Hints</label> |
|
||||
|
|
||||
<sqx-control-errors for="hints" [submitted]="editFormSubmitted"></sqx-control-errors> |
<input type="text" class="form-control" id="schemaLabel" formControlName="label" /> |
||||
|
</div> |
||||
|
|
||||
<textarea type="text" class="form-control" id="schemaHints" formControlName="hints" rows="4"></textarea> |
<div class="form-group"> |
||||
</div> |
<label for="schemaHints">Hints</label> |
||||
|
|
||||
<div class="form-group clearfix"> |
<sqx-control-errors for="hints" [submitted]="editFormSubmitted"></sqx-control-errors> |
||||
<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> |
<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> |
</div> |
||||
</form> |
</div> |
||||
@ -1,33 +1,38 @@ |
|||||
<form [formGroup]="editForm" (ngSubmit)="saveSchema()"> |
<div class="modal-dialog modal-lg"> |
||||
<div class="modal-header"> |
<div class="modal-content"> |
||||
<h4 class="modal-title">Scripts</h4> |
<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()"> |
<button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="complete()"> |
||||
<span aria-hidden="true">×</span> |
<span aria-hidden="true">×</span> |
||||
</button> |
</button> |
||||
</div> |
</div> |
||||
|
|
||||
<div class="modal-body"> |
<div class="modal-tabs clearfix"> |
||||
<ul class="nav nav-tabs"> |
<ul class="nav nav-tabs2"> |
||||
<li class="nav-item" *ngFor="let script of scripts"> |
<li class="nav-item" *ngFor="let script of scripts"> |
||||
<a class="nav-link" [class.active]="selectedField === 'script' + script" (click)="selectField('script' + script)">{{script}}</a> |
<a class="nav-link" [class.active]="selectedField === 'script' + script" (click)="selectField('script' + script)">{{script}}</a> |
||||
</li> |
</li> |
||||
</ul> |
</ul> |
||||
|
</div> |
||||
|
|
||||
<div class="form-group"> |
<div class="modal-body"> |
||||
<div *ngFor="let script of scripts"> |
<div class="form-group"> |
||||
<div *ngIf="selectedField === 'script' + script"> |
<div *ngFor="let script of scripts"> |
||||
<sqx-jscript-editor name="script" [formControlName]="'script' + script"></sqx-jscript-editor> |
<div *ngIf="selectedField === 'script' + script"> |
||||
|
<sqx-jscript-editor name="script" [formControlName]="'script' + script"></sqx-jscript-editor> |
||||
|
</div> |
||||
|
</div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="modal-footer"> |
<div class="modal-footer"> |
||||
<div class="clearfix"> |
<div class="clearfix"> |
||||
<button type="reset" class="float-left btn btn-secondary" (click)="cancel()" [disabled]="editFormSubmitted">Cancel</button> |
<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> |
<button type="submit" class="float-right btn btn-primary">Save</button> |
||||
</div> |
</div> |
||||
|
</div> |
||||
|
</form> |
||||
</div> |
</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