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
45a1e551
Commit
45a1e551
authored
Sep 12, 2013
by
Felipe Montoya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i18n: problem submit buttons.
parent
c6f4c8b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
common/lib/xmodule/xmodule/capa_module.py
+2
-1
common/lib/xmodule/xmodule/js/fixtures/problem_content.html
+6
-6
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
45a1e551
...
...
@@ -21,6 +21,7 @@ from xmodule.exceptions import NotFoundError, ProcessingError
from
xblock.fields
import
Scope
,
String
,
Boolean
,
Dict
,
Integer
,
Float
from
.fields
import
Timedelta
,
Date
from
django.utils.timezone
import
UTC
from
django.utils.translation
import
ugettext
as
_
log
=
logging
.
getLogger
(
"mitx.courseware"
)
...
...
@@ -348,7 +349,7 @@ class CapaModule(CapaFields, XModule):
else
:
final_check
=
False
return
"Final Check"
if
final_check
else
"Check"
return
_
(
"Final Check"
)
if
final_check
else
_
(
"Check"
)
def
should_show_check_button
(
self
):
"""
...
...
common/lib/xmodule/xmodule/js/fixtures/problem_content.html
View file @
45a1e551
...
...
@@ -4,7 +4,7 @@
</section>
<section
class=
"problem"
>
<p>
Problem Content
</p>
<p>
${_("Problem Content")}
</p>
<section
class=
"action"
>
<input
type=
"hidden"
name=
"problem_id"
value=
"1"
>
...
...
@@ -13,11 +13,11 @@
<span
id=
"display_example_1"
></span>
<span
id=
"input_example_1_dynamath"
></span>
<input
class=
"check"
type=
"button"
value=
"
Check
"
>
<input
class=
"reset"
type=
"button"
value=
"
Reset
"
>
<input
class=
"save"
type=
"button"
value=
"Save
"
>
<button
class=
"show"
><span
class=
"show-label"
>
Show Answer(s)
</span>
<span
class=
"sr"
>
(for question(s) above - adjacent to each field)
</span></button>
<a
href=
"/courseware/6.002_Spring_2012/${ explain }"
class=
"new-page"
>
Explanation
</a>
<input
class=
"check"
type=
"button"
value=
"
${_('Check')}
"
>
<input
class=
"reset"
type=
"button"
value=
"
${_('Reset')}
"
>
<input
class=
"save"
type=
"button"
value=
$"${_('Save')}
"
>
<button
class=
"show"
><span
class=
"show-label"
>
${_("Show Answer(s)")}
</span>
<span
class=
"sr"
>
(for question(s) above - adjacent to each field)
</span></button>
<a
href=
"/courseware/6.002_Spring_2012/${ explain }"
class=
"new-page"
>
${_("Explanation")}
</a>
<section
class=
"submission_feedback"
></section>
</section>
</section>
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