diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2019-11-25 11:19:45 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@framasoft.org> | 2019-11-25 11:19:45 +0100 |
commit | 2dbbf86086bd6bc29343e6c4fbd0d664ec877ac7 (patch) | |
tree | 1a495031f008565b6fa5e13a5676841b0fc3b8c9 /client/src/app/shared | |
parent | f92bb405d48af737636fec1025e19f27d7044158 (diff) | |
download | PeerTube-2dbbf86086bd6bc29343e6c4fbd0d664ec877ac7.tar.gz PeerTube-2dbbf86086bd6bc29343e6c4fbd0d664ec877ac7.tar.zst PeerTube-2dbbf86086bd6bc29343e6c4fbd0d664ec877ac7.zip |
(plugins) adding checkbox and textarea as possible input types, add links in form label
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/forms/peertube-checkbox.component.html | 1 | ||||
-rw-r--r-- | client/src/app/shared/forms/peertube-checkbox.component.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/peertube-checkbox.component.html b/client/src/app/shared/forms/peertube-checkbox.component.html index f1e3bf0bf..1c0114d97 100644 --- a/client/src/app/shared/forms/peertube-checkbox.component.html +++ b/client/src/app/shared/forms/peertube-checkbox.component.html | |||
@@ -3,6 +3,7 @@ | |||
3 | <input type="checkbox" [(ngModel)]="checked" (ngModelChange)="onModelChange()" [id]="inputName" [disabled]="disabled" /> | 3 | <input type="checkbox" [(ngModel)]="checked" (ngModelChange)="onModelChange()" [id]="inputName" [disabled]="disabled" /> |
4 | <span role="checkbox" [attr.aria-checked]="checked"></span> | 4 | <span role="checkbox" [attr.aria-checked]="checked"></span> |
5 | <span *ngIf="labelText">{{ labelText }}</span> | 5 | <span *ngIf="labelText">{{ labelText }}</span> |
6 | <span *ngIf="!labelText && labelInnerHTML" [innerHTML]="labelInnerHTML"></span> | ||
6 | 7 | ||
7 | <span *ngIf="labelTemplate"> | 8 | <span *ngIf="labelTemplate"> |
8 | <ng-container *ngTemplateOutlet="labelTemplate"></ng-container> | 9 | <ng-container *ngTemplateOutlet="labelTemplate"></ng-container> |
diff --git a/client/src/app/shared/forms/peertube-checkbox.component.ts b/client/src/app/shared/forms/peertube-checkbox.component.ts index 3b8f39ed0..0303b7e2a 100644 --- a/client/src/app/shared/forms/peertube-checkbox.component.ts +++ b/client/src/app/shared/forms/peertube-checkbox.component.ts | |||
@@ -18,6 +18,7 @@ export class PeertubeCheckboxComponent implements ControlValueAccessor, AfterCon | |||
18 | @Input() checked = false | 18 | @Input() checked = false |
19 | @Input() inputName: string | 19 | @Input() inputName: string |
20 | @Input() labelText: string | 20 | @Input() labelText: string |
21 | @Input() labelInnerHTML: string | ||
21 | @Input() helpPlacement = 'top' | 22 | @Input() helpPlacement = 'top' |
22 | @Input() disabled = false | 23 | @Input() disabled = false |
23 | 24 | ||