]>
Commit | Line | Data |
---|---|---|
c9e3565d | 1 | <h1 class="sr-only" i18n>Configuration</h1> |
8a8e02a4 | 2 | <form role="form" [formGroup]="form"> |
fd206f0b | 3 | |
53e4e201 | 4 | <div ngbNav #nav="ngbNav" [activeId]="activeNav" (activeIdChange)="onNavChange($event)" class="nav-tabs"> |
8be1afa1 | 5 | |
45c6bcf3 C |
6 | <ng-container ngbNavItem="instance-information"> |
7 | <a ngbNavLink i18n>Instance information</a> | |
8 | ||
9 | <ng-template ngbNavContent> | |
5f46d28c C |
10 | <my-edit-instance-information [form]="form" [formErrors]="formErrors" [languageItems]="languageItems" [categoryItems]="categoryItems"> |
11 | </my-edit-instance-information> | |
ccc00cb2 | 12 | </ng-template> |
45c6bcf3 C |
13 | </ng-container> |
14 | ||
15 | <ng-container ngbNavItem="basic-configuration"> | |
16 | <a ngbNavLink i18n>Basic configuration</a> | |
63347a0f | 17 | |
45c6bcf3 | 18 | <ng-template ngbNavContent> |
5f46d28c C |
19 | <my-edit-basic-configuration [form]="form" [formErrors]="formErrors" [serverConfig]="serverConfig"> |
20 | </my-edit-basic-configuration> | |
45c6bcf3 C |
21 | </ng-template> |
22 | </ng-container> | |
8be1afa1 | 23 | |
7fd03a2c | 24 | <ng-container ngbNavItem="transcoding"> |
c9bc850e | 25 | <a ngbNavLink i18n>VOD Transcoding</a> |
63347a0f | 26 | |
45c6bcf3 | 27 | <ng-template ngbNavContent> |
5f46d28c C |
28 | <my-edit-vod-transcoding [form]="form" [formErrors]="formErrors" [serverConfig]="serverConfig"> |
29 | </my-edit-vod-transcoding> | |
7fd03a2c C |
30 | </ng-template> |
31 | </ng-container> | |
32 | ||
33 | <ng-container ngbNavItem="live"> | |
34 | <a ngbNavLink i18n>Live streaming</a> | |
35 | ||
36 | <ng-template ngbNavContent> | |
5f46d28c C |
37 | <my-edit-live-configuration [form]="form" [formErrors]="formErrors" [serverConfig]="serverConfig"> |
38 | </my-edit-live-configuration> | |
7fd03a2c C |
39 | </ng-template> |
40 | </ng-container> | |
41 | ||
42 | <ng-container ngbNavItem="advanced-configuration"> | |
43 | <a ngbNavLink i18n>Advanced configuration</a> | |
44 | ||
45 | <ng-template ngbNavContent> | |
5f46d28c C |
46 | <my-edit-advanced-configuration [form]="form" [formErrors]="formErrors"> |
47 | </my-edit-advanced-configuration> | |
63347a0f | 48 | </ng-template> |
45c6bcf3 C |
49 | </ng-container> |
50 | </div> | |
51 | ||
52 | <div [ngbNavOutlet]="nav"></div> | |
00b5556c | 53 | |
482fa503 RK |
54 | <div class="form-row mt-4"> <!-- submit placement block --> |
55 | <div class="col-md-7 col-xl-5"></div> | |
56 | <div class="col-md-5 col-xl-5"> | |
4e55c132 | 57 | |
45ba09fe C |
58 | <div class="form-error submit-error" i18n *ngIf="!form.valid"> |
59 | There are errors in the form: | |
60 | ||
61 | <ul> | |
62 | <li *ngFor="let error of grabAllErrors()"> | |
63 | {{ error }} | |
64 | </li> | |
65 | </ul> | |
66 | </div> | |
fb719404 C |
67 | |
68 | <span class="form-error submit-error" i18n *ngIf="!hasLiveAllowReplayConsistentOptions()"> | |
69 | You cannot allow live replay if you don't enable transcoding. | |
70 | </span> | |
72c33e71 | 71 | |
fb719404 | 72 | <input (click)="formValidated()" type="submit" i18n-value value="Update configuration" [disabled]="!form.valid || !hasConsistentOptions()"> |
482fa503 RK |
73 | </div> |
74 | </div> | |
fd206f0b | 75 | </form> |