1 <div i18n
class=
"form-sub-title" *
ngIf=
"isCreation() === true">Create user
</div>
2 <div i18n
class=
"form-sub-title" *
ngIf=
"isCreation() === false">Edit user {{ username }}
</div>
4 <div *
ngIf=
"error" class=
"alert alert-danger">{{ error }}
</div>
6 <form role=
"form" (ngSubmit)=
"formValidated()" [formGroup]=
"form">
7 <div class=
"form-group" *
ngIf=
"isCreation()">
8 <label i18n
for=
"username">Username
</label>
10 type=
"text" id=
"username" i18n-placeholder
placeholder=
"john"
11 formControlName=
"username" [ngClass]=
"{ 'input-error': formErrors['username'] }"
13 <div *
ngIf=
"formErrors.username" class=
"form-error">
14 {{ formErrors.username }}
18 <div class=
"form-group">
19 <label i18n
for=
"email">Email
</label>
21 type=
"text" id=
"email" i18n-placeholder
placeholder=
"mail@example.com"
22 formControlName=
"email" [ngClass]=
"{ 'input-error': formErrors['email'] }"
25 <div *
ngIf=
"formErrors.email" class=
"form-error">
26 {{ formErrors.email }}
30 <div class=
"form-group" *
ngIf=
"isCreation()">
31 <label i18n
for=
"password">Password
</label>
33 type=
"password" id=
"password"
34 formControlName=
"password" [ngClass]=
"{ 'input-error': formErrors['password'] }"
36 <div *
ngIf=
"formErrors.password" class=
"form-error">
37 {{ formErrors.password }}
41 <div class=
"form-group">
42 <label i18n
for=
"role">Role
</label>
43 <div class=
"peertube-select-container">
44 <select id=
"role" formControlName=
"role">
45 <option *
ngFor=
"let role of getRoles()" [value]=
"role.value">
51 <div *
ngIf=
"formErrors.role" class=
"form-error">
56 <div class=
"form-group">
57 <label i18n
for=
"videoQuota">Video quota
</label>
58 <div class=
"peertube-select-container">
59 <select id=
"videoQuota" formControlName=
"videoQuota">
60 <option *
ngFor=
"let videoQuotaOption of videoQuotaOptions" [value]=
"videoQuotaOption.value">
61 {{ videoQuotaOption.label }}
66 <div i18n
class=
"transcoding-information" *
ngIf=
"isTranscodingInformationDisplayed()">
67 Transcoding is enabled on server. The video quota only take in account
<strong>original
</strong> video.
<br />
68 At most, this user could use ~ {{ computeQuotaWithTranscoding() | bytes:
0 }}.
72 <div class=
"form-group">
73 <label i18n
for=
"videoQuotaDaily">Daily video quota
</label>
74 <div class=
"peertube-select-container">
75 <select id=
"videoQuotaDaily" formControlName=
"videoQuotaDaily">
76 <option *
ngFor=
"let videoQuotaDailyOption of videoQuotaDailyOptions" [value]=
"videoQuotaDailyOption.value">
77 {{ videoQuotaDailyOption.label }}
83 <div class=
"form-group">
85 inputName=
"byPassAutoBlacklist" formControlName=
"byPassAutoBlacklist"
86 i18n-labelText
labelText=
"Bypass video auto blacklist"
87 ></my-peertube-checkbox>
90 <input type=
"submit" value=
"{{ getFormButtonTitle() }}" [disabled]=
"!form.valid">
93 <div *
ngIf=
"!isCreation()" class=
"danger-zone">
94 <div class=
"account-title" i18n
>Danger Zone
</div>
96 <div class=
"form-group reset-password-email">
97 <label i18n
>Send a link to reset the password by email to the user
</label>
98 <button (click)=
"resetPassword()" i18n
>Ask for new password
</button>
101 <div class=
"form-group">
102 <label i18n
>Manually set the user password
</label>
103 <my-user-password [userId]=
"userId"></my-user-password>