aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-add.component.html
blob: e14e23aeded894f6ffec55a68e2e2e11db278aff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<div class="margin-content">
  <div class="title-page title-page-single">
    <ng-container *ngIf="secondStepType === 'import-url' || secondStepType === 'import-torrent'" i18n>Import {{ videoName }}</ng-container>
    <ng-container *ngIf="secondStepType === 'upload'" i18n>Upload {{ videoName }}</ng-container>
  </div>

  <ngb-tabset class="video-add-tabset root-tabset bootstrap" [ngClass]="{ 'hide-nav': secondStepType !== undefined }">

    <ngb-tab i18n-title title="">
      <ng-template ngbTabTitle><span i18n>Upload a file</span></ng-template>
      <ng-template ngbTabContent>
        <my-video-upload #videoUpload (firstStepDone)="onFirstStepDone('upload', $event)"></my-video-upload>
      </ng-template>
    </ngb-tab>

    <ngb-tab *ngIf="isVideoImportHttpEnabled()">
      <ng-template ngbTabTitle><span i18n>Import with URL</span></ng-template>
      <ng-template ngbTabContent>
        <my-video-import-url #videoImportUrl (firstStepDone)="onFirstStepDone('import-url', $event)"></my-video-import-url>
      </ng-template>
    </ngb-tab>

    <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>
</div>