Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d6e722a6
Commit
d6e722a6
authored
Apr 11, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary check and add better textline documentation
parent
fd35b2c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
common/lib/capa/capa/inputtypes.py
+8
-0
common/lib/capa/capa/templates/textline.html
+0
-2
No files found.
common/lib/capa/capa/inputtypes.py
View file @
d6e722a6
...
...
@@ -457,8 +457,16 @@ class TextLine(InputTypeBase):
"""
A text line input. Can do math preview if "math"="1" is specified.
If "trailing_text" is set to a value, then the textline will be shown with the value after the text input.
This is useful if you would like to specify a specific type of units for the text input.
If the hidden attribute is specified, the textline is hidden and the input id is stored in a div with name equal
to the value of the hidden attribute. This is used e.g. for embedding simulations turned into questions.
Example:
<texline math="1" trailing_text="m/s" />
This example will render out a text line with a math preview and the text 'm/s' after the end of the text line.
"""
template
=
"textline.html"
...
...
common/lib/capa/capa/templates/textline.html
View file @
d6e722a6
...
...
@@ -31,9 +31,7 @@
style=
"display:none;"
%
endif
/>
% if trailing_text:
${trailing_text}
% endif
<p
class=
"status"
>
% if status == 'unsubmitted':
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment