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.
51 lines
2.2 KiB
51 lines
2.2 KiB
<sqx-modal-dialog (close)="emitComplete()" size="lg" [showFooter]="false">
|
|
<ng-container title>
|
|
<div class="row">
|
|
<div class="col-selector">
|
|
<select class="custom-select form-control-dark" [ngModel]="schema?.id" (ngModelChange)="selectSchema($event)">
|
|
<option *ngFor="let schema of schemas" [ngValue]="schema.id">
|
|
{{ 'contents.referencesSelectSchema' | sqxTranslate: { schema: schema.displayName } }}
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</ng-container>
|
|
|
|
<ng-container tabs>
|
|
<div class="row no-gutters">
|
|
<div class="col-auto">
|
|
<div *ngIf="schema && languages.length > 1">
|
|
<sqx-language-selector class="languages-buttons"(selectedLanguageChange)="selectLanguage($event)" [languages]="languages"></sqx-language-selector>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col text-right">
|
|
<button type="button" class="btn btn-outline-success" (click)="save()">
|
|
{{ 'common.create' | sqxTranslate }}
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-success ml-1" (click)="saveAndPublish()" *ngIf="schema?.canContentsCreateAndPublish">
|
|
{{ 'contents.referencesCreatePublish' | sqxTranslate }}
|
|
</button>
|
|
|
|
<sqx-form-error bubble="true" closeable="true" [error]="contentForm?.error | async"></sqx-form-error>
|
|
</div>
|
|
</div>
|
|
</ng-container>
|
|
|
|
<ng-container content>
|
|
<ng-container *ngIf="schema && contentForm">
|
|
<form [formGroup]="contentForm.form" (ngSubmit)="saveAndPublish()">
|
|
<sqx-content-section *ngFor="let section of contentForm.sections"
|
|
[(language)]="language"
|
|
[isCompact]="true"
|
|
[form]="contentForm"
|
|
[formContext]="contentFormContext"
|
|
[formSection]="section"
|
|
[languages]="languages"
|
|
[schema]="schema">
|
|
</sqx-content-section>
|
|
</form>
|
|
</ng-container>
|
|
</ng-container>
|
|
</sqx-modal-dialog>
|