mirror of https://github.com/Chocobozzz/PeerTube
43 lines
1.6 KiB
HTML
43 lines
1.6 KiB
HTML
<ng-template #modal>
|
|
<div class="modal-header">
|
|
<h4 i18n class="modal-title">Follow</h4>
|
|
|
|
<my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<form novalidate [formGroup]="form" (ngSubmit)="submit()">
|
|
<div class="form-group">
|
|
<label i18n for="hostsOrHandles">1 host (without "http://"), account handle or channel handle per line</label>
|
|
|
|
<textarea
|
|
[placeholder]="placeholder" formControlName="hostsOrHandles" type="text" id="hostsOrHandles" name="hostsOrHandles"
|
|
class="form-control" [ngClass]="{ 'input-error': formErrors['hostsOrHandles'] }" ngbAutofocus
|
|
></textarea>
|
|
|
|
<div *ngIf="formErrors.hostsOrHandles" class="form-error">
|
|
{{ formErrors.hostsOrHandles }}
|
|
|
|
<div *ngIf="form.controls['hostsOrHandles'].errors.validHostsOrHandles">
|
|
{{ form.controls['hostsOrHandles'].errors.validHostsOrHandles.value }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div i18n *ngIf="httpEnabled() === false" class="alert alert-warning">
|
|
It seems that you are not on a HTTPS server. Your webserver needs to have TLS activated in order to follow servers.
|
|
</div>
|
|
|
|
<div class="form-group inputs">
|
|
<input
|
|
type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
|
|
(click)="hide()" (key.enter)="hide()"
|
|
>
|
|
|
|
<input type="submit" i18n-value value="Follow" class="peertube-button orange-button" [disabled]="!form.valid" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</ng-template>
|