diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html
index 86135e42d..1d7761abf 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html
@@ -21,6 +21,14 @@
+
+
+
+ {{ (formButton.form_name.length>15)? (formButton.form_name | slice:0:15)+'..':(formButton.form_name) }}
+
+
+
+
@@ -49,12 +57,14 @@
+
No Records Found..
+
@@ -359,7 +369,32 @@
+
+
+
+
+
+
+
+ supplier
+
+
+
+
+
+ client
+
+
+
+
+
+ Personal
+
+
+
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts
index 083464bb4..1bedab318 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts
@@ -29,6 +29,28 @@ selectedQuestionIndex:number;
getQuestionsLength:number;
answerList:any=[];
ansPDList:any=[];
+
+// category static form buttons
+categoryFormButtons : any=[
+{
+ "form_id":1,
+ "form_name":"Supplier Details"
+},
+{
+ "form_id":2,
+ "form_name":"Client Details",
+},
+{
+ "form_id":3,
+ "form_name":"Personal Details",
+},
+
+];
+
+formsCategoryEnable:boolean=false;
+selectedFormsCategory:any;
+
+
// create values for status check
pdStatusCheck :any={
"DRAFT" :'DRAFT',
@@ -106,6 +128,7 @@ loadTemplates(startID:string){
}
OnSelectDirectQuestions(selectedQuestions: any, categoryIndex:number,questionsIndex:number){
+ this.formsCategoryEnable=false;
this.selectedCategory=selectedQuestions;
this.selectedCategoryIndex=categoryIndex;
this.selectedQuestionIndex=questionsIndex;
@@ -425,6 +448,14 @@ optionsMapItems(items) {
});
}
+ // direct form based questions
+ OnSelectDirectForms(details:any){
+ this.formsCategoryEnable = true;
+ this.selectedFormsCategory = details;
+
+ }
+
+
// load pd view component
loadPdViewCompoent(){
this.router.navigate([ '../../viewpd',this.startPD], { relativeTo: this.route });