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
28cebfdc
Commit
28cebfdc
authored
Jul 03, 2015
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename files that implement data export to match new name of XBlock.
parent
b74d5d11
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
5 deletions
+8
-5
problem_builder/__init__.py
+1
-1
problem_builder/public/css/student_answers_dashboard.css
+0
-0
problem_builder/public/js/student_answers_dashboard.js
+0
-0
problem_builder/student_answers_dashboard.py
+6
-3
problem_builder/templates/html/student_answers_dashboard.html
+0
-0
problem_builder/tests/integration/test_student_answers_dashboard.py
+1
-1
No files found.
problem_builder/__init__.py
View file @
28cebfdc
...
@@ -2,7 +2,7 @@ from .mentoring import MentoringBlock
...
@@ -2,7 +2,7 @@ from .mentoring import MentoringBlock
from
.answer
import
AnswerBlock
,
AnswerRecapBlock
from
.answer
import
AnswerBlock
,
AnswerRecapBlock
from
.choice
import
ChoiceBlock
from
.choice
import
ChoiceBlock
from
.dashboard
import
DashboardBlock
from
.dashboard
import
DashboardBlock
from
.
data_export
import
StudentAnswersDashboardBlock
from
.
student_answers_dashboard
import
StudentAnswersDashboardBlock
from
.mcq
import
MCQBlock
,
RatingBlock
from
.mcq
import
MCQBlock
,
RatingBlock
from
.mrq
import
MRQBlock
from
.mrq
import
MRQBlock
from
.message
import
MentoringMessageBlock
from
.message
import
MentoringMessageBlock
...
...
problem_builder/public/css/
data_export
.css
→
problem_builder/public/css/
student_answers_dashboard
.css
View file @
28cebfdc
File moved
problem_builder/public/js/
data_export
.js
→
problem_builder/public/js/
student_answers_dashboard
.js
View file @
28cebfdc
File moved
problem_builder/
data_export
.py
→
problem_builder/
student_answers_dashboard
.py
View file @
28cebfdc
...
@@ -105,10 +105,13 @@ class StudentAnswersDashboardBlock(XBlock):
...
@@ -105,10 +105,13 @@ class StudentAnswersDashboardBlock(XBlock):
_
(
'Rating Question'
):
'RatingBlock'
,
_
(
'Rating Question'
):
'RatingBlock'
,
_
(
'Long Answer'
):
'AnswerBlock'
,
_
(
'Long Answer'
):
'AnswerBlock'
,
}
}
html
=
loader
.
render_template
(
'templates/html/data_export.html'
,
{
'block_choices'
:
block_choices
})
html
=
loader
.
render_template
(
'templates/html/student_answers_dashboard.html'
,
{
'block_choices'
:
block_choices
}
)
fragment
=
Fragment
(
html
)
fragment
=
Fragment
(
html
)
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/
data_export
.css'
))
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/
student_answers_dashboard
.css'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/
data_export
.js'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/
student_answers_dashboard
.js'
))
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/vendor/underscore-min.js'
))
fragment
.
initialize_js
(
'StudentAnswersDashboardBlock'
)
fragment
.
initialize_js
(
'StudentAnswersDashboardBlock'
)
return
fragment
return
fragment
...
...
problem_builder/templates/html/
data_export
.html
→
problem_builder/templates/html/
student_answers_dashboard
.html
View file @
28cebfdc
File moved
problem_builder/tests/integration/test_
data_export
.py
→
problem_builder/tests/integration/test_
student_answers_dashboard
.py
View file @
28cebfdc
...
@@ -6,7 +6,7 @@ from mock import patch, Mock
...
@@ -6,7 +6,7 @@ from mock import patch, Mock
from
selenium.common.exceptions
import
NoSuchElementException
from
selenium.common.exceptions
import
NoSuchElementException
from
xblockutils.base_test
import
SeleniumXBlockTest
from
xblockutils.base_test
import
SeleniumXBlockTest
from
problem_builder.
data_export
import
StudentAnswersDashboardBlock
from
problem_builder.
student_answers_dashboard
import
StudentAnswersDashboardBlock
class
MockTasksModule
(
object
):
class
MockTasksModule
(
object
):
...
...
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