diff --git a/frontend/src/routes/(app)/(third-party)/compliance-assessments/[id=uuid]/table-mode/+page.svelte b/frontend/src/routes/(app)/(third-party)/compliance-assessments/[id=uuid]/table-mode/+page.svelte
index 847c4e4ea..c6de548a8 100644
--- a/frontend/src/routes/(app)/(third-party)/compliance-assessments/[id=uuid]/table-mode/+page.svelte
+++ b/frontend/src/routes/(app)/(third-party)/compliance-assessments/[id=uuid]/table-mode/+page.svelte
@@ -180,233 +180,250 @@
{/if}
{#each data.requirement_assessments as requirementAssessment}
-
-
-
{title(requirementAssessment)}
- {#if requirementAssessment.description}
-
- {requirementAssessment.description}
-
- {/if}
- {#if requirementAssessment.assessable}
-
+
+ {#if !requirementAssessment.assessable}
+
+
+
+ {title(requirementAssessment)}
- {#if !questionnaireMode}
-
-
-
{m.status()}
-
- {#each status_options as option}
- {
- const newStatus =
- requirementAssessment.status === option.id ? 'to_do' : option.id;
- requirementAssessment.status = newStatus;
- update(requirementAssessment, 'status', newStatus);
- }}>{option.label}
- {/each}
-
-
-
-
{m.result()}
-
- {#each result_options as option}
- {
- const newResult =
- requirementAssessment.result === option.id ? 'not_assessed' : option.id;
- requirementAssessment.result = newResult;
- update(requirementAssessment, 'result', newResult); // Update result for both select and deselect
- }}
- >{option.label}
-
- {/each}
-
+
+ {:else}
+
+ {#if requirementAssessment.description}
+
+ {requirementAssessment.description}
+
+ {/if}
+ {#if requirementAssessment.assessable}
+
- {/if}
- {#if requirementAssessment.answer != null && Object.keys(requirementAssessment.answer).length !== 0}
-
- {#each requirementAssessment.answer.questions as question}
-
- {question.text}
- {#if shallow}
- {#if question.answer}
- {question.answer}
- {:else}
- {m.noAnswer()}
- {/if}
- {:else if question.type === 'unique_choice'}
-
- {#each question.options as option}
- {
- const newAnswer = question.answer === option ? null : option;
- question.answer = newAnswer;
- update(requirementAssessment, 'answer', newAnswer, question);
- }}
- >{option}
-
- {/each}
-
- {:else if question.type === 'date'}
-
- update(requirementAssessment, 'answer', question.answer, question)}
- {...$$restProps}
- />
- {:else}
-
- {/each}
-
- {/if}
-
-
-
- {m.observation()}
-
-
+ {/if}
+ {#if requirementAssessment.answer != null && Object.keys(requirementAssessment.answer).length !== 0}
+
+ {#each requirementAssessment.answer.questions as question}
+
+ {question.text}
{#if shallow}
- {#if requirementAssessment.observation}
- {requirementAssessment.observation}
+ {#if question.answer}
+ {question.answer}
{:else}
- {m.noObservation()}
+ {m.noAnswer()}
{/if}
+ {:else if question.type === 'unique_choice'}
+
+ {#each question.options as option}
+ {
+ const newAnswer = question.answer === option ? null : option;
+ question.answer = newAnswer;
+ update(requirementAssessment, 'answer', newAnswer, question);
+ }}
+ >{option}
+
+ {/each}
+
+ {:else if question.type === 'date'}
+
+ update(requirementAssessment, 'answer', question.answer, question)}
+ {...$$restProps}
+ />
{:else}
+ {/each}
+
+ {/if}
+
+
+
+ {m.observation()}
+
+
+ {#if shallow}
+ {#if requirementAssessment.observation}
+
{requirementAssessment.observation}
+ {:else}
+
{m.noObservation()}
+ {/if}
+ {:else}
+
+
+
+
+
+ {m.evidence()}
+ {#key addedEvidence}
+ {#if requirementAssessment.evidences != null}
+ {requirementAssessment.evidences.length}
+ {/if}
+ {/key}
+
+
+
+ {#if !shallow}
- {/if}
- {/if}
-
-
-
-
-
- {m.evidence()}
- {#key addedEvidence}
- {#if requirementAssessment.evidences != null}
- {requirementAssessment.evidences.length}{m.addEvidence()}
{/if}
- {/key}
-
-
-
- {#if !shallow}
-
- {/if}
- {#key addedEvidence}
- {#each requirementAssessment.evidences as evidence}
-
- {evidence.str}
- {#if !shallow}
-
- {/if}
-
- {/each}
- {/key}
-
-
-
-
-
-
- {/if}
-
+ {#if !shallow}
+
+ {/if}
+
+ {/each}
+ {/key}
+
+
+
+
+
+
+ {/if}
+
+ {/if}
{/each}