Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/2486 Remove CV as assessment option #2491

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 24 additions & 21 deletions src/views/Exercise/Details/Assessments/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,31 @@
v-for="method in Object.values(ASSESSMENT_METHOD)"
:key="method"
>
<Checkbox
:id="`assessment-method-${method}`"
v-model="formData.assessmentMethods[method]"
>
{{ $filters.lookup(method) }}
</Checkbox>
<div
v-if="method == ASSESSMENT_METHOD.SELF_ASSESSMENT_WITH_COMPETENCIES && formData.assessmentMethods[method]"
>
<span
class="govuk-hint"
<!-- remove CV assessment option -->
<template v-if="method !== ASSESSMENT_METHOD.CV">
<Checkbox
:id="`assessment-method-${method}`"
v-model="formData.assessmentMethods[method]"
>
Please add a word limit for each question within the self assessment.
</span>
<RepeatableFields
v-model="formData.selfAssessmentWordLimits"
:component="repeatableFields.SelfAssessmentSection"
type-name="Self Assessment Section"
required
/>
<slot name="removeButton" />
</div>
{{ $filters.lookup(method) }}
</Checkbox>
<div
v-if="method == ASSESSMENT_METHOD.SELF_ASSESSMENT_WITH_COMPETENCIES && formData.assessmentMethods[method]"
>
<span
class="govuk-hint"
>
Please add a word limit for each question within the self assessment.
</span>
<RepeatableFields
v-model="formData.selfAssessmentWordLimits"
:component="repeatableFields.SelfAssessmentSection"
type-name="Self Assessment Section"
required
/>
<slot name="removeButton" />
</div>
</template>
</div>
<button class="govuk-button">
Save and continue
Expand Down
Loading