diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 9ea30e86b..c4e5b66b5 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -1084,6 +1084,7 @@ "material": "Material", "environmental": "Environmental", "documentationScore": "Documentation score", + "implementationScore": "Implementation score", "useDocumentationScore": "Use documentation score", "useDocumentationScoreHelpText": "A second score (the documentation score) will be available for scoring the requirements." } diff --git a/frontend/src/lib/components/Forms/Score.svelte b/frontend/src/lib/components/Forms/Score.svelte index 14bc4b00a..1891aaf5b 100644 --- a/frontend/src/lib/components/Forms/Score.svelte +++ b/frontend/src/lib/components/Forms/Score.svelte @@ -92,7 +92,7 @@ {/if}
{#if isApplicable} -
+
-
+
+ {#if !always_enabled} + +

{m.scoringHelpText()}

+ {/if} {#if $isScored && scores_definition && $value !== null} {#each scores_definition as definition} {#if definition.score === $value} @@ -114,43 +124,33 @@ {/if} {/each} {/if} - {#if !always_enabled} - + {#if show_documentation_score}{m.implementationScore()}{/if} + {$isScored ? $value : '--'} -

{m.scoringHelpText()}

- {/if} +
+
+
+ {#if show_documentation_score} +
+ {m.documentationScore()} {$isScored ? $value : '--'}{$isScored ? $documentationScore : '--'} - {m.score()} - {#if show_documentation_score} -
- {$isScored ? $documentationScore : '--'} - {m.documentationScore()} -
- {/if}
- - {#if show_documentation_score}