Commit 049fe8b8 by Pavel Yushchenko

fixes cms registration, added tabs localization

parent 18e9b4ce
...@@ -16,6 +16,9 @@ from xmodule.modulestore.django import modulestore ...@@ -16,6 +16,9 @@ from xmodule.modulestore.django import modulestore
from ..utils import get_course_for_item, get_modulestore from ..utils import get_course_for_item, get_modulestore
from .access import get_location_and_verify_access from .access import get_location_and_verify_access
from django.utils.translation import ugettext as _
__all__ = ['edit_tabs', 'reorder_static_tabs', 'static_pages'] __all__ = ['edit_tabs', 'reorder_static_tabs', 'static_pages']
...@@ -30,11 +33,11 @@ def initialize_course_tabs(course): ...@@ -30,11 +33,11 @@ def initialize_course_tabs(course):
# This logic is repeated in xmodule/modulestore/tests/factories.py # This logic is repeated in xmodule/modulestore/tests/factories.py
# so if you change anything here, you need to also change it there. # so if you change anything here, you need to also change it there.
course.tabs = [{"type": "courseware"}, course.tabs = [{"type": "courseware", "name": _("Courseware")},
{"type": "course_info", "name": "Course Info"}, {"type": "course_info", "name": _("Course Info")},
{"type": "discussion", "name": "Discussion"}, {"type": "discussion", "name": _("Discussion")},
{"type": "wiki", "name": "Wiki"}, {"type": "wiki", "name": _("Wiki")},
{"type": "progress", "name": "Progress"}] {"type": "progress", "name": _("Progress")}]
modulestore('direct').update_metadata(course.location.url(), own_metadata(course)) modulestore('direct').update_metadata(course.location.url(), own_metadata(course))
......
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
</li> </li>
<li class="field text" id="field-work-managing-experience"> <li class="field text" id="field-work-managing-experience">
<label for="work-managing-experience">${_('Managing experience at educational institution')}</label> <label for="work-managing-experience">${_('Managing experience at educational institution')}</label>
<input id="work-managing-experience" type="text" name="work-managing-experience" value="" required aria-required="true" /> <input id="work-managing-experience" type="text" name="work_managing_experience" value="" required aria-required="true" />
</li> </li>
<li class="field select" id="field-work-qualification-category"> <li class="field select" id="field-work-qualification-category">
<label for="work-qualification-category">${_("Qualification category")}</label> <label for="work-qualification-category">${_("Qualification category")}</label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment