Commit 2cd2fdf2 by Matjaz Gregoric

Add `display_name` to the Data export XBlock.

parent b6a23798
...@@ -28,6 +28,7 @@ import logging ...@@ -28,6 +28,7 @@ import logging
from itertools import groupby from itertools import groupby
from webob import Response from webob import Response
from xblock.core import XBlock from xblock.core import XBlock
from xblock.fields import String, Scope
from xblock.fragment import Fragment from xblock.fragment import Fragment
from .models import Answer from .models import Answer
...@@ -45,6 +46,8 @@ class MentoringDataExportBlock(XBlock): ...@@ -45,6 +46,8 @@ class MentoringDataExportBlock(XBlock):
""" """
An XBlock allowing the instructor team to export all the student answers as a CSV file An XBlock allowing the instructor team to export all the student answers as a CSV file
""" """
display_name = String(help="Display name of the component", default="Mentoring Data Export",
scope=Scope.settings)
def student_view(self, context): def student_view(self, context):
html = render_template('templates/html/dataexport.html', { html = render_template('templates/html/dataexport.html', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment