Vmeda.Online/src/addons/mod/data/fields/textarea/component/addon-mod-data-field-textarea.html
2023-11-27 14:45:50 +01:00

13 lines
929 B
HTML

<span *ngIf="inputMode && form" [formGroup]="form">
<ion-input *ngIf="searchMode" type="text" [placeholder]="field.name" [formControlName]="'f_'+field.id" />
<span *ngIf="editMode" [core-mark-required]="field.required" class="core-mark-required"></span>
<core-rich-text-editor *ngIf="editMode" [control]="form.controls['f_'+field.id]" [placeholder]="field.name" [name]="'f_'+field.id"
[component]="component" [componentId]="componentId" [autoSave]="true" contextLevel="module" [contextInstanceId]="componentId"
[elementId]="'field_'+field.id" ngDefaultControl />
<core-input-errors *ngIf="error && editMode" [control]="form.controls['f_'+field.id]" [errorText]="error" />
</span>
<core-format-text *ngIf="displayMode && value" [text]="format(value)" [component]="component" [componentId]="componentId"
contextLevel="module" [contextInstanceId]="componentId" [courseId]="database!.course" />