+ <div i18n class="inner-form-title">Signup</div>
+
+ <ng-container formGroupName="signup">
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="signupEnabled" formControlName="enabled"
+ i18n-labelText labelText="Signup enabled"
+ >
+ <ng-container ngProjectAs="description">
+ <span i18n>⚠️ This functionality requires a lot of attention and extra moderation.</span>
+ </ng-container>
+ <ng-container ngProjectAs="extra">
+ <my-peertube-checkbox [ngClass]="{ 'disabled-checkbox-extra': !isSignupEnabled() }"
+ inputName="signupRequiresEmailVerification" formControlName="requiresEmailVerification"
+ i18n-labelText labelText="Signup requires email verification"
+ ></my-peertube-checkbox>
+
+ <div [ngClass]="{ 'disabled-checkbox-extra': !isSignupEnabled() }" class="mt-3">
+ <label i18n for="signupLimit">Signup limit</label>
+ <input
+ type="number" min="-1" id="signupLimit"
+ formControlName="limit" [ngClass]="{ 'input-error': formErrors['signup.limit'] }"
+ >
+ <div *ngIf="formErrors.signup.limit" class="form-error">{{ formErrors.signup.limit }}</div>
+ <small *ngIf="form.value['signup']['limit'] === -1" class="text-muted">Signup won't be limited to a fixed number of users.</small>
+ </div>
+ </ng-container>
+ </my-peertube-checkbox>
+ </div>
+ </ng-container>
+
+
+ <div i18n class="inner-form-title">Users</div>
+
+ <ng-container formGroupName="user">
+ <div class="form-group">
+ <label i18n for="userVideoQuota">Default video quota per user</label>
+ <div class="peertube-select-container">
+ <select id="userVideoQuota" formControlName="videoQuota">
+ <option *ngFor="let videoQuotaOption of videoQuotaOptions" [value]="videoQuotaOption.value">
+ {{ videoQuotaOption.label }}
+ </option>
+ </select>
+ </div>
+ <div *ngIf="formErrors.user.videoQuota" class="form-error">{{ formErrors.user.videoQuota }}</div>
+ </div>
+
+ <div class="form-group">
+ <label i18n for="userVideoQuotaDaily">Default daily upload limit per user</label>
+ <div class="peertube-select-container">
+ <select id="userVideoQuotaDaily" formControlName="videoQuotaDaily">
+ <option *ngFor="let videoQuotaDailyOption of videoQuotaDailyOptions" [value]="videoQuotaDailyOption.value">
+ {{ videoQuotaDailyOption.label }}
+ </option>
+ </select>
+ </div>
+ <div *ngIf="formErrors.user.videoQuotaDaily" class="form-error">{{ formErrors.user.videoQuotaDaily }}</div>
+ </div>
+ </ng-container>
+
+
+ <div i18n class="inner-form-title">Import</div>
+
+ <ng-container formGroupName="import">
+ <ng-container formGroupName="videos">
+
+ <div class="form-group" formGroupName="http">
+ <my-peertube-checkbox
+ inputName="importVideosHttpEnabled" formControlName="enabled"
+ i18n-labelText labelText="Allow import with HTTP URL (i.e. YouTube)"
+ ></my-peertube-checkbox>
+ </div>
+
+ <div class="form-group" formGroupName="torrent">
+ <my-peertube-checkbox
+ inputName="importVideosTorrentEnabled" formControlName="enabled"
+ i18n-labelText labelText="Allow import with a torrent file or a magnet URI"
+ ></my-peertube-checkbox>
+ </div>
+
+ </ng-container>
+ </ng-container>
+
+
+ <div i18n class="inner-form-title">Auto-blacklist</div>
+
+ <ng-container formGroupName="autoBlacklist">
+ <ng-container formGroupName="videos">
+ <ng-container formGroupName="ofUsers">
+
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="autoBlacklistVideosOfUsersEnabled" formControlName="enabled"
+ i18n-labelText labelText="Blacklist new videos automatically"
+ >
+ <ng-container ngProjectAs="description">
+ <span i18n>Unless a user is marked as trusted, their videos will stay private until a moderator reviews them.</span>
+ </ng-container>
+ </my-peertube-checkbox>
+ </div>
+
+ </ng-container>
+ </ng-container>
+ </ng-container>
+
+
+ <div i18n class="inner-form-title">Instance followers</div>
+
+ <ng-container formGroupName="followers">
+ <ng-container formGroupName="instance">
+
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="followersInstanceEnabled" formControlName="enabled"
+ i18n-labelText labelText="Other instances can follow your instance"
+ ></my-peertube-checkbox>
+ </div>
+
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="followersInstanceManualApproval" formControlName="manualApproval"
+ i18n-labelText labelText="Manually approve new instance followers"
+ ></my-peertube-checkbox>
+ </div>
+ </ng-container>
+ </ng-container>
+
+ <div i18n class="inner-form-title">Instance followings</div>
+
+ <ng-container formGroupName="followings">
+ <ng-container formGroupName="instance">
+
+ <ng-container formGroupName="autoFollowBack">
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="followingsInstanceAutoFollowBackEnabled" formControlName="enabled"
+ i18n-labelText labelText="Automatically follow other instances that follow you"
+ >
+ <ng-container ngProjectAs="description">
+ <span i18n>⚠️ This functionality requires a lot of attention and extra moderation.</span>
+ </ng-container>
+ </my-peertube-checkbox>
+ </div>
+ </ng-container>
+
+ <ng-container formGroupName="autoFollowIndex">
+ <div class="form-group">
+ <my-peertube-checkbox
+ inputName="followingsInstanceAutoFollowIndexEnabled" formControlName="enabled"
+ i18n-labelText labelText="Automatically follow instances of the public index"
+ >
+ <ng-container ngProjectAs="description">
+ <span i18n>⚠️ This functionality requires a lot of attention and extra moderation.</span>
+ </ng-container>
+
+ <ng-container ngProjectAs="extra">
+ <div [ngClass]="{ 'disabled-checkbox-extra': !isAutoFollowIndexEnabled() }">
+ <label i18n for="followingsInstanceAutoFollowIndexUrl">Index URL</label>
+ <input
+ type="text" id="followingsInstanceAutoFollowIndexUrl"
+ formControlName="indexUrl" [ngClass]="{ 'input-error': formErrors['followings.instance.autoFollowIndex.indexUrl'] }"
+ >
+ <div *ngIf="formErrors.followings.instance.autoFollowIndex.indexUrl" class="form-error">{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}</div>
+ </div>
+ </ng-container>
+ </my-peertube-checkbox>
+ </div>
+
+ </ng-container>
+ </ng-container>
+ </ng-container>
+
+
+ <div i18n class="inner-form-title">Administrator</div>
+
+ <div class="form-group" formGroupName="admin">
+ <label i18n for="adminEmail">Admin email</label>