Commit c7add85c by Alexander Kryklia

added new tag

parent 0001a67c
......@@ -800,12 +800,12 @@ class DragAndDropInput(InputTypeBase):
@classmethod
def get_attributes(cls):
"""
Note: height, width, template and images are required.
Note: height, width, images_directory_path are required.
"""
images_directory_path = Attribute('images_directory_path')
return [Attribute('height'),
Attribute('width'),
Attribute('template'),
Attribute('images'),
images_directory_path,
]
registry.register(DragAndDropInput)
......
<section id="inputtype_${id}" class="capa_inputtype" >
<div class="drag_and_drop_problem" id="drag_and_drop_div_${id}"
style="width:${width};height:${height}"
data-template="${template}" data-images="${images}"></div>
style="width:${width};height:${height}">
% if item
<ul>
% for item in images_directory_path:
<li>${item}</li>
% endfor
</ul>
% endif
</div>
<div class="script_placeholder" data-src="/static/js/raphael.js"></div>
......
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