mirror of https://github.com/Chocobozzz/PeerTube
Fix plugin checkbox placement
parent
3c47fa3bc0
commit
023edc8a54
|
@ -1,5 +1,12 @@
|
||||||
<div [formGroup]="form">
|
<div [formGroup]="form">
|
||||||
<label *ngIf="setting.label" [attr.for]="setting.name" [innerHTML]="setting.label"></label>
|
<label *ngIf="setting.label && setting.type !== 'input-checkbox'" [attr.for]="setting.name" [innerHTML]="setting.label"></label>
|
||||||
|
|
||||||
|
<my-peertube-checkbox
|
||||||
|
*ngIf="setting.type === 'input-checkbox'"
|
||||||
|
[inputName]="setting.name"
|
||||||
|
[formControlName]="setting.name"
|
||||||
|
[labelInnerHTML]="setting.label"
|
||||||
|
></my-peertube-checkbox>
|
||||||
|
|
||||||
<div *ngIf="setting.descriptionHTML" class="label-small-info" [innerHTML]="setting.descriptionHTML"></div>
|
<div *ngIf="setting.descriptionHTML" class="label-small-info" [innerHTML]="setting.descriptionHTML"></div>
|
||||||
|
|
||||||
|
@ -31,13 +38,6 @@
|
||||||
[classes]="{ 'input-error': formErrors['settings.name'] }"
|
[classes]="{ 'input-error': formErrors['settings.name'] }"
|
||||||
></my-markdown-textarea>
|
></my-markdown-textarea>
|
||||||
|
|
||||||
<my-peertube-checkbox
|
|
||||||
*ngIf="setting.type === 'input-checkbox'"
|
|
||||||
[inputName]="setting.name"
|
|
||||||
[formControlName]="setting.name"
|
|
||||||
[labelInnerHTML]="setting.label"
|
|
||||||
></my-peertube-checkbox>
|
|
||||||
|
|
||||||
<div *ngIf="setting.type === 'html'" [innerHTML]="setting.html"></div>
|
<div *ngIf="setting.type === 'html'" [innerHTML]="setting.html"></div>
|
||||||
|
|
||||||
<div *ngIf="formErrors[setting.name]" class="form-error">
|
<div *ngIf="formErrors[setting.name]" class="form-error">
|
||||||
|
|
|
@ -22,3 +22,7 @@ textarea {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my-peertube-checkbox + .label-small-info {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue