Commit 9075e844 by Calen Pennington

Merge pull request #1774 from MITx/feature/ichuang/conditional-def-msg

add default message to conditional
parents de448137 b3f00a67
...@@ -125,7 +125,8 @@ class ConditionalModule(ConditionalFields, XModule): ...@@ -125,7 +125,8 @@ class ConditionalModule(ConditionalFields, XModule):
an AJAX call. an AJAX call.
""" """
if not self.is_condition_satisfied(): if not self.is_condition_satisfied():
message = self.descriptor.xml_attributes.get('message') defmsg = "{link} must be attempted before this will become visible."
message = self.descriptor.xml_attributes.get('message', defmsg)
context = {'module': self, context = {'module': self,
'message': message} 'message': message}
html = self.system.render_template('conditional_module.html', html = self.system.render_template('conditional_module.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