aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-forms/peertube-checkbox.component.html
blob: c679e1403ed1a98c2b068cc5ba50c4b085e16666 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                         
                                                                                                                 




                                                    
 













                                                                       

                                                                       
        
 
                                       
                                      






                                                    
      
<div class="root flex-column">
  <div class="d-flex">
    <label class="form-group-checkbox">
      <input
        type="checkbox"
        [(ngModel)]="checked"
        (ngModelChange)="onModelChange()"
        [id]="inputName"
        [disabled]="disabled"
      />
      <span role="checkbox" [attr.aria-checked]="checked" [attr.aria-label]="labelText || labelInnerHTML"></span>
      <span *ngIf="labelText">{{ labelText }}</span>
      <span
        *ngIf="!labelText && labelInnerHTML"
        [innerHTML]="labelInnerHTML"
      ></span>

      <span *ngIf="labelTemplate">
        <ng-container *ngTemplateOutlet="labelTemplate"></ng-container>
      </span>
    </label>

    <my-help
      *ngIf="helpTemplate"
      [tooltipPlacement]="helpPlacement"
      helpType="custom"
    >
      <ng-template ptTemplate="customHtml">
        <ng-template *ngTemplateOutlet="helpTemplate"></ng-template>
      </ng-template>
    </my-help>

    <div *ngIf="recommended" class="recommended" i18n>Recommended</div>
  </div>

  <div class="ml-4 d-flex flex-column">
    <small class="wrapper mt-2 muted">
      <ng-content select="description"></ng-content>
    </small>

    <span class="wrapper mt-3">
      <ng-content select="extra"></ng-content>
    </span>
  </div>
</div>