2 <div class=
"modal-header">
3 <h4 i18n
class=
"modal-title">
4 <ng-container *
ngIf=
"isAccept()">Accept {{ registration.username }} registration
</ng-container>
5 <ng-container *
ngIf=
"isReject()">Reject {{ registration.username }} registration
</ng-container>
8 <my-global-icon iconName=
"cross" aria-label=
"Close" role=
"button" (click)=
"hide()"></my-global-icon>
11 <form novalidate [formGroup]=
"form" (ngSubmit)=
"processRegistration()">
12 <div class=
"modal-body mb-3">
14 <div i18n *
ngIf=
"!registration.emailVerified" class=
"alert alert-warning">
15 Registration email has not been verified.
18 <div class=
"description">
19 <ng-container *
ngIf=
"isAccept()">
21 <strong>Accepting
</strong> <em>{{ registration.username }}
</em> registration will create the account and channel.
24 <p *
ngIf=
"isEmailEnabled()" i18n
>
25 An email will be sent to
<em>{{ registration.email }}
</em> explaining its account has been created with the moderation response you'll write below.
28 <div *
ngIf=
"!isEmailEnabled()" class=
"alert alert-warning" i18n
>
29 Emails are not enabled on this instance so PeerTube won't be able to send an email to
<em>{{ registration.email }}
</em> explaining its account has been created.
33 <ng-container *
ngIf=
"isReject()">
35 An email will be sent to
<em>{{ registration.email }}
</em> explaining its registration request has been
<strong>rejected
</strong> with the moderation response you'll write below.
38 <div *
ngIf=
"!isEmailEnabled()" class=
"alert alert-warning" i18n
>
39 Emails are not enabled on this instance so PeerTube won't be able to send an email to
<em>{{ registration.email }}
</em> explaining its registration request has been rejected.
44 <div class=
"form-group">
45 <label for=
"moderationResponse" i18n
>Send a message to the user
</label>
48 formControlName=
"moderationResponse" ngbAutofocus
name=
"moderationResponse" id=
"moderationResponse"
49 [ngClass]=
"{ 'input-error': formErrors['moderationResponse'] }" class=
"form-control"
52 <div *
ngIf=
"formErrors.moderationResponse" class=
"form-error">
53 {{ formErrors.moderationResponse }}
58 <div class=
"modal-footer inputs">
60 type=
"button" role=
"button" i18n-value
value=
"Cancel" class=
"peertube-button grey-button"
61 (click)=
"hide()" (key.enter)=
"hide()"
64 <input type=
"submit" [value]=
"getSubmitValue()" class=
"peertube-button orange-button" [disabled]=
"!form.valid">