Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
problem-builder
Commits
6142a04b
Commit
6142a04b
authored
Nov 05, 2014
by
Jonathan Piacenti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide Next Button on retry if only one question.
parent
eb5de98f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
2 deletions
+25
-2
mentoring/public/js/mentoring_assessment_view.js
+3
-1
tests/integration/test_assessment.py
+0
-0
tests/integration/xml/assessment_1.xml
+1
-1
tests/integration/xml/assessment_2.xml
+21
-0
No files found.
mentoring/public/js/mentoring_assessment_view.js
View file @
6142a04b
...
...
@@ -48,7 +48,9 @@ function MentoringAssessmentView(runtime, element, mentoring) {
displayNextChild
();
tryAgainDOM
.
hide
();
submitDOM
.
show
();
nextDOM
.
show
();
if
(
!
isLastChild
())
{
nextDOM
.
show
();
}
}
function
tryAgain
()
{
...
...
tests/integration/test_assessment.py
View file @
6142a04b
This diff is collapsed.
Click to expand it.
tests/integration/xml/assessment_1.xml
View file @
6142a04b
<mentoring
url_name=
"mentoring-assessment"
display_name=
"Nav tooltip title"
weight=
"1"
mode=
"assessment"
max_attempts=
"2"
>
<mentoring
url_name=
"mentoring-assessment
-1
"
display_name=
"Nav tooltip title"
weight=
"1"
mode=
"assessment"
max_attempts=
"2"
>
<title>
A Simple Assessment
</title>
<shared-header>
<p>
This paragraph is shared between
<strong>
all
</strong>
questions.
</p>
...
...
tests/integration/xml/assessment_2.xml
0 → 100644
View file @
6142a04b
<mentoring
url_name=
"mentoring-assessment-2"
display_name=
"Nav tooltip title"
weight=
"1"
mode=
"assessment"
max_attempts=
"2"
>
<title>
A Simple Assessment
</title>
<shared-header>
<p>
This paragraph is shared between
<strong>
all
</strong>
questions.
</p>
</shared-header>
<html>
<p>
Please answer the questions below.
</p>
</html>
<mcq
name=
"mcq_1_1"
type=
"choices"
>
<question>
Do you like this MCQ?
</question>
<choice
value=
"yes"
>
Yes
</choice>
<choice
value=
"maybenot"
>
Maybe not
</choice>
<choice
value=
"understand"
>
I don't understand
</choice>
<tip
display=
"yes"
>
Great!
</tip>
<tip
reject=
"maybenot"
>
Ah, damn.
</tip>
<tip
reject=
"understand"
><html><div
id=
"test-custom-html"
>
Really?
</div></html></tip>
</mcq>
</mentoring>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment