diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-10 09:05:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-10 11:36:40 +0100 |
commit | 21e493d4d8acb7a650eff3a30cd7e086b3cb8a28 (patch) | |
tree | f3a451d6a59925907c62b0c36db99745a43b67db /client/src/app/+admin/users/user-edit/user-edit.component.html | |
parent | ead64cdf8d917fa0d6a20271e42378f38e5f2407 (diff) | |
download | PeerTube-21e493d4d8acb7a650eff3a30cd7e086b3cb8a28.tar.gz PeerTube-21e493d4d8acb7a650eff3a30cd7e086b3cb8a28.tar.zst PeerTube-21e493d4d8acb7a650eff3a30cd7e086b3cb8a28.zip |
Add ability to set a custom quota
Diffstat (limited to 'client/src/app/+admin/users/user-edit/user-edit.component.html')
-rw-r--r-- | client/src/app/+admin/users/user-edit/user-edit.component.html | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/client/src/app/+admin/users/user-edit/user-edit.component.html b/client/src/app/+admin/users/user-edit/user-edit.component.html index fb34d6b22..243c6556a 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/users/user-edit/user-edit.component.html | |||
@@ -149,28 +149,38 @@ | |||
149 | 149 | ||
150 | <div class="form-group"> | 150 | <div class="form-group"> |
151 | <label i18n for="videoQuota">Video quota</label> | 151 | <label i18n for="videoQuota">Video quota</label> |
152 | <div class="peertube-select-container"> | 152 | |
153 | <select id="videoQuota" formControlName="videoQuota" class="form-control"> | 153 | <my-select-custom-value |
154 | <option *ngFor="let videoQuotaOption of videoQuotaOptions" [value]="videoQuotaOption.value" [disabled]="videoQuotaOption.disabled"> | 154 | id="videoQuota" |
155 | {{ videoQuotaOption.label }} | 155 | [items]="videoQuotaOptions" |
156 | </option> | 156 | formControlName="videoQuota" |
157 | </select> | 157 | i18n-inputSuffix inputSuffix="bytes" inputType="number" |
158 | </div> | 158 | [clearable]="false" |
159 | ></my-select-custom-value> | ||
159 | 160 | ||
160 | <div i18n class="transcoding-information" *ngIf="isTranscodingInformationDisplayed()"> | 161 | <div i18n class="transcoding-information" *ngIf="isTranscodingInformationDisplayed()"> |
161 | Transcoding is enabled. The video quota only takes into account <strong>original</strong> video size. <br /> | 162 | Transcoding is enabled. The video quota only takes into account <strong>original</strong> video size. <br /> |
162 | At most, this user could upload ~ {{ computeQuotaWithTranscoding() | bytes: 0 }}. | 163 | At most, this user could upload ~ {{ computeQuotaWithTranscoding() | bytes: 0 }}. |
163 | </div> | 164 | </div> |
165 | |||
166 | <div *ngIf="formErrors.videoQuota" class="form-error"> | ||
167 | {{ formErrors.videoQuota }} | ||
168 | </div> | ||
164 | </div> | 169 | </div> |
165 | 170 | ||
166 | <div class="form-group"> | 171 | <div class="form-group"> |
167 | <label i18n for="videoQuotaDaily">Daily video quota</label> | 172 | <label i18n for="videoQuotaDaily">Daily video quota</label> |
168 | <div class="peertube-select-container"> | 173 | |
169 | <select id="videoQuotaDaily" formControlName="videoQuotaDaily" class="form-control"> | 174 | <my-select-custom-value |
170 | <option *ngFor="let videoQuotaDailyOption of videoQuotaDailyOptions" [value]="videoQuotaDailyOption.value" [disabled]="videoQuotaDailyOption.disabled"> | 175 | id="videoQuotaDaily" |
171 | {{ videoQuotaDailyOption.label }} | 176 | [items]="videoQuotaDailyOptions" |
172 | </option> | 177 | formControlName="videoQuotaDaily" |
173 | </select> | 178 | i18n-inputSuffix inputSuffix="bytes" inputType="number" |
179 | [clearable]="false" | ||
180 | ></my-select-custom-value> | ||
181 | |||
182 | <div *ngIf="formErrors.videoQuotaDaily" class="form-error"> | ||
183 | {{ formErrors.videoQuotaDaily }} | ||
174 | </div> | 184 | </div> |
175 | </div> | 185 | </div> |
176 | 186 | ||