Skip to content
Snippets Groups Projects
Commit 901e3fec authored by Emil Svevar's avatar Emil Svevar
Browse files

The members of the project should be showing now in pgsa pages, but there are...

The members of the project should be showing now in pgsa pages, but there are none added in the database
parent b594769c
No related branches found
No related tags found
4 merge requests!139The members of the project should be showing now in pgsa pages, but there are...,!134The members of the project should be showing now in pgsa pages, but there are...,!115The members of the project should be showing now in pgsa pages, but there are...,!107Added autofill from database into text boxes, but now data is taken from wrong...
...@@ -15,10 +15,11 @@ ...@@ -15,10 +15,11 @@
<div class="headerBox" style="display: flex; justify-content: space-between; align-items: center;"> <div class="headerBox" style="display: flex; justify-content: space-between; align-items: center;">
<!-- Left content --> <!-- Left content -->
<div> <div>
<h2 id="title"></h2> <h2 id="title"></h2>
<p>Projekt ledare:</p> <p>Projekt ledare:</p>
<p>Medlem:</p> <p id="pLeader"></p>
<p>Medlem:</p> <p>Medlemar:</p>
<p id="pMembers"></p>
<button>+ Lägg till medlem</button> <button>+ Lägg till medlem</button>
<button>Redigera</button> <button>Redigera</button>
</div> </div>
......
...@@ -73,6 +73,8 @@ async function loadImprovementWorkDataPageA(projectId:string) { ...@@ -73,6 +73,8 @@ async function loadImprovementWorkDataPageA(projectId:string) {
const aAreaElement = document.getElementById("aArea") as HTMLParagraphElement; const aAreaElement = document.getElementById("aArea") as HTMLParagraphElement;
aAreaElement.textContent = improvementWork.area; aAreaElement.textContent = improvementWork.area;
const pAreaElement = document.getElementById("pMembers") as HTMLParagraphElement;
pAreaElement.textContent = improvementWork.members;
try { try {
const aUnitArray = await getUnits({ unitId: improvementWork.unitId }); const aUnitArray = await getUnits({ unitId: improvementWork.unitId });
......
...@@ -16,10 +16,11 @@ ...@@ -16,10 +16,11 @@
<div class="headerBox" style="display: flex; justify-content: space-between; align-items: center;"> <div class="headerBox" style="display: flex; justify-content: space-between; align-items: center;">
<!-- Left content --> <!-- Left content -->
<div> <div>
<h2 id="title"></h2> <h2 id="title"></h2>
<p>Projekt ledare:</p> <p>Projekt ledare:</p>
<p>Medlem:</p> <p id="pLeader"></p>
<p>Medlem:</p> <p>Medlemar:</p>
<p id="pMembers"></p>
<button>+ Lägg till medlem</button> <button>+ Lägg till medlem</button>
<button>Redigera</button> <button>Redigera</button>
</div> </div>
......
...@@ -71,6 +71,8 @@ async function loadImprovementWorkDataPageG(projectId:string) { ...@@ -71,6 +71,8 @@ async function loadImprovementWorkDataPageG(projectId:string) {
const aAreaElement = document.getElementById("gArea") as HTMLParagraphElement; const aAreaElement = document.getElementById("gArea") as HTMLParagraphElement;
aAreaElement.textContent = improvementWork.area; aAreaElement.textContent = improvementWork.area;
const pAreaElement = document.getElementById("pMembers") as HTMLParagraphElement;
pAreaElement.textContent = improvementWork.members;
try { try {
const aUnitArray = await getUnits({ unitId: improvementWork.unitId }); const aUnitArray = await getUnits({ unitId: improvementWork.unitId });
......
...@@ -14,8 +14,9 @@ ...@@ -14,8 +14,9 @@
<div> <div>
<h2 id="title"></h2> <h2 id="title"></h2>
<p>Projekt ledare:</p> <p>Projekt ledare:</p>
<p>Medlem:</p> <p id="pLeader"></p>
<p>Medlem:</p> <p>Medlemar:</p>
<p id="pMembers"></p>
<button>+ Lägg till medlem</button> <button>+ Lägg till medlem</button>
<button>Redigera</button> <button>Redigera</button>
</div> </div>
......
...@@ -87,6 +87,8 @@ async function loadImprovementWorkDataPageP(projectId:string) { ...@@ -87,6 +87,8 @@ async function loadImprovementWorkDataPageP(projectId:string) {
const aAreaElement = document.getElementById("pArea") as HTMLParagraphElement; const aAreaElement = document.getElementById("pArea") as HTMLParagraphElement;
aAreaElement.textContent = improvementWork.area; aAreaElement.textContent = improvementWork.area;
const pAreaElement = document.getElementById("pMembers") as HTMLParagraphElement;
pAreaElement.textContent = improvementWork.members;
try { try {
const aUnitArray = await getUnits({ unitId: improvementWork.unitId }); const aUnitArray = await getUnits({ unitId: improvementWork.unitId });
......
...@@ -14,10 +14,11 @@ ...@@ -14,10 +14,11 @@
<div class="headerBox" style="display: flex; justify-content: space-between; align-items: center;"> <div class="headerBox" style="display: flex; justify-content: space-between; align-items: center;">
<!-- Left content --> <!-- Left content -->
<div> <div>
<h2 id="title"></h2> <h2 id="title"></h2>
<p>Projekt ledare:</p> <p>Projekt ledare:</p>
<p>Medlem:</p> <p id="pLeader"></p>
<p>Medlem:</p> <p>Medlemar:</p>
<p id="pMembers"></p>
<button>+ Lägg till medlem</button> <button>+ Lägg till medlem</button>
<button>Redigera</button> <button>Redigera</button>
</div> </div>
......
...@@ -66,6 +66,8 @@ async function loadImprovementWorkDataPageS(projectId:string) { ...@@ -66,6 +66,8 @@ async function loadImprovementWorkDataPageS(projectId:string) {
const aAreaElement = document.getElementById("sArea") as HTMLParagraphElement; const aAreaElement = document.getElementById("sArea") as HTMLParagraphElement;
aAreaElement.textContent = improvementWork.area; aAreaElement.textContent = improvementWork.area;
const pAreaElement = document.getElementById("pMembers") as HTMLParagraphElement;
pAreaElement.textContent = improvementWork.members;
try { try {
const aUnitArray = await getUnits({ unitId: improvementWork.unitId }); const aUnitArray = await getUnits({ unitId: improvementWork.unitId });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment