mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
75 lines
2.5 KiB
HTML
75 lines
2.5 KiB
HTML
<h1 class="sr-only" i18n>Configuration</h1>
|
|
<form role="form" [formGroup]="form">
|
|
|
|
<div ngbNav #nav="ngbNav" [activeId]="activeNav" (activeIdChange)="onNavChange($event)" class="nav-tabs">
|
|
|
|
<ng-container ngbNavItem="instance-information">
|
|
<a ngbNavLink i18n>Instance information</a>
|
|
|
|
<ng-template ngbNavContent>
|
|
<my-edit-instance-information [form]="form" [formErrors]="formErrors" [languageItems]="languageItems" [categoryItems]="categoryItems">
|
|
</my-edit-instance-information>
|
|
</ng-template>
|
|
</ng-container>
|
|
|
|
<ng-container ngbNavItem="basic-configuration">
|
|
<a ngbNavLink i18n>Basic configuration</a>
|
|
|
|
<ng-template ngbNavContent>
|
|
<my-edit-basic-configuration [form]="form" [formErrors]="formErrors" [serverConfig]="serverConfig">
|
|
</my-edit-basic-configuration>
|
|
</ng-template>
|
|
</ng-container>
|
|
|
|
<ng-container ngbNavItem="transcoding">
|
|
<a ngbNavLink i18n>VOD Transcoding</a>
|
|
|
|
<ng-template ngbNavContent>
|
|
<my-edit-vod-transcoding [form]="form" [formErrors]="formErrors" [serverConfig]="serverConfig">
|
|
</my-edit-vod-transcoding>
|
|
</ng-template>
|
|
</ng-container>
|
|
|
|
<ng-container ngbNavItem="live">
|
|
<a ngbNavLink i18n>Live streaming</a>
|
|
|
|
<ng-template ngbNavContent>
|
|
<my-edit-live-configuration [form]="form" [formErrors]="formErrors" [serverConfig]="serverConfig">
|
|
</my-edit-live-configuration>
|
|
</ng-template>
|
|
</ng-container>
|
|
|
|
<ng-container ngbNavItem="advanced-configuration">
|
|
<a ngbNavLink i18n>Advanced configuration</a>
|
|
|
|
<ng-template ngbNavContent>
|
|
<my-edit-advanced-configuration [form]="form" [formErrors]="formErrors">
|
|
</my-edit-advanced-configuration>
|
|
</ng-template>
|
|
</ng-container>
|
|
</div>
|
|
|
|
<div [ngbNavOutlet]="nav"></div>
|
|
|
|
<div class="form-row mt-4"> <!-- submit placement block -->
|
|
<div class="col-md-7 col-xl-5"></div>
|
|
<div class="col-md-5 col-xl-5">
|
|
|
|
<div class="form-error submit-error" i18n *ngIf="!form.valid">
|
|
There are errors in the form:
|
|
|
|
<ul>
|
|
<li *ngFor="let error of grabAllErrors()">
|
|
{{ error }}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<span class="form-error submit-error" i18n *ngIf="!hasLiveAllowReplayConsistentOptions()">
|
|
You cannot allow live replay if you don't enable transcoding.
|
|
</span>
|
|
|
|
<input (click)="formValidated()" type="submit" i18n-value value="Update configuration" [disabled]="!form.valid || !hasConsistentOptions()">
|
|
</div>
|
|
</div>
|
|
</form>
|