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
0694b729
Commit
0694b729
authored
May 15, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38 from edx-solutions/design-refresh-fixes
Design refresh - Adds extra fixes
parents
f521eb01
a02f8815
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
24 deletions
+44
-24
mentoring/public/css/mentoring.css
+21
-3
mentoring/public/css/questionnaire.css
+4
-9
mentoring/templates/html/mcqblock_choices.html
+5
-2
mentoring/templates/html/mcqblock_rating.html
+6
-6
mentoring/templates/html/mentoring.html
+1
-1
mentoring/templates/html/mentoring_attempts.html
+1
-1
mentoring/templates/html/mrqblock_choices.html
+6
-2
No files found.
mentoring/public/css/mentoring.css
View file @
0694b729
...
@@ -36,7 +36,6 @@
...
@@ -36,7 +36,6 @@
font-style
:
italic
;
font-style
:
italic
;
}
}
.mentoring
h3
,
.mentoring
h4
{
.mentoring
h4
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
...
@@ -46,22 +45,41 @@
...
@@ -46,22 +45,41 @@
}
}
.mentoring
.submit
{
.mentoring
.submit
{
display
:
inline-block
;
margin-top
:
20px
;
margin-top
:
20px
;
}
}
.mentoring
.attempts
{
.mentoring
.attempts
{
margin-
top
:
2
0px
;
margin-
left
:
1
0px
;
display
:
inline-block
;
display
:
inline-block
;
vertical-align
:
baseline
;
vertical-align
:
middle
;
}
.mentoring
.attempts
>
span
{
color
:
#777
;
color
:
#777
;
font-style
:
italic
;
font-style
:
italic
;
webkit-font-smoothing
:
antialiased
;
webkit-font-smoothing
:
antialiased
;
}
}
.mentoring
.checkmark-correct
{
.mentoring
.checkmark-correct
{
font-size
:
22pt
;
color
:
#006600
;
color
:
#006600
;
color
:
#629b2b
;
float
:
left
;
}
}
.mentoring
.checkmark-incorrect
{
.mentoring
.checkmark-incorrect
{
font-size
:
22pt
;
color
:
#ff0000
;
color
:
#ff0000
;
float
:
left
;
}
.mentoring
div
{
overflow
:
hidden
;
}
.mentoring
.choice-result
{
display
:
block
;
float
:
left
;
height
:
33.33px
;
}
}
mentoring/public/css/questionnaire.css
View file @
0694b729
...
@@ -4,10 +4,6 @@
...
@@ -4,10 +4,6 @@
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.mentoring
.questionnaire
.choice
{
margin
:
10px
0
;
}
.mentoring
.choices
.choice-checkbox
{
.mentoring
.choices
.choice-checkbox
{
display
:
inline-block
;
display
:
inline-block
;
margin-top
:
5px
;
margin-top
:
5px
;
...
@@ -22,11 +18,6 @@
...
@@ -22,11 +18,6 @@
}
}
.mentoring
.questionnaire
.choice-result.checkmark-correct
,
.mentoring
.questionnaire
.choice-result.checkmark-correct
,
.mentoring
.questionnaire
.choice-answer.checkmark-correct
{
position
:
relative
;
top
:
-3px
;
}
.mentoring
.questionnaire
.choice-result.checkmark-incorrect
{
.mentoring
.questionnaire
.choice-result.checkmark-incorrect
{
text-align
:
center
;
text-align
:
center
;
}
}
...
@@ -78,3 +69,7 @@
...
@@ -78,3 +69,7 @@
.mentoring
.choices-list
.choice-selector
{
.mentoring
.choices-list
.choice-selector
{
margin-right
:
5px
;
margin-right
:
5px
;
}
}
.mentoring
.choice-label
{
margin-top
:
5px
;
}
mentoring/templates/html/mcqblock_choices.html
View file @
0694b729
<fieldset
class=
"choices questionnaire"
>
<fieldset
class=
"choices questionnaire"
>
<legend
class=
"question"
>
{{ self.question }}
</legend>
<legend
class=
"question"
>
<h3>
QUESTION
</h3>
<p>
{{ self.question }}
</p>
</legend>
<div
class=
"choices-list"
>
<div
class=
"choices-list"
>
{% for choice in custom_choices %}
{% for choice in custom_choices %}
<div
class=
"choice"
>
<div
class=
"choice"
>
<
span
class=
"choice-result icon-2x"
></span
>
<
div
class=
"choice-result icon-2x"
></div
>
<label
class=
"choice-label"
>
<label
class=
"choice-label"
>
<input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"{{ choice.value }}"
{%
if
self
.
student_choice =
=
choice
.
value
%}
checked
{%
endif
%}
>
{{ choice.content }}
<input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"{{ choice.value }}"
{%
if
self
.
student_choice =
=
choice
.
value
%}
checked
{%
endif
%}
>
{{ choice.content }}
</label>
</label>
...
...
mentoring/templates/html/mcqblock_rating.html
View file @
0694b729
...
@@ -2,35 +2,35 @@
...
@@ -2,35 +2,35 @@
<legend
class=
"question"
>
{{ self.question }}
</legend>
<legend
class=
"question"
>
{{ self.question }}
</legend>
<div
class=
"choices-list"
>
<div
class=
"choices-list"
>
<div
class=
"choice"
>
<div
class=
"choice"
>
<
span
class=
"choice-result icon-2x"
></span
>
<
div
class=
"choice-result icon-2x"
></div
>
<label><input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"1"
{%
if
self
.
student_choice =
=
'
1
'
%}
checked
{%
endif
%}
>
1
</label>
<label><input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"1"
{%
if
self
.
student_choice =
=
'
1
'
%}
checked
{%
endif
%}
>
1
</label>
<span
class=
"low"
>
- {{ self.low }}
</span>
<span
class=
"low"
>
- {{ self.low }}
</span>
<div
class=
"choice-tips"
></div>
<div
class=
"choice-tips"
></div>
</div>
</div>
<div
class=
"choice"
>
<div
class=
"choice"
>
<
span
class=
"choice-result icon-2x"
></span
>
<
div
class=
"choice-result icon-2x"
></div
>
<label><input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"2"
{%
if
self
.
student_choice =
=
'
2
'
%}
checked
{%
endif
%}
>
2
</label>
<label><input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"2"
{%
if
self
.
student_choice =
=
'
2
'
%}
checked
{%
endif
%}
>
2
</label>
<div
class=
"choice-tips"
></div>
<div
class=
"choice-tips"
></div>
</div>
</div>
<div
class=
"choice"
>
<div
class=
"choice"
>
<
span
class=
"choice-result icon-2x"
></span
>
<
div
class=
"choice-result icon-2x"
></div
>
<label><input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"3"
{%
if
self
.
student_choice =
=
'
3
'
%}
checked
{%
endif
%}
>
3
</label>
<label><input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"3"
{%
if
self
.
student_choice =
=
'
3
'
%}
checked
{%
endif
%}
>
3
</label>
<div
class=
"choice-tips"
></div>
<div
class=
"choice-tips"
></div>
</div>
</div>
<div
class=
"choice"
>
<div
class=
"choice"
>
<
span
class=
"choice-result icon-2x"
></span
>
<
div
class=
"choice-result icon-2x"
></div
>
<label><input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"4"
{%
if
self
.
student_choice =
=
'
4
'
%}
checked
{%
endif
%}
>
4
</label>
<label><input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"4"
{%
if
self
.
student_choice =
=
'
4
'
%}
checked
{%
endif
%}
>
4
</label>
<div
class=
"choice-tips"
></div>
<div
class=
"choice-tips"
></div>
</div>
</div>
<div
class=
"choice"
>
<div
class=
"choice"
>
<
span
class=
"choice-result icon-2x"
></span
>
<
div
class=
"choice-result icon-2x"
></div
>
<label><input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"5"
{%
if
self
.
student_choice =
=
'
5
'
%}
checked
{%
endif
%}
>
5
</label>
<label><input
class=
"choice-selector"
type=
"radio"
name=
"{{ self.name }}"
value=
"5"
{%
if
self
.
student_choice =
=
'
5
'
%}
checked
{%
endif
%}
>
5
</label>
<span
class=
"low"
>
- {{ self.high }}
</span>
<span
class=
"low"
>
- {{ self.high }}
</span>
<div
class=
"choice-tips"
></div>
<div
class=
"choice-tips"
></div>
</div>
</div>
{% for choice in custom_choices %}
{% for choice in custom_choices %}
<div
class=
"choice"
>
<div
class=
"choice"
>
<
span
class=
"choice-result icon-2x"
></span
>
<
div
class=
"choice-result icon-2x"
></div
>
<label><input
type=
"radio"
name=
"{{ self.name }}"
value=
"{{ choice.value }}"
{%
if
self
.
student_choice =
=
'{{
choice
.
value
}}'
%}
checked
{%
endif
%}
>
{{ choice.content }}
</label>
<label><input
type=
"radio"
name=
"{{ self.name }}"
value=
"{{ choice.value }}"
{%
if
self
.
student_choice =
=
'{{
choice
.
value
}}'
%}
checked
{%
endif
%}
>
{{ choice.content }}
</label>
<div
class=
"choice-tips"
></div>
<div
class=
"choice-tips"
></div>
</div>
</div>
...
...
mentoring/templates/html/mentoring.html
View file @
0694b729
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
{{c.body_html|safe}}
{{c.body_html|safe}}
{% endfor %}
{% endfor %}
{% if self.display_submit %}
{% if self.display_submit %}
<div
class=
"attempts"
data-max_attempts=
"{{ self.max_attempts }}"
data-num_attempts=
"{{ self.num_attempts }}"
></div>
<div
class=
"submit"
>
<div
class=
"submit"
>
<input
type=
"button"
class=
"input-main"
value=
"Submit"
></input>
<input
type=
"button"
class=
"input-main"
value=
"Submit"
></input>
<div
class=
"attempts"
data-max_attempts=
"{{ self.max_attempts }}"
data-num_attempts=
"{{ self.num_attempts }}"
></div>
</div>
</div>
{% endif %}
{% endif %}
<div
class=
"messages"
></div>
<div
class=
"messages"
></div>
...
...
mentoring/templates/html/mentoring_attempts.html
View file @
0694b729
<script
type=
"text/template"
id=
"xblock-attempts-template"
>
<script
type=
"text/template"
id=
"xblock-attempts-template"
>
<%
if
(
_
.
isNumber
(
max_attempts
)
&&
max_attempts
>
0
)
{{
%>
<%
if
(
_
.
isNumber
(
max_attempts
)
&&
max_attempts
>
0
)
{{
%>
<
div
>
You
have
used
<%=
_
.
min
([
num_attempts
,
max_attempts
])
%>
of
<%=
max_attempts
%>
attempts
.
<
/div
>
<
span
>
You
have
used
<%=
_
.
min
([
num_attempts
,
max_attempts
])
%>
of
<%=
max_attempts
%>
attempts
.
<
/span
>
<%
}}
%>
<%
}}
%>
</script>
</script>
mentoring/templates/html/mrqblock_choices.html
View file @
0694b729
<fieldset
class=
"choices questionnaire"
data-hide_results=
"{{self.hide_results}}"
>
<fieldset
class=
"choices questionnaire"
data-hide_results=
"{{self.hide_results}}"
>
<legend
class=
"question"
>
{{ self.question }}
</legend>
<legend
class=
"question"
>
<h3>
QUESTION
</h3>
<p>
{{ self.question }}
</p>
</legend>
<div
class=
"choices-list"
>
<div
class=
"choices-list"
>
{% for choice in custom_choices %}
{% for choice in custom_choices %}
<div
class=
"choice"
>
<div
class=
"choice"
>
<
span
class=
"choice-result icon-2x"
></span
>
<
div
class=
"choice-result icon-2x"
></div
>
<div
class=
"choice-checkbox"
>
<div
class=
"choice-checkbox"
>
<label
class=
"choice-label"
>
<label
class=
"choice-label"
>
<input
class=
"choice-selector"
type=
"checkbox"
name=
"{{ self.name }}"
<input
class=
"choice-selector"
type=
"checkbox"
name=
"{{ self.name }}"
...
...
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