Headless CMS and Content Managment Hub
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

<sqx-title message="i18n:common.schemas"></sqx-title>
<sqx-panel theme="dark" desiredWidth="30rem" showSecondHeader="true">
<ng-container title>
{{ 'common.schemas' | sqxTranslate }}
</ng-container>
<ng-container secondHeader>
<sqx-shortcut keys="ctrl+shift+f" (trigger)="inputFind.focus()"></sqx-shortcut>
<ng-container *ngIf="schemasState.canCreate | async">
<sqx-shortcut keys="ctrl+shift+g" (trigger)="addSchemaDialog.show()"></sqx-shortcut>
<button type="button" class="btn btn-success subheader-button" (click)="createSchema()" title="i18n:schemas.createSchemaTooltip" titlePosition="top-left">
<i class="icon-plus"></i>
</button>
</ng-container>
<div class="search-form">
<input class="form-control form-control-dark" #inputFind [formControl]="schemasFilter" placeholder="{{ 'schemas.searchPlaceholder' | sqxTranslate }}">
<i class="icon-search"></i>
</div>
</ng-container>
<ng-container content>
<div cdkDropListGroup>
<sqx-schema-category *ngFor="let category of schemasState.categories | async; trackBy: trackByCategory"
[schemaCategory]="category"
[schemasFilter]="schemasFilter.valueChanges | async"
(remove)="removeCategory(category.name)">
</sqx-schema-category>
</div>
<form [formGroup]="addCategoryForm.form" (ngSubmit)="addCategory()">
<input class="form-control form-control-dark new-category-input" formControlName="name" placeholder="{{ 'schemas.createCategory' | sqxTranslate }}">
</form>
</ng-container>
</sqx-panel>
<ng-container *sqxModal="addSchemaDialog">
<sqx-schema-form [import]="import" (cancel)="addSchemaDialog.hide()" (complete)="redirectSchema($event)">
</sqx-schema-form>
</ng-container>
<router-outlet></router-outlet>