diff --git a/projects/editor/src/app/components/dialogs/wizards/input.dialog.component.ts b/projects/editor/src/app/components/dialogs/wizards/input.dialog.component.ts index 05b1aa0ccd28201db3102f884aee59c03fc2fd3a..71da65b41641e874c27996dac98d7e3ffc2ff8a8 100644 --- a/projects/editor/src/app/components/dialogs/wizards/input.dialog.component.ts +++ b/projects/editor/src/app/components/dialogs/wizards/input.dialog.component.ts @@ -5,7 +5,7 @@ import { Component } from '@angular/core'; template: ` <div mat-dialog-title>Assistent: Antwortfeld(er)</div> <div mat-dialog-content> - <h3>Text</h3> + <h3>Frage</h3> <aspect-rich-text-editor [(content)]="text" [showReducedControls]="true" [style.min-height.px]="200"></aspect-rich-text-editor> diff --git a/projects/editor/src/app/services/template.service.ts b/projects/editor/src/app/services/template.service.ts index 299101d620bed9bf2d97a9affa75b991c9477df8..d2a3c22033adf1507dadad471d88ec69a115dc01 100644 --- a/projects/editor/src/app/services/template.service.ts +++ b/projects/editor/src/app/services/template.service.ts @@ -118,8 +118,8 @@ export class TemplateService { sectionElements.push( this.createElement( 'text', - { gridRow: i + 2, gridColumn: 1 }, - { text: config.numbering !== 'bullets' ? `${numberingChars[i]})` : '•' } + { gridRow: i + 2, gridColumn: 1, marginTop: { value: 16, unit: 'px' }}, + { text: `${numberingChars[i]}` } ) ); } @@ -139,12 +139,14 @@ export class TemplateService { }, ...!config.useTextAreas ? { showSoftwareKeyboard: true, - addInputAssistanceToKeyboard: true + addInputAssistanceToKeyboard: true, + label: '' } : { showSoftwareKeyboard: true, addInputAssistanceToKeyboard: true, hasDynamicRowCount: true, - expectedCharactersCount: config.expectedCharsCount * 1.5 || 136 + expectedCharactersCount: config.expectedCharsCount * 1.5 || 136, + label: '' } } ) @@ -160,10 +162,12 @@ export class TemplateService { private static prepareNumberingChars(answerCount: number, numbering: 'latin' | 'decimal' | 'bullets' | 'none'): string[] { - const latinChars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']; + const latinChars = ['a)', 'b)', 'c)', 'd)', 'e)', 'f)', 'g)', 'h)', 'i)']; switch (numbering) { case 'latin': return latinChars.slice(0, answerCount); - case 'decimal': return Array.from(Array(answerCount).keys()).map(char => String(char + 1)); + case 'decimal': return Array.from(Array(answerCount).keys()).map(char => `${String(char + 1)})`); + case 'bullets': return Array(answerCount).fill('•'); + case 'none': return []; default: throw Error(`Unexpected numbering: ${numbering}`); } }