aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/forms/peertube-checkbox.component.html
blob: fb3006b5328a82eaf964f1bfb2d3144f9ed12a6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
<div class="root">
  <label class="form-group-checkbox">
    <input type="checkbox" [(ngModel)]="checked" (ngModelChange)="onModelChange()" [id]="inputName" [disabled]="isDisabled" />
    <span role="checkbox" [attr.aria-checked]="checked"></span>
    <span *ngIf="labelText">{{ labelText }}</span>
    <span *ngIf="labelHtml" [innerHTML]="labelHtml"></span>
  </label>

  <my-help *ngIf="helpHtml" tooltipPlacement="top" helpType="custom" i18n-customHtml [customHtml]="helpHtml"></my-help>
</div>