From 51db10bd8b6345eecd4bf3839d167dd27ad45aa1 Mon Sep 17 00:00:00 2001 From: annampak Date: Wed, 4 Oct 2017 16:30:38 +0300 Subject: [PATCH] Toc improvements, visibility rules --- .../fields/dynamic-form-field.component.html | 2 +- .../fields/dynamic-form-field.component.ts | 31 +++++++++++++++---- .../form/tableOfContents/toc.component.html | 30 +++++++++++++----- 3 files changed, 49 insertions(+), 14 deletions(-) diff --git a/dmp-frontend/src/app/form/fields/dynamic-form-field.component.html b/dmp-frontend/src/app/form/fields/dynamic-form-field.component.html index fd9c32563..c54268fc0 100644 --- a/dmp-frontend/src/app/form/fields/dynamic-form-field.component.html +++ b/dmp-frontend/src/app/form/fields/dynamic-form-field.component.html @@ -33,7 +33,7 @@
{{field.description}}
+ [(ngModel)]="field.value" [required]="field.required" [pattern] = "field.regex" (blur) = "toggleVisibility($event, field)">