Skip to content

Commit

Permalink
Added link for grading policy examples in exercise editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Maija Y committed Nov 22, 2023
1 parent a0f1386 commit aff1e02
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Button from "../../../../../shared-module/components/Button"
import CheckBox from "../../../../../shared-module/components/InputFields/CheckBox"
import RadioButton from "../../../../../shared-module/components/InputFields/RadioButton"
import SelectField from "../../../../../shared-module/components/InputFields/SelectField"
import { primaryFont } from "../../../../../shared-module/styles"
import { headingFont, primaryFont } from "../../../../../shared-module/styles"
import findQuizItem from "../../utils/general"
import EditorCard from "../common/EditorCard"
import MultipleChoiceOption from "../common/MultipleChoiceOption"
Expand Down Expand Up @@ -357,11 +357,11 @@ const MultipleChoiceEditor: React.FC<MultipleChoiceEditorProps> = ({ quizItemId
className={css`
color: #414246;
font-size: 14px;
margin-bottom: 8px;
font-family:
Josefin Sans,
sans-serif;
display: block;
margin-bottom: 8px;
${!selected.allowSelectingMultipleOptions && "opacity: 0.5;"}
`}
>
Expand All @@ -376,6 +376,18 @@ const MultipleChoiceEditor: React.FC<MultipleChoiceEditorProps> = ({ quizItemId
{selected.multipleChoiceMultipleOptionsGradingPolicy ==
"some-correct-none-incorrect" &&
t("multiple-choice-grading-some-correct-none-incorrect-description")}

<a
className={css`
color: #414246;
font-size: 14px;
font-family: ${headingFont};
display: block;
`}
href="https://github.com/rage/secret-project-331/wiki/Points-calculation-logic"
>
{t("examples-of-grading-policies")}
</a>
</span>
<OptionTitle> {t("feedback-message")} </OptionTitle>
<ParsedTextField
Expand Down
1 change: 1 addition & 0 deletions shared-module/src/locales/en/quizzes.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"error-answer-does-not-match-the-specified-answer-format": "The answer does not match the answer format specified for this exercise.",
"error-quiz-item-added-after-answering": "A question has been added here after answering the exercise.",
"exact-string": "Exact string",
"examples-of-grading-policies": "Examples of grading policies",
"explain-add-new-quiz-item": "If you want to create different Quiz Type, please create new task with 'Add task'",
"failed": "Failed",
"failure-message": "Failure message",
Expand Down
1 change: 1 addition & 0 deletions shared-module/src/locales/fi/quizzes.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"error-answer-does-not-match-the-specified-answer-format": "Vastaus ei vastaa muotoilun kanssa, joka on osoitettu tälle tehtävälle",
"error-quiz-item-added-after-answering": "Tähän kohtaan on lisätty kysymys sen jälkeen kun vastaus oli lähetetty.",
"exact-string": "Tarkka teksti",
"examples-of-grading-policies": "Esimerkkejä arvostelukäytännöistä",
"explain-add-new-quiz-item": "Jos haluat luoda eri tehtävätyypin niin lisää uusi tehtävä painamalla 'Lisää tehtävä'",
"failed": "Hylätty",
"failure-message": "Häiriö viesti",
Expand Down

0 comments on commit aff1e02

Please sign in to comment.