blob: a6f2bf6f28e50146e2b8858bd7a7d6f528a63dc8 (
plain) (
tree)
|
|
<div class="margin-content">
<div class="title-page title-page-single">
Upload your video
</div>
<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
<div *ngIf="!isUploadingVideo" class="upload-video-container">
<div class="upload-video">
<div class="icon icon-upload"></div>
<div class="button-file">
<span>Select the file to upload</span>
<input #videofileInput type="file" name="videofile" id="videofile" (change)="fileChange()" />
</div>
<div class="form-group">
<select [(ngModel)]="firstStepPrivacyId">
<option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option>
</select>
</div>
<div class="form-group">
<select [(ngModel)]="firstStepChannelId">
<option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option>
</select>
</div>
</div>
</div>
<p-progressBar
*ngIf="isUploadingVideo" [value]="videoUploadPercents"
[ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }"
></p-progressBar>
<!-- 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 *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div>
<div class="submit-button" (click)="updateSecondStep()" [ngClass]="{ disabled: !form.valid || videoUploaded !== true }">
<span class="icon icon-validate"></span>
<input type="button" value="Publish" />
</div>
</div>
</form>
</div>
|