22f1279044430f01c77ee4a46638038bfaf127e0
[oweals/peertube.git] /
1 <ng-template #modal let-close="close" let-dismiss="dismiss">
2   <div class="modal-header">
3     <h4 i18n class="modal-title">Change ownership</h4>
4
5     <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="dismiss()"></my-global-icon>
6   </div>
7
8   <div class="modal-body" [formGroup]="form">
9     <div class="form-group">
10       <label i18n for="next-ownership-username">Select the next owner</label>
11       <p-autoComplete formControlName="username" [suggestions]="usernamePropositions"
12                       (completeMethod)="search($event)" id="next-ownership-username"></p-autoComplete>
13       <div *ngIf="formErrors.username" class="form-error">
14         {{ formErrors.username }}
15       </div>
16     </div>
17   </div>
18
19   <div class="modal-footer inputs">
20     <div class="form-group inputs">
21       <span i18n class="action-button action-button-cancel" (click)="dismiss()">
22         Cancel
23       </span>
24
25       <input
26         type="submit" i18n-value value="Submit" class="action-button-submit"
27         [disabled]="!form.valid"
28         (click)="close()"
29       />
30     </div>
31   </div>
32 </ng-template>