Add trailing text to textlines, most useful for units.

This commit is contained in:
Diana Huang
2013-04-10 14:47:45 -04:00
parent 734b169ebd
commit c93b8076bf
2 changed files with 4 additions and 0 deletions

View File

@@ -483,6 +483,7 @@ class TextLine(InputTypeBase):
Attribute('dojs', None, render=False), Attribute('dojs', None, render=False),
Attribute('preprocessorClassName', None, render=False), Attribute('preprocessorClassName', None, render=False),
Attribute('preprocessorSrc', None, render=False), Attribute('preprocessorSrc', None, render=False),
Attribute('trailing_text', ''),
] ]
def setup(self): def setup(self):

View File

@@ -31,6 +31,9 @@
style="display:none;" style="display:none;"
% endif % endif
/> />
% if trailing_text:
${trailing_text}
% endif
<p class="status"> <p class="status">
% if status == 'unsubmitted': % if status == 'unsubmitted':