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
9e5ebbf9
Commit
9e5ebbf9
authored
Aug 30, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add border to assessment mode
parent
568115bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
26 deletions
+36
-26
mentoring/public/css/mentoring.css
+5
-0
mentoring/templates/html/mentoring.html
+31
-26
No files found.
mentoring/public/css/mentoring.css
View file @
9e5ebbf9
...
...
@@ -95,6 +95,11 @@
height
:
33.33px
;
}
.mentoring
.assessment-question-block
{
border
:
5px
solid
#e5ebee
;
padding
:
20px
;
}
.mentoring
.assessment-checkmark
{
margin-right
:
10px
;
}
...
...
mentoring/templates/html/mentoring.html
View file @
9e5ebbf9
...
...
@@ -3,39 +3,44 @@
You need to complete
<a
href=
"{{ missing_dependency_url }}"
>
the previous step
</a>
before
attempting this step.
</div>
{% if self.title or self.header %}
<div
class=
"title"
>
<h2
class=
"main"
>
{{ self.title.content }}
</h2>
<div
class=
"header"
>
{{ self.header.content|safe }}
</div>
{% if self.title %}
<h2
class=
"main"
>
{{ self.title.content }}
</h2>
{% endif %}
{% if self.header %}
<div
class=
"header"
>
{{ self.header.content|safe }}
</div>
{% endif %}
</div>
{% endif %}
{% for name, c in named_children %}
{{c.body_html|safe}}
{% endfor %}
{% if self.display_submit %}
<div
class=
"grade"
data-score=
"{{ self.score.1 }}"
data-correct_answer=
"{{ self.score.2 }}"
data-incorrect_answer=
"{{ self.score.3 }}"
data-max_attempts=
"{{ self.max_attempts }}"
data-num_attempts=
"{{ self.num_attempts }}"
>
</div>
<div
class=
"
submit
"
>
{%
if self.mode == 'assessment'
%}
<span
class=
"assessment-checkmark icon-2x"
></span>
{% end
if
%}
<div
class=
"
{{self.mode}}-question-block
"
>
{%
for name, c in named_children
%}
{{c.body_html|safe}}
{% end
for
%}
<input
type=
"button"
class=
"input-main"
value=
"Submit"
disabled=
"disabled"
/>
{% if self.display_submit %}
{% if self.mode == 'assessment' %}
<input
type=
"button"
class=
"input-next"
value=
"Next Question"
disabled=
"disabled"
/>
<input
type=
"button"
class=
"input-review"
value=
"Review grade"
disabled=
"disabled"
/>
<input
type=
"button"
class=
"input-try-again"
value=
"Try again"
disabled=
"disabled"
/>
{% endif %}
<div
class=
"grade"
data-score=
"{{ self.score.1 }}"
data-correct_answer=
"{{ self.score.2 }}"
data-incorrect_answer=
"{{ self.score.3 }}"
data-max_attempts=
"{{ self.max_attempts }}"
data-num_attempts=
"{{ self.num_attempts }}"
>
</div>
<div
class=
"submit"
>
{% if self.mode == 'assessment' %}
<span
class=
"assessment-checkmark icon-2x"
></span>
{% endif %}
<div
class=
"attempts"
data-max_attempts=
"{{ self.max_attempts }}"
data-num_attempts=
"{{ self.num_attempts }}"
></div>
<input
type=
"button"
class=
"input-main"
value=
"Submit"
disabled=
"disabled"
/>
{% if self.mode == 'assessment' %}
<input
type=
"button"
class=
"input-next"
value=
"Next Question"
disabled=
"disabled"
/>
<input
type=
"button"
class=
"input-review"
value=
"Review grade"
disabled=
"disabled"
/>
<input
type=
"button"
class=
"input-try-again"
value=
"Try again"
disabled=
"disabled"
/>
{% endif %}
<div
class=
"attempts"
data-max_attempts=
"{{ self.max_attempts }}"
data-num_attempts=
"{{ self.num_attempts }}"
></div>
</div>
{% endif %}
<div
class=
"messages"
></div>
</div>
{% endif %}
<div
class=
"messages"
></div>
</div>
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