Commit 262be6b6 by rndeguzman

Merge branch 'feature-WG-307b1' of…

Merge branch 'feature-WG-307b1' of http://repo.svi.cloud/WEBGDE-Components/web-ui into feature-WG-307b1
parents 0c2f86bd 55242020
......@@ -42,7 +42,7 @@ export async function generateFields(inputSchema, containerId){
container.id = "fields";
divContainer.appendChild(container);
container.onsubmit = submitForm(event);
container.addEventListener("submit",(e) => submitForm(e));
let doctype = sessionStorage.getItem('doctype');
let section = sessionStorage.getItem('section');
......
......@@ -111,9 +111,9 @@ async function createInputForm(){
// Call Function to generate fields with given schema to provided container
displayFieldClass.generateFields();
// displayFieldClass.editHeader(element-id)
displayFieldClass.updateHeaderText(0, "asdf");
displayFieldClass.updateHeaderText(1, "asdf");
displayFieldClass.updateHeaderText(2, "asdf");
displayFieldClass.updateHeaderText(0, "User: " + sessionStorage.getItem("user_id"));
displayFieldClass.updateHeaderText(1, "Element ID: " + sessionStorage.getItem("element_id"));
displayFieldClass.updateHeaderText(2, "");
}
......
......@@ -129,9 +129,9 @@ async function createInputForm(){
// Call Function to generate fields with given schema to provided container
displayFieldClass.generateFields();
// displayFieldClass.editHeader(element-id)
displayFieldClass.updateHeaderText(0, "asdf");
displayFieldClass.updateHeaderText(1, "asdf");
displayFieldClass.updateHeaderText(2, "asdf");
displayFieldClass.updateHeaderText(0, "User: " + sessionStorage.getItem("user_id"));
displayFieldClass.updateHeaderText(1, "Element ID: " + sessionStorage.getItem("element_id"));
displayFieldClass.updateHeaderText(2, "");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment