Commit ea944a50 by Xavier Antoviaque

Add option to prevent display of submit button

parent 60d9e628
......@@ -61,6 +61,7 @@ class MentoringBlock(XBlockWithLightChildren):
default='mentoring', scope=Scope.content)
enforce_dependency = Boolean(help="Should the next step be the current block to complete?",
default=True, scope=Scope.content)
display_submit = Boolean(help="Allow to submit current block?", default=True, scope=Scope.content)
xml_content = String(help="XML content", default='', scope=Scope.content)
has_children = True
......
......@@ -8,9 +8,11 @@
{% for name, c in named_children %}
{{c.body_html|safe}}
{% endfor %}
{% if self.display_submit %}
<input type="button" value="submit" class="submit"></input>
<span class="progress" data-completed="{{ self.completed }}">
<span class='indicator'></span>
</span>
{% endif %}
<div class="messages"></div>
</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