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
9a9db997
Commit
9a9db997
authored
Aug 10, 2016
by
alisan617
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trailing text positioning in num input type question TNL-4584
parent
878b9124
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
common/lib/capa/capa/templates/formulaequationinput.html
+5
-3
common/lib/capa/capa/templates/textline.html
+6
-4
common/lib/xmodule/xmodule/css/capa/display.scss
+2
-4
No files found.
common/lib/capa/capa/templates/formulaequationinput.html
View file @
9a9db997
<
%
page
expression_filter=
"h"
/>
<
%!
from
openedx
.
core
.
djangolib
.
markup
import
HTML
%
>
<
%
doinline =
'style="display:inline-block;vertical-align:top"'
if
inline
else
""
%
>
<section
id=
"formulaequationinput_${id}"
class=
"inputtype formulaequationinput"
${
doinline
}
>
<div
class=
"${status.classname}"
id=
"status_${id}"
>
<input
type=
"text"
name=
"input_${id}"
id=
"input_${id}"
data-input-id=
"${id}"
value=
"${value
|h
}"
data-input-id=
"${id}"
value=
"${value}"
aria-label=
"${label}"
aria-describedby=
"${id}_status"
%
if
size:
size=
"${size}"
%
endif
/>
${trailing_text | h}
<span
class=
"trailing_text"
>
${trailing_text}
</span>
<span
class=
"status"
id=
"${id}_status"
data-tooltip=
"${status.display_tooltip}"
>
<span
class=
"sr"
>
...
...
@@ -28,6 +30,6 @@
<div
class=
"script_placeholder"
data-src=
"${previewer}"
/>
% if msg:
<span
class=
"message"
>
${
msg|n
}
</span>
<span
class=
"message"
>
${
HTML(msg)
}
</span>
% endif
</section>
common/lib/capa/capa/templates/textline.html
View file @
9a9db997
<
%
page
expression_filter=
"h"
/>
<
%!
from
openedx
.
core
.
djangolib
.
markup
import
HTML
%
>
<
%
doinline =
"inline"
if
inline
else
""
%
>
<div
id=
"inputtype_${id}"
class=
"${'text-input-dynamath' if do_math else ''} capa_inputtype ${doinline} textline"
>
...
...
@@ -14,7 +16,7 @@
<div
style=
"display:none;"
name=
"${hidden}"
inputid=
"input_${id}"
/>
% endif
<input
type=
"text"
name=
"input_${id}"
id=
"input_${id}"
aria-label=
"${label}"
aria-describedby=
"answer_${id}"
value=
"${value
|h
}"
<input
type=
"text"
name=
"input_${id}"
id=
"input_${id}"
aria-label=
"${label}"
aria-describedby=
"answer_${id}"
value=
"${value}"
%
if
do_math:
class=
"math"
%
endif
...
...
@@ -25,7 +27,7 @@
style=
"display:none;"
%
endif
/>
${trailing_text | h}
<span
class=
"trailing_text"
>
${trailing_text}
</span>
<span
class=
"status"
%
if
status
!=
'
unsubmitted
'
:
...
...
@@ -33,7 +35,7 @@
aria-describedby=
"input_${id}"
data-tooltip=
"${status.display_tooltip}"
>
<span
class=
"sr"
>
%if value:
${value
|h
}
${value}
% else:
${label}
%endif
...
...
@@ -55,7 +57,7 @@
% endif
% if msg:
<span
class=
"message"
>
${
msg|n
}
</span>
<span
class=
"message"
>
${
HTML(msg)
}
</span>
% endif
</div>
common/lib/xmodule/xmodule/css/capa/display.scss
View file @
9a9db997
...
...
@@ -819,10 +819,8 @@ div.problem {
}
.capa_inputtype.textline.text-input-dynamath
,
.inputtype.formulaequationinput
{
display
:
inline-block
;
input
{
width
:
calc
(
100%
-
45px
);
.trailing_text
{
display
:
inline-block
;
}
}
}
...
...
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