Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
7ccb4597
Commit
7ccb4597
authored
May 15, 2017
by
Awais
Committed by
Awais Qureshi
May 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing bug.
ECOM-7778
parent
b58e40f0
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
38 additions
and
29 deletions
+38
-29
course_discovery/conf/locale/en/LC_MESSAGES/django.mo
+0
-0
course_discovery/conf/locale/en/LC_MESSAGES/django.po
+6
-6
course_discovery/conf/locale/en/LC_MESSAGES/djangojs.mo
+0
-0
course_discovery/conf/locale/en/LC_MESSAGES/djangojs.po
+2
-2
course_discovery/conf/locale/eo/LC_MESSAGES/django.mo
+0
-0
course_discovery/conf/locale/eo/LC_MESSAGES/django.po
+8
-8
course_discovery/conf/locale/eo/LC_MESSAGES/djangojs.mo
+0
-0
course_discovery/conf/locale/eo/LC_MESSAGES/djangojs.po
+2
-2
course_discovery/static/js/publisher/course-edit-history-compare.js
+10
-10
course_discovery/templates/publisher/course_edit_form.html
+10
-1
No files found.
course_discovery/conf/locale/en/LC_MESSAGES/django.mo
View file @
7ccb4597
No preview for this file type
course_discovery/conf/locale/en/LC_MESSAGES/django.po
View file @
7ccb4597
...
...
@@ -7,14 +7,14 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-15 1
2:57
+0500\n"
"POT-Creation-Date: 2017-05-15 1
9:22
+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
#: apps/api/filters.py
#, python-brace-format
...
...
@@ -1634,6 +1634,10 @@ msgid "Sequence Courses:"
msgstr ""
#: templates/publisher/course_edit_form.html
msgid "255 character limit, including spaces."
msgstr ""
#: templates/publisher/course_edit_form.html
msgid "BIO1.1x, BIO1.2x"
msgstr ""
...
...
@@ -1668,10 +1672,6 @@ msgid ""
msgstr ""
#: templates/publisher/course_edit_form.html
msgid "255 character limit, including spaces."
msgstr ""
#: templates/publisher/course_edit_form.html
msgid "LONG DESCRIPTION"
msgstr ""
...
...
course_discovery/conf/locale/en/LC_MESSAGES/djangojs.mo
View file @
7ccb4597
No preview for this file type
course_discovery/conf/locale/en/LC_MESSAGES/djangojs.po
View file @
7ccb4597
...
...
@@ -7,14 +7,14 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-15 1
2:57
+0500\n"
"POT-Creation-Date: 2017-05-15 1
9:22
+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
#: static/js/catalogs-change-form.js
msgid "Preview"
...
...
course_discovery/conf/locale/eo/LC_MESSAGES/django.mo
View file @
7ccb4597
No preview for this file type
course_discovery/conf/locale/eo/LC_MESSAGES/django.po
View file @
7ccb4597
...
...
@@ -7,14 +7,14 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-15 1
2:57
+0500\n"
"POT-Creation-Date: 2017-05-15 1
9:22
+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: apps/api/filters.py
...
...
@@ -1907,6 +1907,12 @@ msgid "Sequence Courses:"
msgstr "Séqüénçé Çöürsés: Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмє#"
#: templates/publisher/course_edit_form.html
msgid "255 character limit, including spaces."
msgstr ""
"255 çhäräçtér lïmït, ïnçlüdïng späçés. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, "
"¢σηѕє¢тєтυя#"
#: templates/publisher/course_edit_form.html
msgid "BIO1.1x, BIO1.2x"
msgstr "BÌÖ1.1x, BÌÖ1.2x Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αм#"
...
...
@@ -1945,12 +1951,6 @@ msgstr ""
"änd präçtïçés för ä häppý, méänïngfül lïfé. Ⱡ'σяєм ιρѕυм#"
#: templates/publisher/course_edit_form.html
msgid "255 character limit, including spaces."
msgstr ""
"255 çhäräçtér lïmït, ïnçlüdïng späçés. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, "
"¢σηѕє¢тєтυя#"
#: templates/publisher/course_edit_form.html
msgid "LONG DESCRIPTION"
msgstr "LÖNG DÉSÇRÌPTÌÖN Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αм#"
...
...
course_discovery/conf/locale/eo/LC_MESSAGES/djangojs.mo
View file @
7ccb4597
No preview for this file type
course_discovery/conf/locale/eo/LC_MESSAGES/djangojs.po
View file @
7ccb4597
...
...
@@ -7,14 +7,14 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-15 1
2:57
+0500\n"
"POT-Creation-Date: 2017-05-15 1
9:22
+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: static/js/catalogs-change-form.js
...
...
course_discovery/static/js/publisher/course-edit-history-compare.js
View file @
7ccb4597
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
'.history'
).
each
(
function
()
{
var
dmp
=
new
diff_match_patch
();
var
element_id
=
this
.
id
.
split
(
'_revision'
)[
0
];
if
(
$
(
'#id_history_revision'
).
val
()
>
0
)
{
var
dmp
=
new
diff_match_patch
();
var
element_id
=
this
.
id
.
split
(
'_revision'
)[
0
];
var
current_course_object
=
$
(
'#'
+
element_id
).
val
();
var
history_object_value
=
$
(
this
).
val
().
trim
();
var
d
=
dmp
.
diff_main
(
history_object_value
,
current_course_object
);
dmp
.
diff_cleanupEfficiency
(
d
)
tinymce
.
get
(
element_id
).
setContent
(
decodeEntities
(
dmp
.
diff_prettyHtml
(
d
)))
var
current_course_object
=
$
(
'#'
+
element_id
).
val
();
var
history_object_value
=
$
(
this
).
val
().
trim
();
var
d
=
dmp
.
diff_main
(
history_object_value
,
current_course_object
);
dmp
.
diff_cleanupEfficiency
(
d
)
tinymce
.
get
(
element_id
).
setContent
(
decodeEntities
(
dmp
.
diff_prettyHtml
(
d
)))
}
});
});
...
...
@@ -18,4 +19,3 @@ function decodeEntities(encodedString) {
textArea
.
innerHTML
=
encodedString
;
return
textArea
.
value
;
}
course_discovery/templates/publisher/course_edit_form.html
View file @
7ccb4597
...
...
@@ -31,6 +31,7 @@
{% trans "All required fields must be complete before this course can be sent for review." %}
</p>
<form
class=
"form"
method=
"post"
action=
""
enctype=
"multipart/form-data"
>
{% csrf_token %}
<input
id=
"id_history_revision"
type=
"hidden"
value=
"{{ history_object.id }}"
>
<div
class=
"layout-full layout"
>
<div
class=
"course-form"
>
<div
class=
"course-information"
>
...
...
@@ -94,8 +95,16 @@
<label
class=
"field-label "
>
{{ form.title.label }}
</label>
<input
id=
"id_title_revision"
type=
"
text
"
value=
"{{ history_object.title }}"
class=
"history"
>
<input
id=
"id_title_revision"
type=
"
hidden
"
value=
"{{ history_object.title }}"
class=
"history"
>
{{ form.title }}
<p>
{% trans "255 character limit, including spaces." %}
</p>
{% if form.title.errors %}
<div
class=
"field-message has-error"
>
<span
class=
"field-message-content"
>
{{ form.title.errors|escape }}
</span>
</div>
{% endif %}
</div>
</div>
<div
class=
"field-title"
>
{% trans "COURSE NUMBER" %}
</div>
...
...
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