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.
36 lines
1.5 KiB
36 lines
1.5 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: true}" />
|
|
</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>
|
|
</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">Save</button>
|
|
</ng-container>
|
|
</sqx-modal-dialog>
|
|
</form>
|