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
e1c9e52f
Commit
e1c9e52f
authored
Aug 20, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move textinput display:inline into capa display.scss file as class
parent
e3ecd22f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
26 deletions
+15
-26
common/lib/capa/capa/inputtypes.py
+1
-0
common/lib/capa/capa/templates/textinput.html
+7
-25
common/lib/xmodule/xmodule/css/capa/display.scss
+4
-0
lms/envs/dev_ike.py
+3
-1
No files found.
common/lib/capa/capa/inputtypes.py
View file @
e1c9e52f
...
...
@@ -149,6 +149,7 @@ def optioninput(element, value, status, render_template, msg=''):
'state'
:
status
,
'msg'
:
msg
,
'options'
:
osetdict
,
'inline'
:
element
.
get
(
'inline'
,
''
),
}
html
=
render_template
(
"optioninput.html"
,
context
)
...
...
common/lib/capa/capa/templates/textinput.html
View file @
e1c9e52f
<section
id=
"textinput_${id}"
class=
"textinput"
%
if
inline:
style=
"display:inline"
%
endif
>
<
%
doinline =
"inline"
if
inline
else
""
%
>
<section
id=
"textinput_${id}"
class=
"textinput ${doinline}"
>
% if state == 'unsubmitted':
<div
class=
"unanswered"
id=
"status_${id}"
%
if
inline:
style=
"display:inline"
%
endif
>
<div
class=
"unanswered ${doinline}"
id=
"status_${id}"
>
% elif state == 'correct':
<div
class=
"correct"
id=
"status_${id}"
%
if
inline:
style=
"display:inline"
%
endif
>
<div
class=
"correct ${doinline}"
id=
"status_${id}"
>
% elif state == 'incorrect':
<div
class=
"incorrect"
id=
"status_${id}"
%
if
inline:
style=
"display:inline"
%
endif
>
<div
class=
"incorrect ${doinline}"
id=
"status_${id}"
>
% elif state == 'incomplete':
<div
class=
"incorrect"
id=
"status_${id}"
%
if
inline:
style=
"display:inline"
%
endif
>
<div
class=
"incorrect ${doinline}"
id=
"status_${id}"
>
% endif
% if hidden:
<div
style=
"display:none;"
name=
"${hidden}"
inputid=
"input_${id}"
/>
...
...
common/lib/xmodule/xmodule/css/capa/display.scss
View file @
e1c9e52f
...
...
@@ -49,6 +49,10 @@ section.problem {
}
}
.inline
{
display
:
inline
;
}
div
{
p
{
&
.answer
{
...
...
lms/envs/dev_ike.py
View file @
e1c9e52f
...
...
@@ -18,16 +18,18 @@ MITX_FEATURES['ENABLE_DISCUSSION'] = False
MITX_FEATURES
[
'ACCESS_REQUIRE_STAFF_FOR_COURSE'
]
=
True
# require that user be in the staff_* group to be able to enroll
MITX_FEATURES
[
'DISABLE_START_DATES'
]
=
True
MITX_FEATURES
[
'USE_DJANGO_PIPELINE'
]
=
False
# don't recompile scss
#
MITX_FEATURES['USE_DJANGO_PIPELINE']=False # don't recompile scss
myhost
=
socket
.
gethostname
()
if
(
'edxvm'
in
myhost
)
or
(
'ocw'
in
myhost
):
MITX_FEATURES
[
'DISABLE_LOGIN_BUTTON'
]
=
True
# auto-login with MIT certificate
MITX_FEATURES
[
'USE_XQA_SERVER'
]
=
'https://qisx.mit.edu/xqa'
# needs to be ssl or browser blocks it
MITX_FEATURES
[
'USE_DJANGO_PIPELINE'
]
=
False
# don't recompile scss
if
(
'domU'
in
myhost
):
EMAIL_BACKEND
=
'django.core.mail.backends.smtp.EmailBackend'
MITX_FEATURES
[
'REROUTE_ACTIVATION_EMAIL'
]
=
'ichuang@mitx.mit.edu'
# nonempty string = address for all activation emails
MITX_FEATURES
[
'USE_DJANGO_PIPELINE'
]
=
False
# don't recompile scss
SECURE_PROXY_SSL_HEADER
=
(
'HTTP_X_FORWARDED_PROTOCOL'
,
'https'
)
# django 1.4 for nginx ssl proxy
...
...
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