Extract extensions from the button

This commit is contained in:
Chocobozzz 2018-06-29 15:04:49 +02:00
parent b81eb8fdc6
commit 84455f2b94
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 12 additions and 2 deletions

View File

@ -9,9 +9,10 @@
<div class="icon icon-upload"></div> <div class="icon icon-upload"></div>
<div class="button-file"> <div class="button-file">
<span i18n>Select the file to upload (.mp4, .webm, .ogv)</span> <span i18n>Select the file to upload</span>
<input #videofileInput type="file" name="videofile" id="videofile" [accept]="videoExtensions" (change)="fileChange()" /> <input #videofileInput type="file" name="videofile" id="videofile" [accept]="videoExtensions" (change)="fileChange()" />
</div> </div>
<span class="button-file-extension">(.mp4, .webm, .ogv)</span>
<div class="form-group form-group-channel"> <div class="form-group form-group-channel">
<label i18n for="first-step-channel">Channel</label> <label i18n for="first-step-channel">Channel</label>

View File

@ -37,8 +37,17 @@
@include peertube-button-file(auto); @include peertube-button-file(auto);
min-width: 190px; min-width: 190px;
margin-bottom: 45px;
} }
.button-file-extension {
display: block;
font-size: 12px;
margin-top: 5px;
}
}
.form-group-channel {
margin-top: 35px;
} }
} }