Fix external user edition

This commit is contained in:
Chocobozzz 2020-07-06 11:03:05 +02:00
parent 9e5dd0d96e
commit 767bb14a38
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 15 additions and 11 deletions

View File

@ -89,19 +89,19 @@
{{ formErrors.username }} {{ formErrors.username }}
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label i18n for="email">Email</label> <label i18n for="email">Email</label>
<input <input
type="text" id="email" i18n-placeholder placeholder="mail@example.com" class="form-control" type="text" id="email" i18n-placeholder placeholder="mail@example.com" class="form-control"
formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }" formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }"
autocomplete="off" autocomplete="off" [readonly]="user.pluginAuth !== null"
> >
<div *ngIf="formErrors.email" class="form-error"> <div *ngIf="formErrors.email" class="form-error">
{{ formErrors.email }} {{ formErrors.email }}
</div> </div>
</div> </div>
<div class="form-group" *ngIf="isCreation()"> <div class="form-group" *ngIf="isCreation()">
<label i18n for="password">Password</label> <label i18n for="password">Password</label>
<my-help *ngIf="isPasswordOptional()"> <my-help *ngIf="isPasswordOptional()">
@ -119,7 +119,7 @@
{{ formErrors.password }} {{ formErrors.password }}
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label i18n for="role">Role</label> <label i18n for="role">Role</label>
<div class="peertube-select-container"> <div class="peertube-select-container">
@ -129,12 +129,12 @@
</option> </option>
</select> </select>
</div> </div>
<div *ngIf="formErrors.role" class="form-error"> <div *ngIf="formErrors.role" class="form-error">
{{ formErrors.role }} {{ formErrors.role }}
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label i18n for="videoQuota">Video quota</label> <label i18n for="videoQuota">Video quota</label>
<div class="peertube-select-container"> <div class="peertube-select-container">
@ -144,13 +144,13 @@
</option> </option>
</select> </select>
</div> </div>
<div i18n class="transcoding-information" *ngIf="isTranscodingInformationDisplayed()"> <div i18n class="transcoding-information" *ngIf="isTranscodingInformationDisplayed()">
Transcoding is enabled. The video quota only takes into account <strong>original</strong> video size. <br /> Transcoding is enabled. The video quota only takes into account <strong>original</strong> video size. <br />
At most, this user could upload ~ {{ computeQuotaWithTranscoding() | bytes: 0 }}. At most, this user could upload ~ {{ computeQuotaWithTranscoding() | bytes: 0 }}.
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label i18n for="videoQuotaDaily">Daily video quota</label> <label i18n for="videoQuotaDaily">Daily video quota</label>
<div class="peertube-select-container"> <div class="peertube-select-container">
@ -161,14 +161,14 @@
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<my-peertube-checkbox <my-peertube-checkbox
inputName="byPassAutoBlock" formControlName="byPassAutoBlock" inputName="byPassAutoBlock" formControlName="byPassAutoBlock"
i18n-labelText labelText="Doesn't need review before a video goes public" i18n-labelText labelText="Doesn't need review before a video goes public"
></my-peertube-checkbox> ></my-peertube-checkbox>
</div> </div>
<input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid"> <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid">
</form> </form>
@ -180,7 +180,7 @@
</div> </div>
<div *ngIf="!isCreation() && user" class="form-row mt-4"> <!-- danger zone grid --> <div *ngIf="!isCreation() && user && user.pluginAuth === null" class="form-row mt-4"> <!-- danger zone grid -->
<div class="form-group col-12 col-lg-4 col-xl-3"> <div class="form-group col-12 col-lg-4 col-xl-3">
<div class="anchor" id="danger"></div> <!-- danger zone anchor --> <div class="anchor" id="danger"></div> <!-- danger zone anchor -->
<div i18n class="account-title account-title-danger">DANGER ZONE</div> <div i18n class="account-title account-title-danger">DANGER ZONE</div>

View File

@ -107,6 +107,10 @@
color: pvar(--inputPlaceholderColor); color: pvar(--inputPlaceholderColor);
} }
&[readonly] {
opacity: 0.7;
}
@media screen and (max-width: $width) { @media screen and (max-width: $width) {
width: 100%; width: 100%;
} }