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.
49 lines
1.9 KiB
49 lines
1.9 KiB
<sqx-title message="Schemas"></sqx-title>
|
|
|
|
<sqx-panel theme="dark" desiredWidth="30rem" showSecondHeader="true">
|
|
<ng-container title>
|
|
Schemas
|
|
</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="New Schema (CTRL + SHIFT + G)"
|
|
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="Search for schemas..." />
|
|
|
|
<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="Create new category..." />
|
|
</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>
|