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
6758d19b
Commit
6758d19b
authored
Apr 07, 2014
by
Alan Boudreault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed submit checkmark icon
parent
9a8c20db
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
38 deletions
+0
-38
mentoring/mentoring.py
+0
-1
mentoring/public/css/mentoring.css
+0
-13
mentoring/public/js/mentoring.js
+0
-14
mentoring/templates/html/mentoring.html
+0
-3
mentoring/templates/html/mentoring_progress.html
+0
-7
No files found.
mentoring/mentoring.py
View file @
6758d19b
...
...
@@ -89,7 +89,6 @@ class MentoringBlock(XBlockWithLightChildren):
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/vendor/underscore-min.js'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/mentoring.js'
))
fragment
.
add_resource
(
load_resource
(
'templates/html/mentoring_progress.html'
),
"text/html"
)
fragment
.
add_resource
(
load_resource
(
'templates/html/mentoring_attempts.html'
),
"text/html"
)
fragment
.
initialize_js
(
'MentoringBlock'
)
...
...
mentoring/public/css/mentoring.css
View file @
6758d19b
...
...
@@ -49,19 +49,6 @@
margin-top
:
20px
;
}
.mentoring
.progress
.indicator
{
display
:
inline-block
;
vertical-align
:
middle
;
}
.mentoring
.progress
.indicator
.checkmark-correct
{
color
:
#006600
;
}
.mentoring
.progress
.indicator
.checkmark-incorrect
{
color
:
#ff0000
;
}
.mentoring
.attempts
{
margin-top
:
20px
;
display
:
inline-block
;
...
...
mentoring/public/js/mentoring.js
View file @
6758d19b
function
MentoringBlock
(
runtime
,
element
)
{
var
progressTemplate
=
_
.
template
(
$
(
'#xblock-progress-template'
).
html
());
var
attemptsTemplate
=
_
.
template
(
$
(
'#xblock-attempts-template'
).
html
());
var
children
;
// Keep track of children. A Child need a single object scope for its data.
function
renderProgress
()
{
var
data
=
$
(
'.progress'
,
element
).
data
();
$
(
'.indicator'
,
element
).
html
(
progressTemplate
(
data
));
}
function
renderAttempts
()
{
var
data
=
$
(
'.attempts'
,
element
).
data
();
$
(
'.attempts'
,
element
).
html
(
attemptsTemplate
(
data
));
...
...
@@ -45,10 +39,6 @@ function MentoringBlock(runtime, element) {
callIfExists
(
child
,
'handleSubmit'
,
result
,
options
);
});
$
(
'.progress'
,
element
).
data
(
'completed'
,
results
.
completed
?
'True'
:
'False'
);
$
(
'.progress'
,
element
).
data
(
'attempted'
,
results
.
attempted
?
'True'
:
'False'
);
renderProgress
();
$
(
'.attempts'
,
element
).
data
(
'max_attempts'
,
results
.
max_attempts
);
$
(
'.attempts'
,
element
).
data
(
'num_attempts'
,
results
.
num_attempts
);
renderAttempts
();
...
...
@@ -120,10 +110,6 @@ function MentoringBlock(runtime, element) {
});
if
(
submit_dom
.
length
)
{
renderProgress
();
}
renderAttempts
();
renderDependency
();
...
...
mentoring/templates/html/mentoring.html
View file @
6758d19b
...
...
@@ -10,9 +10,6 @@
<div
class=
"attempts"
data-max_attempts=
"{{ self.max_attempts }}"
data-num_attempts=
"{{ self.num_attempts }}"
></div>
<div
class=
"submit"
>
<input
type=
"button"
class=
"input-main"
value=
"Submit"
></input>
<span
class=
"progress"
data-completed=
"{{ self.completed }}"
data-attempted=
"{{ self.attempted }}"
>
<span
class=
'indicator'
></span>
</span>
</div>
{% endif %}
<div
class=
"messages"
></div>
...
...
mentoring/templates/html/mentoring_progress.html
deleted
100644 → 0
View file @
9a8c20db
<script
type=
"text/template"
id=
"xblock-progress-template"
>
<%
if
(
completed
===
"True"
)
{{
%>
<
i
class
=
"icon-ok icon-2x checkmark-correct"
><
/i
>
<%
}}
else
if
(
attempted
===
"True"
)
{{
%>
<
i
class
=
"icon-exclamation icon-2x checkmark-incorrect"
><
/i
>
<%
}}
%>
</script>
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