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
a71860d4
Commit
a71860d4
authored
Mar 18, 2014
by
Alan Boudreault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the mrq incorrect and correct marks to font-awesome exclamation
parent
6d576e07
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
13 deletions
+11
-13
mentoring/public/css/questionnaire.css
+7
-5
mentoring/public/img/correct-icon.png
+0
-0
mentoring/public/img/incorrect-icon.png
+0
-0
mentoring/public/js/questionnaire.js
+3
-3
mentoring/questionnaire.py
+0
-4
mentoring/templates/html/mrqblock_choices.html
+1
-1
No files found.
mentoring/public/css/questionnaire.css
View file @
a71860d4
...
...
@@ -12,18 +12,20 @@
}
.mentoring
.choices
.choice-result
{
padding-right
:
4
0px
;
padding-right
:
1
0px
;
background-position
:
center
;
background-repeat
:
no-repeat
;
}
.mentoring
.choices
.choice-result.correct
{
background-image
:
url({{ correct_icon_url }})
;
cursor
:
pointer
;
color
:
#006600
}
.mentoring
.choices
.choice-result.incorrect
{
background-image
:
url({{ incorrect_icon_url }})
;
cursor
:
pointer
;
margin-right
:
10px
;
padding-left
:
10px
;
padding-right
:
10px
;
color
:
#ff0000
;
}
.mentoring
.choices
.choice-tips
,
...
...
mentoring/public/img/correct-icon.png
deleted
100644 → 0
View file @
6d576e07
224 Bytes
mentoring/public/img/incorrect-icon.png
deleted
100644 → 0
View file @
6d576e07
257 Bytes
mentoring/public/js/questionnaire.js
View file @
a71860d4
...
...
@@ -53,7 +53,7 @@ function MRQBlock(runtime, element) {
};
if
(
result
.
message
)
{
messageDOM
.
html
(
'<div class="message-content"><div class="close"></div>'
+
messageDOM
.
html
(
'<div class="message-content"><div class="close"></div>'
+
result
.
message
+
'</div>'
);
showPopup
(
messageDOM
);
}
...
...
@@ -66,9 +66,9 @@ function MRQBlock(runtime, element) {
choiceTipsCloseDOM
;
if
(
choice
.
completed
)
{
choiceResultDOM
.
removeClass
(
'incorrect
'
).
addClass
(
'correct
'
);
choiceResultDOM
.
removeClass
(
'incorrect
icon-exclamation'
).
addClass
(
'correct icon-ok
'
);
}
else
{
choiceResultDOM
.
removeClass
(
'correct
'
).
addClass
(
'incorrect
'
);
choiceResultDOM
.
removeClass
(
'correct
icon-ok'
).
addClass
(
'incorrect icon-exclamation
'
);
}
choiceTipsDOM
.
html
(
choice
.
tips
);
...
...
mentoring/questionnaire.py
View file @
a71860d4
...
...
@@ -85,10 +85,6 @@ class QuestionnaireAbstractBlock(LightChild):
fragment
=
Fragment
(
html
)
fragment
.
add_css
(
render_template
(
'public/css/questionnaire.css'
,
{
'self'
:
self
,
'correct_icon_url'
:
self
.
runtime
.
local_resource_url
(
self
.
xblock_container
,
'public/img/correct-icon.png'
),
'incorrect_icon_url'
:
self
.
runtime
.
local_resource_url
(
self
.
xblock_container
,
'public/img/incorrect-icon.png'
),
'close_icon_url'
:
self
.
runtime
.
local_resource_url
(
self
.
xblock_container
,
'public/img/close.png'
),
}))
...
...
mentoring/templates/html/mrqblock_choices.html
View file @
a71860d4
...
...
@@ -4,7 +4,7 @@
<div
class=
"choices-list"
>
{% for choice in custom_choices %}
<div
class=
"choice"
>
<span
class=
"choice-result"
></span>
<span
class=
"choice-result
icon-2x
"
></span>
<label
class=
"choice-label"
>
<input
class=
"choice-selector"
type=
"checkbox"
name=
"{{ self.name }}"
value=
"{{ choice.value }}"
{%
if
choice
.
value
in
self
.
student_choices
%}
checked
{%
endif
%}
>
{{ choice.content }}
</label>
...
...
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