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.
69 lines
2.9 KiB
69 lines
2.9 KiB
|
|
<form [formGroup]="fieldForm.form" (ngSubmit)="saveSchema()">
|
|
<div class="card">
|
|
<div class="card-header">{{ 'common.generalSettings' | sqxTranslate }}</div>
|
|
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label for="name">{{ 'common.name' | sqxTranslate }}</label>
|
|
|
|
<input type="text" class="form-control" id="name" readonly [ngModel]="schema.name" [ngModelOptions]="standalone">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="label">{{ 'common.label' | sqxTranslate }}</label>
|
|
|
|
<sqx-control-errors for="label"></sqx-control-errors>
|
|
|
|
<input type="text" class="form-control" id="label" formControlName="label">
|
|
|
|
<sqx-form-hint>{{ 'schemas.schemaLabelHint' | sqxTranslate }}</sqx-form-hint>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="hints">{{ 'common.hints' | sqxTranslate }}</label>
|
|
|
|
<sqx-control-errors for="hints"></sqx-control-errors>
|
|
|
|
<textarea type="text" class="form-control" id="hints" formControlName="hints" rows="4"></textarea>
|
|
|
|
<sqx-form-hint>{{ 'schemas.schemaHintsHint' | sqxTranslate }}</sqx-form-hint>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="hints">{{ 'schemas.contentsSidebarUrl' | sqxTranslate }}</label>
|
|
|
|
<sqx-control-errors for="contentsSidebarUrl"></sqx-control-errors>
|
|
|
|
<input type="url" class="form-control" id="contentsSidebarUrl" formControlName="contentsSidebarUrl">
|
|
|
|
<sqx-form-hint>{{ 'schemas.contentsSidebarUrlHint' | sqxTranslate }}</sqx-form-hint>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="hints">{{ 'schemas.contentSidebarUrl' | sqxTranslate }}</label>
|
|
|
|
<sqx-control-errors for="contentSidebarUrl"></sqx-control-errors>
|
|
|
|
<input type="url" class="form-control" id="contentSidebarUrl" formControlName="contentSidebarUrl">
|
|
|
|
<sqx-form-hint>{{ 'schemas.contentSidebarUrlHint' | sqxTranslate }}</sqx-form-hint>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="tags">{{ 'common.tags' | sqxTranslate }}</label>
|
|
|
|
<sqx-control-errors for="tags"></sqx-control-errors>
|
|
|
|
<sqx-tag-editor id="tags" formControlName="tags"></sqx-tag-editor>
|
|
|
|
<sqx-form-hint>{{ 'schemas.schemaTagsHint' | sqxTranslate }}</sqx-form-hint>
|
|
</div>
|
|
</div>
|
|
<div class="card-footer">
|
|
<button type="submit" class="float-right btn btn-primary" *ngIf="isEditable">
|
|
{{ 'common.save' | sqxTranslate }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|