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
65a1ece4
Commit
65a1ece4
authored
May 15, 2014
by
Alan Boudreault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more work for a better styling
parent
0694b729
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
12 deletions
+16
-12
mentoring/public/css/mentoring.css
+4
-0
mentoring/public/css/questionnaire.css
+2
-3
mentoring/public/img/close.png
+0
-0
mentoring/public/js/questionnaire.js
+5
-5
mentoring/questionnaire.py
+1
-3
mentoring/templates/html/mentoring.html
+4
-1
No files found.
mentoring/public/css/mentoring.css
View file @
65a1ece4
.mentoring
.title
{
display
:
inline-block
;
}
.mentoring
.messages
{
display
:
none
;
margin-top
:
10px
;
...
...
mentoring/public/css/questionnaire.css
View file @
65a1ece4
...
...
@@ -52,11 +52,10 @@
.mentoring
.questionnaire
.choice-tips
.close
,
.mentoring
.questionnaire
.feedback
.close
{
background-image
:
url({{ close_icon_url }})
;
cursor
:
pointer
;
position
:
absolute
;
top
:
-10
px
;
right
:
-1
0px
;
top
:
5
px
;
right
:
0px
;
width
:
18px
;
height
:
21px
;
}
...
...
mentoring/public/img/close.png
deleted
100644 → 0
View file @
0694b729
452 Bytes
mentoring/public/js/questionnaire.js
View file @
65a1ece4
...
...
@@ -95,8 +95,8 @@ function MCQBlock(runtime, element) {
});
if
(
_
.
isNull
(
result
.
submission
))
{
messageView
.
showMessage
(
'<div class="message-content">
<div class="close">
</div>'
+
'
You have not provided an answer.'
+
'</div
>'
);
messageView
.
showMessage
(
'<div class="message-content">
You have not provided an answer.
</div>'
+
'
<i class="close icon-remove-sign fa-times-circle"></i
>'
);
}
else
if
(
result
.
tips
)
{
var
tips
=
_
.
find
(
result
.
tips
,
function
(
obj
)
{
...
...
@@ -109,7 +109,7 @@ function MCQBlock(runtime, element) {
}
}
},
validate
:
function
(){
var
checked
=
$
(
'input[type=radio]:checked'
,
element
);
if
(
checked
.
length
)
{
...
...
@@ -140,8 +140,8 @@ function MRQBlock(runtime, element) {
var
messageView
=
MessageView
(
element
);
if
(
result
.
message
)
{
messageView
.
showMessage
(
'<div class="message-content">
<div class="close"></div>'
+
result
.
message
+
'</div
>'
);
messageView
.
showMessage
(
'<div class="message-content">
'
+
result
.
message
+
'</div>'
+
'<i class="close icon-remove-sign fa-times-circle"></i
>'
);
}
var
questionnaireDOM
=
$
(
'fieldset.questionnaire'
,
element
),
...
...
mentoring/questionnaire.py
View file @
65a1ece4
...
...
@@ -84,9 +84,7 @@ class QuestionnaireAbstractBlock(LightChild):
fragment
=
Fragment
(
html
)
fragment
.
add_css
(
render_template
(
'public/css/questionnaire.css'
,
{
'self'
:
self
,
'close_icon_url'
:
self
.
runtime
.
local_resource_url
(
self
.
xblock_container
,
'public/img/close.png'
),
'self'
:
self
}))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
.
xblock_container
,
'public/js/questionnaire.js'
))
...
...
mentoring/templates/html/mentoring.html
View file @
65a1ece4
...
...
@@ -4,7 +4,10 @@
attempting this step.
</div>
{% if self.title %}
<h2>
{{ self.title.content }} {% if self.weight %} ({{ self.weight }} Points Possible) {% endif %}
</h2>
<div
class=
"title"
>
<h2
class=
"title main"
>
{{ self.title.content }}
</h2>
<span
class=
"title weight"
>
{% if self.weight %} ({{ self.weight }} Points Possible) {% endif %}
</span>
</div>
{% endif %}
{% for name, c in named_children %}
{{c.body_html|safe}}
...
...
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