]>
Commit | Line | Data |
---|---|---|
1 | <div *ngIf="!hasImportedVideo" class="upload-video-container"> | |
2 | <div class="import-video"> | |
3 | <div class="icon icon-upload"></div> | |
4 | ||
5 | <div class="form-group"> | |
6 | <label i18n for="targetUrl">URL</label> | |
7 | <input type="text" id="targetUrl" [(ngModel)]="targetUrl" /> | |
8 | </div> | |
9 | ||
10 | <div class="form-group"> | |
11 | <label i18n for="first-step-channel">Channel</label> | |
12 | <div class="peertube-select-container"> | |
13 | <select id="first-step-channel" [(ngModel)]="firstStepChannelId"> | |
14 | <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> | |
15 | </select> | |
16 | </div> | |
17 | </div> | |
18 | ||
19 | <div class="form-group"> | |
20 | <label i18n for="first-step-privacy">Privacy</label> | |
21 | <div class="peertube-select-container"> | |
22 | <select id="first-step-privacy" [(ngModel)]="firstStepPrivacyId"> | |
23 | <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option> | |
24 | </select> | |
25 | </div> | |
26 | </div> | |
27 | ||
28 | <input | |
29 | type="button" i18n-value value="Import" | |
30 | [disabled]="!isTargetUrlValid() || isImportingVideo" (click)="importVideo()" | |
31 | /> | |
32 | </div> | |
33 | </div> | |
34 | ||
35 | <div *ngIf="hasImportedVideo" class="alert alert-info" i18n> | |
36 | Congratulations, the video behind {{ targetUrl }} will be imported! You can already add information about this video. | |
37 | </div> | |
38 | ||
39 | <!-- Hidden because we want to load the component --> | |
40 | <form [hidden]="!hasImportedVideo" novalidate [formGroup]="form"> | |
41 | <my-video-edit | |
42 | [form]="form" [formErrors]="formErrors" [videoCaptions]="videoCaptions" [schedulePublicationPossible]="false" | |
43 | [validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies" [userVideoChannels]="userVideoChannels" | |
44 | ></my-video-edit> | |
45 | ||
46 | <div class="submit-container"> | |
47 | <div class="submit-button" | |
48 | (click)="updateSecondStep()" | |
49 | [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true }" | |
50 | > | |
51 | <span class="icon icon-validate"></span> | |
52 | <input type="button" i18n-value value="Update" /> | |
53 | </div> | |
54 | </div> | |
55 | </form> |