Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Multilingual Unit): Authoring and Student #1617

Merged
merged 101 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
c0cf3d1
feat(Student,Preview): Switch between unit languages (#1520)
hirokiterashima Nov 29, 2023
bc3b915
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Nov 30, 2023
63f86ee
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Dec 1, 2023
6eaebf0
feat(Edit Project Info): Multiple languages setting (#1546)
hirokiterashima Dec 5, 2023
30e982c
Multiple languages: Change i18nId string to i18n object (#1548)
hirokiterashima Dec 5, 2023
7cf8022
Update unit tests to reflect new i18n content structure changes
hirokiterashima Dec 5, 2023
8b22cc2
feat(Multiple Languages): Show ProjectLanguageChooser in AT (#1550)
hirokiterashima Dec 12, 2023
88ea8c7
feat(Multiple Languages): TranslatableInputComponent (#1578)
hirokiterashima Jan 22, 2024
78bfd2d
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Jan 22, 2024
6ae830e
Fix issue where switching between projects in the Authoring Tool keep…
hirokiterashima Jan 22, 2024
50ee413
Fix broken test from previous merge
hirokiterashima Jan 23, 2024
0ad71fd
feat(Multiple Languages): Show default language text hint below the t…
hirokiterashima Jan 23, 2024
4202c0a
feat(Multiple Languages): Convert EditComponentPrompt input to Transl…
hirokiterashima Jan 24, 2024
3582b7f
feat(Multiple Languages): Convert language chooser to menu (#1587)
breity Jan 24, 2024
55b7d39
Fix unit tests that broke when EditComponentPrompt was changed to use
hirokiterashima Jan 25, 2024
eafbb37
feat(ProjectLanguageChooser): make button tooltip into an input (#1589)
hirokiterashima Jan 25, 2024
89b5cd9
feat(Multiple Languages): Show current language in TranslatableInput'…
hirokiterashima Jan 25, 2024
dd2d26e
feat(TranslatableInput): Move default language text to hint (#1590)
breity Jan 25, 2024
1cca4ad
refactor(Comonent testing): Put TranslatableInputComponent into Autho…
hirokiterashima Jan 29, 2024
d0ddf1c
feat(Multiple languages): Save changes to existing translations (#1602)
hirokiterashima Jan 30, 2024
8ce4ce2
refactor(TransltationInput): Use two inputs instead of content projec…
hirokiterashima Feb 7, 2024
624ce35
Organize imports in component authoring spec files to import from
hirokiterashima Feb 12, 2024
0a40741
feat(Authoring Tool): Add TranslatableTextareaComponent (#1627)
hirokiterashima Feb 14, 2024
10b6e64
Extract common code to AbstractTranslatableFieldComponent
hirokiterashima Feb 14, 2024
42b617c
feat(Multiple Languages): Add new translations (#1632)
hirokiterashima Feb 15, 2024
2e69f0d
Refactor AbstractTranslatableFieldComponent: defaultLanguageText now …
hirokiterashima Feb 26, 2024
1b0782b
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Feb 26, 2024
66e7d03
feat(Multilingual Unit): Translate HTML component (#1663)
hirokiterashima Mar 1, 2024
8dfd56e
feat(Multiple Languages): Disable default language editor (#1670)
hirokiterashima Mar 5, 2024
117df07
Remove unnecessary check for showTranslationInput when computing tran…
hirokiterashima Mar 6, 2024
91a69c3
Fix issue where saving HTML using RTE was causing editor to flicker a…
hirokiterashima Mar 7, 2024
a143570
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Mar 8, 2024
0313c2d
feat(Translation): Convert table item inputs to translatable (#1681)
geoffreykwan Mar 12, 2024
3b9bca6
feat(Translation): Make animation authoring inputs translatable (#1683)
breity Mar 12, 2024
bf67d51
feat(Translation): Make concept map authoring inputs translatable (#…
breity Mar 12, 2024
b40ab99
feat(Translation): Make embedded component authoring inputs translata…
breity Mar 12, 2024
0b60bf4
refactor(Multiple Languages): Change TranslationText from signal<stri…
hirokiterashima Mar 15, 2024
67513d0
test(Translation): Fix broken multiple choice authoring test
geoffreykwan Mar 18, 2024
35d281c
Fix issue where default language text changes weren't updating when s…
hirokiterashima Mar 18, 2024
f282159
Move class variable initializations out of constructor and into decla…
hirokiterashima Mar 18, 2024
79908ac
refactor(Multiple Languages): Extract ProjectTranslationService (#1702)
hirokiterashima Mar 19, 2024
4a714f9
Rename service classes to [Student,Teacher]ProjectTranslationService
hirokiterashima Mar 19, 2024
a3f3674
Rename service spec classes to [Student,Teacher]ProjectTranslationSer…
hirokiterashima Mar 19, 2024
70d15cd
Refactor: Move broadcastProjectSaved call from component to service
hirokiterashima Mar 19, 2024
fcd443c
feat(Translation): Convert summary item inputs to translatable (#1688)
geoffreykwan Mar 19, 2024
184ae1f
feat(Translation): Convert outside url authoring inputs to translatab…
geoffreykwan Mar 19, 2024
df80638
feat(Multiple Languages): TranslatableAssetChooserComponent (#1692)
hirokiterashima Mar 20, 2024
d93e7e1
Fix tests and compile issues
hirokiterashima Mar 20, 2024
6973e73
feat(Translation): Convert open response authoring inputs to translat…
geoffreykwan Mar 21, 2024
3d68743
feat(Translation): Convert match authoring inputs to translatable (#1…
geoffreykwan Mar 21, 2024
b3bcf2b
feat(Translation): Make graph authoring inputs translatable (#1699)
breity Mar 21, 2024
9bdf16a
feat(Translation): Convert peer chat authoring inputs to translatable…
geoffreykwan Apr 3, 2024
8094119
feat(Multiple languages): Copy default language in HTML component (#1…
hirokiterashima Apr 8, 2024
4ca5fb3
feat(Translation): Convert label authoring inputs to translatable (#1…
geoffreykwan Apr 10, 2024
ddb859a
feat(Translation): Make embedded authoring inputs translatable (#1728)
hirokiterashima Apr 11, 2024
c2a96a3
feat(Translation): Convert unit info view to translatable (#1724)
geoffreykwan Apr 12, 2024
fca0bbb
feat(Translation): Convert milestone authoring view to translatable (…
geoffreykwan Apr 12, 2024
1e0c260
feat(Translation): Convert rubric authoring to translatable (#1726)
geoffreykwan Apr 12, 2024
81913d1
feat(Translation): Convert notebook authoring to translatable (#1729)
geoffreykwan Apr 16, 2024
104b3a8
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Apr 23, 2024
79fa5a1
feat(Authoring): Add translatable asset choosers (#1753)
breity Apr 25, 2024
371e84f
feat(MultipleLanguages): Delete translations when components are dele…
hirokiterashima Apr 29, 2024
6d4991d
Rename removeTranslation to deleteTranslation to be consistent with d…
hirokiterashima Apr 29, 2024
987c9a2
feat(MultipleLanguages): Delete translations when steps and lessons a…
hirokiterashima May 1, 2024
19b3b00
feat(Translation): Make source language text display more visible (#1…
breity May 6, 2024
0717f39
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima May 7, 2024
08e8eb5
feat(Translation): Support hints for translatable inputs and textarea…
breity Jun 26, 2024
77da11d
feat(Translation): Display current language in language chooser (#1850)
breity Jun 28, 2024
3d47536
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Jul 3, 2024
9b94617
feat(Multilingual Unit): Copy single component generates new translat…
hirokiterashima Jul 8, 2024
79294b2
feat(Translation): Convert step title input to translatable (#1851)
geoffreykwan Jul 8, 2024
358b9c3
feat(MultipleLanguages): Copy translations when multiple components a…
hirokiterashima Jul 11, 2024
da51d25
feat(Multilingual Unit): Copy multiple steps generates new translatio…
hirokiterashima Jul 12, 2024
6d6e252
Fix issue where switching to project view was resetting language choi…
hirokiterashima Jul 16, 2024
682285a
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Jul 17, 2024
72f4ead
Fix test I accidentally mis-merged
hirokiterashima Jul 17, 2024
af887b9
fix(Multilingual unit): Fix issue where step title was not updating i…
hirokiterashima Jul 18, 2024
bd26ca8
refactor(Multilingual unit): self-close tags, styleUrls->styleUrl
hirokiterashima Jul 18, 2024
2f39510
feat(Multilingual Unit): Show lesson/step titles in translated langua…
hirokiterashima Jul 19, 2024
593ffff
fix(Multilingual Unit): Don't fetch default language translation file…
hirokiterashima Jul 20, 2024
4a1ba3c
fix(Multilingual unit): clear current language each time a unit is re…
hirokiterashima Jul 20, 2024
4529c50
Fix issue where new translation text in one language was showing up f…
hirokiterashima Jul 21, 2024
53307a1
Fix(Multilingual Unit): HTML copy from default language feature was b…
hirokiterashima Jul 21, 2024
29666e4
fix(Multilingual Unit): Center align student language chooser in top bar
breity Jul 22, 2024
f8faf84
feat(Multilingual Unit): Disable elements while translating (#1870)
hirokiterashima Jul 26, 2024
c128573
feat(Multilingual Unit): Log selected language and load previous-sele…
hirokiterashima Jul 29, 2024
45bea79
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Jul 30, 2024
69f88c3
Fix input width issue when in original language
hirokiterashima Aug 1, 2024
9d32290
Enable/disable inputs during translation
hirokiterashima Aug 1, 2024
75eea3e
Fix issue when no translation file existed and was showing a value fo…
hirokiterashima Aug 1, 2024
f5133f0
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Aug 1, 2024
c3a5dfc
Fix node title input width
hirokiterashima Aug 1, 2024
80b1ca4
Enable/disable inputs during translation
hirokiterashima Aug 1, 2024
a98b71c
Fix issue where rubric was not appearing in translation language
hirokiterashima Aug 1, 2024
a0758ac
Disable elements in component advanced authoring dialog
hirokiterashima Aug 1, 2024
6faa9ea
Fix issue where asset chosen was not immediately displayed in the adj…
hirokiterashima Aug 2, 2024
11f080e
Clean up code and formatting in templates
hirokiterashima Aug 2, 2024
4ebf1f7
Fix issue where teacher notebook elements were editable even in trans…
hirokiterashima Aug 2, 2024
b925020
Extract common code to function
hirokiterashima Aug 2, 2024
f416c6d
Refactor code. Fix broken test
hirokiterashima Aug 3, 2024
6d2b1be
Merge branch 'develop' into issue-1513-multiple-languages-per-unit
hirokiterashima Aug 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
886 changes: 0 additions & 886 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"test-coverage": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng test wise --source-map=false --browsers ChromeHeadlessNoSandbox --watch=false --code-coverage",
"test-e2e-comment": "test-e2e assumes wise is already running.",
"test-e2e": "node ./node_modules/protractor/bin/protractor src/assets/wise5/test-e2e/conf.js",
"extract-i18n": "ng extract-i18n --output-path=src"
"extract-i18n": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng extract-i18n --output-path=src"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -224,4 +224,4 @@
]
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export abstract class EditAdvancedComponentComponent {
ngOnInit() {
this.componentContent = this.teacherProjectService.getComponent(this.nodeId, this.componentId);
this.component = new Component(this.componentContent, this.nodeId);
this.teacherProjectService.uiChanged();
}

setShowSubmitButtonValue(show: boolean = false): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,7 @@ <h2 mat-dialog-title i18n>Advanced Settings</h2>
</div>
<mat-divider></mat-divider>
<mat-dialog-actions align="end">
<button mat-button mat-dialog-close cdkFocusRegionstart i18n>Close</button>
<button class="enable-in-translation" mat-button mat-dialog-close cdkFocusRegionstart i18n>
Close
</button>
</mat-dialog-actions>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Inject, OnInit } from '@angular/core';
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { Component as WiseComponent } from '../../../assets/wise5/common/Component';

Expand All @@ -7,8 +7,6 @@ import { Component as WiseComponent } from '../../../assets/wise5/common/Compone
templateUrl: './edit-component-advanced.component.html',
styleUrls: ['./edit-component-advanced.component.scss']
})
export class EditComponentAdvancedComponent implements OnInit {
export class EditComponentAdvancedComponent {
constructor(@Inject(MAT_DIALOG_DATA) protected component: WiseComponent) {}

ngOnInit(): void {}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<mat-form-field class="prompt" appearance="fill">
<mat-label i18n>Prompt</mat-label>
<textarea
matInput
[(ngModel)]="prompt"
(ngModelChange)="promptChangedEvent.next($event)"
placeholder="Enter Prompt Here"
i18n-placeholder
cdkTextareaAutosize
>
</textarea>
</mat-form-field>
<translatable-textarea
[content]="componentContent"
key="prompt"
label="Prompt"
i18n-label
placeholder="Enter Prompt Here"
i18n-placeholder
(defaultLanguageTextChanged)="promptChangedEvent.next($event)"
class="prompt"
appearance="fill"
/>
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { ComponentContent } from '../../../assets/wise5/common/ComponentContent';

@Component({
selector: 'edit-component-prompt',
styles: ['.prompt {width: 100%; }'],
styles: ['.prompt {width: 100%; mat-form-field { width:100%} }'],
templateUrl: 'edit-component-prompt.component.html'
})
export class EditComponentPrompt {
@Input()
prompt: string;

@Output()
promptChangedEvent = new EventEmitter<string>();
@Input() componentContent: ComponentContent;
@Output() promptChangedEvent = new EventEmitter<string>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<button
mat-raised-button
color="primary"
class="topButton"
class="topButton enable-in-translation"
(click)="showRubricAuthoring = !showRubricAuthoring"
matTooltip="Edit Component Rubric"
i18n-matTooltip
Expand All @@ -12,9 +12,9 @@
<mat-icon>message</mat-icon>
</button>
</div>
<wise-authoring-tinymce-editor
<translatable-rich-text-editor
*ngIf="showRubricAuthoring"
[(model)]="rubric"
(modelChange)="rubricChanged()"
>
</wise-authoring-tinymce-editor>
[content]="componentContent"
key="rubric"
(defaultLanguageTextChanged)="rubricChanged()"
/>
Original file line number Diff line number Diff line change
@@ -1,42 +1,18 @@
import { Component, Input } from '@angular/core';
import { ConfigService } from '../../../assets/wise5/services/configService';
import { TeacherProjectService } from '../../../assets/wise5/services/teacherProjectService';
import {
insertWiseLinks,
replaceWiseLinks
} from '../../../assets/wise5/common/wise-link/wise-link';

@Component({
selector: 'edit-component-rubric',
templateUrl: 'edit-component-rubric.component.html',
styleUrls: ['edit-component-rubric.component.scss']
})
export class EditComponentRubricComponent {
@Input()
componentContent: any;
rubric: string;
showRubricAuthoring: boolean = false;
@Input() componentContent: any;
protected showRubricAuthoring: boolean = false;

constructor(
private ConfigService: ConfigService,
private ProjectService: TeacherProjectService
) {}
constructor(private projectService: TeacherProjectService) {}

ngOnInit() {
const componentContent = this.ConfigService.replaceStudentNames(
this.ProjectService.injectAssetPaths(this.componentContent)
);
if (componentContent.rubric == null) {
this.rubric = '';
} else {
this.rubric = replaceWiseLinks(componentContent.rubric);
}
}

rubricChanged(): void {
this.componentContent.rubric = this.ConfigService.removeAbsoluteAssetPaths(
insertWiseLinks(this.rubric)
);
this.ProjectService.componentChanged();
protected rubricChanged(): void {
this.projectService.componentChanged();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,14 @@ <h5 fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="4px">
(ngModelChange)="inputChanged.next($event)"
/>
</mat-form-field>
<mat-form-field class="rule-input form-field-no-hint" appearance="fill">
<mat-label i18n>Prompt</mat-label>
<textarea
matInput
[(ngModel)]="rule.prompt"
(ngModelChange)="inputChanged.next($event)"
cdkTextareaAutosize
>
</textarea>
</mat-form-field>
<translatable-textarea
[content]="rule"
key="prompt"
label="Prompt"
i18n-label
(defaultLanguageTextChanged)="inputChanged.next($event)"
class="rule-input"
/>
</div>
<div fxLayout="column" fxLayoutAlign="start center">
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,37 +28,23 @@
<edit-component-peer-grouping-tag [componentContent]="componentContent.dynamicPrompt">
</edit-component-peer-grouping-tag>
</div>
<div class="pre-prompt-div">
<mat-form-field class="prompt" appearance="fill">
<mat-label i18n>Pre Prompt (Optional)</mat-label>
<textarea
matInput
[(ngModel)]="componentContent.dynamicPrompt.prePrompt"
(ngModelChange)="dynamicPromptChangedEvent.next()"
placeholder="Enter Pre Prompt Here"
i18n-placeholder
cdkTextareaAutosize
>
</textarea>
</mat-form-field>
</div>
<translatable-textarea
[content]="componentContent.dynamicPrompt"
key="prePrompt"
label="Pre Prompt (Optional)"
i18n-label
(defaultLanguageTextChanged)="dynamicPromptChangedEvent.next()"
/>
<div class="feedback-rules-div">
<edit-dynamic-prompt-rules [feedbackRules]="componentContent.dynamicPrompt.rules">
</edit-dynamic-prompt-rules>
</div>
<div>
<mat-form-field class="prompt" appearance="fill">
<mat-label i18n>Post Prompt (Optional)</mat-label>
<textarea
matInput
[(ngModel)]="componentContent.dynamicPrompt.postPrompt"
(ngModelChange)="dynamicPromptChangedEvent.next()"
placeholder="Enter Post Prompt Here"
i18n-placeholder
cdkTextareaAutosize
>
</textarea>
</mat-form-field>
</div>
<translatable-textarea
[content]="componentContent.dynamicPrompt"
key="postPrompt"
label="Post Prompt (Optional)"
i18n-label
(defaultLanguageTextChanged)="dynamicPromptChangedEvent.next()"
/>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@import 'style/abstracts/variables';

.prompt {
width: 100%;
}

.section-container {
padding: 16px;
border: 2px solid #dddddd;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,32 +56,21 @@ <h5 fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="4px">
fxLayoutGap="8px"
>
<mat-form-field
*ngIf="version === 1"
class="rule-input form-field-no-hint question-input"
appearance="fill"
>
<mat-label *ngIf="rule.questions.length === 1" i18n>Question</mat-label>
<mat-label *ngIf="rule.questions.length > 1" i18n
>Question #{{ questionIndex + 1 }}</mat-label
>
<ng-container *ngIf="version === 2; then version2; else version1"></ng-container>
<ng-template #version2>
<textarea
matInput
[(ngModel)]="rule.questions[questionIndex].text"
(ngModelChange)="inputChanged.next($event)"
cdkTextareaAutosize
>
</textarea>
</ng-template>
<ng-template #version1>
<textarea
matInput
[(ngModel)]="rule.questions[questionIndex]"
(ngModelChange)="inputChanged.next($event)"
cdkTextareaAutosize
>
</textarea>
</ng-template>
<textarea
matInput
[(ngModel)]="rule.questions[questionIndex]"
(ngModelChange)="inputChanged.next($event)"
cdkTextareaAutosize
>
</textarea>
<button
mat-icon-button
matSuffix
Expand All @@ -94,17 +83,41 @@ <h5 fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="4px">
<mat-icon>clear</mat-icon>
</button>
</mat-form-field>
<button
*ngIf="last"
mat-icon-button
matTooltip="Add new question"
matTooltipPosition="above"
i18n-matTooltip
(click)="addNewFeedbackToRule(rule)"
i18n
>
<mat-icon>add_circle</mat-icon>
</button>
<ng-container *ngIf="version === 2">
<translatable-textarea
[content]="rule.questions[questionIndex]"
key="text"
[label]="getQuestionLabel(rule, questionIndex)"
(defaultLanguageTextChanged)="inputChanged.next($event)"
class="rule-input question-input"
/>
<div class="question-button-div" fxLayout="row" fxLayoutAlign="center start">
<button
mat-icon-button
matSuffix
*ngIf="rule.questions.length > 1"
matTooltip="Delete question"
i18n-matTooltip
matTooltipPosition="before"
(click)="deleteFeedbackInRule(rule, questionIndex)"
>
<mat-icon>clear</mat-icon>
</button>
</div>
</ng-container>
<div class="question-button-div" fxLayout="row" fxLayoutAlign="center start">
<button
*ngIf="last"
mat-icon-button
matTooltip="Add new question"
matTooltipPosition="above"
i18n-matTooltip
(click)="addNewFeedbackToRule(rule)"
i18n
>
<mat-icon>add_circle</mat-icon>
</button>
</div>
</div>
</div>
<div fxLayout="column" fxLayoutAlign="start center">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ li {
.question-input {
width: 100%;
}

.question-button-div {
height: 100%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,10 @@ export class EditQuestionBankRulesComponent extends EditFeedbackRulesComponent {
customTrackBy(index: number): number {
return index;
}

protected getQuestionLabel(rule: QuestionBankRule, questionIndex: number): string {
return rule.questions.length === 1
? $localize`Question`
: $localize`Question #${questionIndex + 1}`;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@
</div>
<div *ngIf="componentContent.questionBank?.enabled">
<div class="custom-label">
<mat-form-field appearance="fill">
<mat-label i18n>Custom Label</mat-label>
<input
matInput
[(ngModel)]="componentContent.questionBank.label"
(ngModelChange)="inputChanged.next($event)"
placeholder="Question Bank"
i18n-placeholder
/>
</mat-form-field>
<translatable-input
[content]="componentContent.questionBank"
key="label"
label="Custom Label"
i18n-label
(defaultLanguageTextChanged)="inputChanged.next($event)"
/>
</div>
<div *ngIf="componentContent.questionBank.version === 2">
<mat-checkbox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
margin-top: 16px;
}

.custom-label {
width: 280px;
}

.feedback-rules {
margin-bottom: 16px;
}
Loading
Loading