]>
Commit | Line | Data |
---|---|---|
1 | <form novalidate [formGroup]="form" (ngSubmit)="formValidated()"> | |
2 | <div class="form-group mb-2"> | |
3 | <input type="email" | |
4 | formControlName="text" | |
5 | class="form-control" | |
6 | (keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()" | |
7 | placeholder="jane_doe@example.com"> | |
8 | </div> | |
9 | ||
10 | <button type="submit" [disabled]="!form.valid" class="btn btn-sm btn-remote-follow" i18n> | |
11 | <span *ngIf="!interact">Remote subscribe</span> | |
12 | <span *ngIf="interact">Remote interact</span> | |
13 | </button> | |
14 | ||
15 | <my-help *ngIf="!interact && showHelp"> | |
16 | <ng-template ptTemplate="customHtml"> | |
17 | <ng-container i18n> | |
18 | You can subscribe to the channel via any ActivityPub-capable fediverse instance (PeerTube, Mastodon or Pleroma for example). | |
19 | </ng-container> | |
20 | </ng-template> | |
21 | </my-help> | |
22 | ||
23 | <my-help *ngIf="showHelp && interact"> | |
24 | <ng-template ptTemplate="customHtml"> | |
25 | <ng-container i18n> | |
26 | You can interact with this via any ActivityPub-capable fediverse instance (PeerTube, Mastodon or Pleroma for example). | |
27 | </ng-container> | |
28 | </ng-template> | |
29 | </my-help> | |
30 | </form> |