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