-
-
-
-
-
-
-
-
-
-
-
-
1" (click)="removeLanguage(i)">
-
-
+
+
-
-<<<<<<< HEAD
- Active/InActive
-=======
- Active/InActive
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
-
-
-
-
-<<<<<<< HEAD
-
-=======
-
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+ Active/InActive
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ng6-seed/src/app/template/questions/edit/edit.component.ts b/ng6-seed/src/app/template/questions/edit/edit.component.ts
index dfd3287c1..20dd63a40 100644
--- a/ng6-seed/src/app/template/questions/edit/edit.component.ts
+++ b/ng6-seed/src/app/template/questions/edit/edit.component.ts
@@ -23,13 +23,10 @@ import {
import { MastersService } from './../../service/masters/masters.service';
import { QuestionsService } from './../../service/questions/questions.service';
-<<<<<<< HEAD
-=======
/*
* Question master details edit component
* : kdk
*/
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
@Component({
selector: 'app-edit',
templateUrl: './edit.component.html',
@@ -38,30 +35,18 @@ import { QuestionsService } from './../../service/questions/questions.service';
export class EditComponent implements OnInit {
-<<<<<<< HEAD
- public pageTitle : string = "Edit Question Details";
-=======
public pageTitle: string = "Edit Question Details";
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
public _addQuesFrom: FormGroup;
public submitted = false;
public categories: any = [];
public questionsOptions: any = [];
errorMessage: string;
-<<<<<<< HEAD
-
- /**
- * Notifier service
- */
- private notifier: NotifierService;
-=======
/**
* Notifier service
*/
private notifier: NotifierService;
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
constructor(
notifier: NotifierService,
@@ -70,13 +55,8 @@ export class EditComponent implements OnInit {
private masterService: MastersService,
private questionsService: QuestionsService,
@Inject(MAT_DIALOG_DATA) public data: any) {
-<<<<<<< HEAD
- this.notifier = notifier;
- }
-=======
this.notifier = notifier;
}
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
ngOnInit() {
this.loadFormData();
@@ -87,23 +67,14 @@ export class EditComponent implements OnInit {
this.addLanguage(vals['answer'], vals['question_answer_id'], vals['isactive'], null);
}
}
-<<<<<<< HEAD
-
-=======
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
// OnInit Load Category and Question Type Masters
this.getCategoryListMaster();
this.getQuestionOptionsMaster();
}
-<<<<<<< HEAD
- loadAnsData(){
- if (this.data["0"].length > 0) {
-=======
// load answer details list
loadAnsData() {
if (this.data["0"].length > 0) {
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
for (let val of this.data["0"]) {
// alert(JSON.stringify(val));
let vals = val;
@@ -112,38 +83,22 @@ export class EditComponent implements OnInit {
}
}
-<<<<<<< HEAD
- loadFormData() {
- /** Questions Form Datas*/
-=======
// load form data form the master
loadFormData() {
/** Questions Form Datas*/
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
this._addQuesFrom = this._formBuilder.group({
question_id: [this.data.question_id],
question: [this.data.question, Validators.compose([Validators.required])],
description: [this.data.description, Validators.compose([Validators.required])],
fk_question_catagory: [this.data.fk_question_catagory, Validators.compose([Validators.required])],
fk_question_answertype: [this.data.fk_question_answertype, Validators.compose([Validators.required])],
-<<<<<<< HEAD
- isactive:[this.data.isactive],
-=======
isactive: [this.data.isactive],
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
answers: this._formBuilder.array([
// this.initAnswers(null, null),
])
});
}
-<<<<<<< HEAD
- get f_ans() { return
this._addQuesFrom.get('answers'); }
-
- // convenience getter for easy access to form fields
- get f() { return this._addQuesFrom.controls; }
-
-=======
// convenience getter for easy access to form fields
get f() { return this._addQuesFrom.controls; }
@@ -151,7 +106,6 @@ export class EditComponent implements OnInit {
get f_ans() { return this._addQuesFrom.get('answers'); }
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
// Dynamic Form field creation Functionality : START ===>
initAnswers(ans, fk_id, isAct) {
isAct = isAct == null ? 1 : isAct;
@@ -178,10 +132,7 @@ export class EditComponent implements OnInit {
this.categories = data.records.filter(category => category.isactive == 1);
},
error => {
-<<<<<<< HEAD
-=======
this.notifier.notify('warning', 'No Category Records Found.!');
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
this.errorMessage = "No Category Record Found.";
}
)
@@ -192,10 +143,7 @@ export class EditComponent implements OnInit {
this.questionsOptions = data.records;
},
error => {
-<<<<<<< HEAD
-=======
this.notifier.notify('warning', 'No Answer Type Records Found.!');
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
this.errorMessage = "No Answer Type Record Found.";
}
)
@@ -224,30 +172,18 @@ export class EditComponent implements OnInit {
dataresult => {
if (dataresult.status == 200) {
console.log(dataresult);
-<<<<<<< HEAD
- this.notifier.notify( 'success', 'Your Changes Updated!' );
-=======
this.notifier.notify('success', 'Your Changes Updated.!');
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
this.dialogRef.close();
// this.notifierService('success', 'You are awesome! I mean it!');
// alert("sample alert for Saving");
}
else {
-<<<<<<< HEAD
- this.notifier.notify( 'warning', 'Something Wents Wrong Try Again !' );
- this.errorMessage = "Something Wents Wrong Try Again !";
- }
- }, error => {
- this.errorMessage = "Some Thing Wents Wrong Try Again !";
-=======
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
this.errorMessage = "Something Wents Wrong Try Again.!";
}
}, error => {
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
this.errorMessage = "Some Thing Wents Wrong Try Again.!";
->>>>>>> 3bdd446b0760f030c46f5bea12469a0a15829ebe
this.dialogRef.close();
});
//After Saving the BRANCH data then popup close
diff --git a/ng6-seed/src/app/template/questions/list/list.component.html b/ng6-seed/src/app/template/questions/list/list.component.html
index 7ca772592..d4f6ed730 100644
--- a/ng6-seed/src/app/template/questions/list/list.component.html
+++ b/ng6-seed/src/app/template/questions/list/list.component.html
@@ -1,210 +1,119 @@
-
-<<<<<<< HEAD
-
-
-
-
Questions Master
-
List of Questions
-
-
-
-
-
-
-
-
-
- {{cat.categroy_name}}
-
-
-
-
+
+
+
+
Questions Master
+
List of Questions
-
-
-
-
-
-
-
-
-
0">
-
-
-
-
-
-
-
-
- {{ product.categroy_name }}
+
+
+
+
+
+
+
-
-