Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d6e722a6
Commit
d6e722a6
authored
11 years ago
by
Diana Huang
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary check and add better textline documentation
parent
fd35b2c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/lib/capa/capa/inputtypes.py
+8
-0
8 additions, 0 deletions
common/lib/capa/capa/inputtypes.py
common/lib/capa/capa/templates/textline.html
+0
-2
0 additions, 2 deletions
common/lib/capa/capa/templates/textline.html
with
8 additions
and
2 deletions
common/lib/capa/capa/inputtypes.py
+
8
−
0
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
"
...
...
This diff is collapsed.
Click to expand it.
common/lib/capa/capa/templates/textline.html
+
0
−
2
View file @
d6e722a6
...
...
@@ -31,9 +31,7 @@
style=
"display:none;"
%
endif
/>
% if trailing_text:
${trailing_text}
% endif
<p
class=
"status"
>
% if status == 'unsubmitted':
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment