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.
46 lines
1.9 KiB
46 lines
1.9 KiB
<form [formGroup]="editForm.form" (ngSubmit)="saveSchema()">
|
|
<sqx-modal-dialog (close)="emitComplete()">
|
|
<ng-container title>
|
|
Edit Schema
|
|
</ng-container>
|
|
|
|
<ng-container content>
|
|
<div class="form-group">
|
|
<label for="schemaName">Name</label>
|
|
|
|
<input type="text" class="form-control" id="schemaName" readonly [ngModel]="schema.name" [ngModelOptions]="standalone" />
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="schemaLabel">Label</label>
|
|
|
|
<sqx-control-errors for="label" [submitted]="editForm.submitted | async"></sqx-control-errors>
|
|
|
|
<input type="text" class="form-control" id="schemaLabel" formControlName="label" />
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="schemaHints">Hints</label>
|
|
|
|
<sqx-control-errors for="hints" [submitted]="editForm.submitted | async"></sqx-control-errors>
|
|
|
|
<textarea type="text" class="form-control" id="schemaHints" formControlName="hints" rows="4"></textarea>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="schemaTags">Tags</label>
|
|
|
|
<sqx-control-errors for="tags" [submitted]="editForm.submitted | async"></sqx-control-errors>
|
|
|
|
<sqx-tag-editor id="schemaTags" formControlName="tags"></sqx-tag-editor>
|
|
|
|
<sqx-form-hint>Tags to annotate your schema for automation processes.</sqx-form-hint>
|
|
</div>
|
|
</ng-container>
|
|
|
|
<ng-container footer>
|
|
<button type="reset" class="float-left btn btn-secondary" (click)="emitComplete()">Cancel</button>
|
|
<button type="submit" class="float-right btn btn-primary" *ngIf="isEditable">Save</button>
|
|
</ng-container>
|
|
</sqx-modal-dialog>
|
|
</form>
|