diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 66c870f..9285ba7 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,9 +2,15 @@ + + + + + + @@ -19,59 +25,27 @@ - + - - + + - - - - + + + + - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - + + @@ -79,31 +53,10 @@ - - - - - - - - - - - - - - - - - - - - - - - + + @@ -112,28 +65,88 @@ - + - - + + - - + + + + + + + + + + + + + + + - - + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -157,22 +170,23 @@ @@ -222,7 +236,6 @@ - @@ -408,6 +421,7 @@ + @@ -533,7 +547,8 @@ - + + 1496129612668 @@ -563,11 +578,18 @@ - - @@ -580,12 +602,12 @@ + - + - @@ -599,6 +621,7 @@ + @@ -648,6 +671,8 @@ @@ -659,7 +684,8 @@ - \ No newline at end of file diff --git a/src/app/modules/dyn-form/dyn-form.component.ts b/src/app/modules/dyn-form/dyn-form.component.ts index c5d8c5c..bb1ad17 100644 --- a/src/app/modules/dyn-form/dyn-form.component.ts +++ b/src/app/modules/dyn-form/dyn-form.component.ts @@ -45,7 +45,7 @@ export class DynFormComponent implements OnChanges { let vals = {}; let type: string = this.form.value.type; for (let question of this.questions) { - let specType = question.properties.spezialization; + let specType = question.properties.specialization; let methods = question.properties.methods; let key = question.properties.key; if (!(methods && methods.indexOf(this.type)==-1 || specType && type!=specType)) { diff --git a/src/app/modules/dyn-form/dyn-form.module.ts b/src/app/modules/dyn-form/dyn-form.module.ts index b8a928c..67fd140 100644 --- a/src/app/modules/dyn-form/dyn-form.module.ts +++ b/src/app/modules/dyn-form/dyn-form.module.ts @@ -12,6 +12,7 @@ import {TextareaInputComponent} from './inputs/textarea-input.component'; import {ValueService} from './services/value.service'; import {KeysPipe} from './types/keys.pipe'; import {TextboxInputComponent} from './inputs/textbox-input.component'; +import {CheckboxInputComponent} from './inputs/checkbox-input.component'; @NgModule({ @@ -31,6 +32,7 @@ import {TextboxInputComponent} from './inputs/textbox-input.component'; DropdownInputComponent, TextareaInputComponent, TextboxInputComponent, + CheckboxInputComponent, KeysPipe ], providers: [ diff --git a/src/app/modules/dyn-form/dyn-question.component.ts b/src/app/modules/dyn-form/dyn-question.component.ts index 03f5b70..fe648aa 100644 --- a/src/app/modules/dyn-form/dyn-question.component.ts +++ b/src/app/modules/dyn-form/dyn-question.component.ts @@ -34,6 +34,10 @@ import {FormGroup, ValidationErrors} from '@angular/forms'; [type]="question.properties.type" [constraints]="question.constraints" [placeholder]="question.properties.placeholder" (ngModelChange)="change()"> +