- <div class="form-group">
- <select [(ngModel)]="firstStepPrivacy">
- <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option>
- </select>
- </div>
-
- <div class="form-group">
- <select [(ngModel)]="firstStepChannel">
- <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option>
- </select>
- </div>
- </div>
- </div>
-
- <!-- Hidden because we need to load the component -->
- <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form">
- <my-video-edit
- [form]="form" [formErrors]="formErrors"
- [validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies"
- ></my-video-edit>
-
- <div class="submit-container">
- <div class="submit-button" [ngClass]="{ disabled: !form.valid }">
- <span class="icon icon-validate"></span>
- <input type="button" value="Publish" (click)="upload()" />
- </div>
- </div>
- </form>
+ <ngb-tab *ngIf="isVideoImportTorrentEnabled()">
+ <ng-template ngbTabTitle><span i18n>Import with torrent</span></ng-template>
+ <ng-template ngbTabContent>
+ <my-video-import-torrent #videoImportTorrent (firstStepDone)="onFirstStepDone('import-torrent', $event)"></my-video-import-torrent>
+ </ng-template>
+ </ngb-tab>
+ </ngb-tabset>