Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
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
OpenEdx
xblock-drag-and-drop-v2
Commits
07add130
Commit
07add130
authored
Sep 23, 2016
by
Jillian Vogel
Committed by
GitHub
Sep 23, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #103 from arbrandes/OC-1883
Miscellaneous fixes
parents
d6b36969
e5eca5a2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
32 deletions
+116
-32
drag_and_drop_v2/public/css/drag_and_drop.css
+100
-13
drag_and_drop_v2/templates/html/drag_and_drop_edit.html
+2
-5
drag_and_drop_v2/templates/html/js_templates.html
+2
-2
drag_and_drop_v2/translations/en/LC_MESSAGES/text.po
+4
-4
drag_and_drop_v2/translations/eo/LC_MESSAGES/text.po
+8
-8
No files found.
drag_and_drop_v2/public/css/drag_and_drop.css
View file @
07add130
...
@@ -307,34 +307,70 @@
...
@@ -307,34 +307,70 @@
/* Font Awesome icons have different width - margin-right tries to compensate it */
/* Font Awesome icons have different width - margin-right tries to compensate it */
.xblock--drag-and-drop
.feedback
p
:before
{
.ltr
.xblock--drag-and-drop
.feedback
p
:before
,
.rtl
.xblock--drag-and-drop
.feedback
p
:after
{
content
:
"\f129"
;
content
:
"\f129"
;
font-family
:
FontAwesome
;
font-family
:
FontAwesome
;
}
.ltr
.xblock--drag-and-drop
.feedback
p
:before
{
margin-right
:
0.7em
;
margin-right
:
0.7em
;
margin-left
:
0.3em
;
margin-left
:
0.3em
;
}
}
.xblock--drag-and-drop
.feedback
p
.correct
:before
{
.rtl
.xblock--drag-and-drop
.feedback
p
:after
{
margin-left
:
0.7em
;
margin-right
:
0.3em
;
}
.ltr
.xblock--drag-and-drop
.feedback
p
.correct
:before
,
.rtl
.xblock--drag-and-drop
.feedback
p
.correct
:after
{
content
:
"\f00c"
;
content
:
"\f00c"
;
font-family
:
FontAwesome
;
font-family
:
FontAwesome
;
}
.ltr
.xblock--drag-and-drop
.feedback
p
.correct
:before
{
margin-right
:
0.3em
;
margin-right
:
0.3em
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.xblock--drag-and-drop
.feedback
p
.partial
:before
{
.rtl
.xblock--drag-and-drop
.feedback
p
.correct
:after
{
margin-left
:
0.3em
;
margin-right
:
0
;
}
.ltr
.xblock--drag-and-drop
.feedback
p
.partial
:before
,
.rtl
.xblock--drag-and-drop
.feedback
p
.partial
:after
{
content
:
"\f069"
;
content
:
"\f069"
;
font-family
:
FontAwesome
;
font-family
:
FontAwesome
;
}
.ltr
.xblock--drag-and-drop
.feedback
p
.partial
:before
{
margin-right
:
0.3em
;
margin-right
:
0.3em
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.xblock--drag-and-drop
.feedback
p
.incorrect
:before
{
.rtl
.xblock--drag-and-drop
.feedback
p
.partial
:after
{
margin-left
:
0.3em
;
margin-right
:
0
;
}
.ltr
.xblock--drag-and-drop
.feedback
p
.incorrect
:before
,
.rtl
.xblock--drag-and-drop
.feedback
p
.incorrect
:after
{
content
:
"\f00d"
;
content
:
"\f00d"
;
font-family
:
FontAwesome
;
font-family
:
FontAwesome
;
}
.ltr
.xblock--drag-and-drop
.feedback
p
.incorrect
:before
{
margin-right
:
0.45em
;
margin-right
:
0.45em
;
margin-left
:
0.1em
;
margin-left
:
0.1em
;
}
}
.rtl
.xblock--drag-and-drop
.feedback
p
.incorrect
:after
{
margin-left
:
0.45em
;
margin-right
:
0.1em
;
}
.xblock--drag-and-drop
.popup
{
.xblock--drag-and-drop
.popup
{
position
:
absolute
;
position
:
absolute
;
display
:
none
;
display
:
none
;
...
@@ -360,17 +396,30 @@
...
@@ -360,17 +396,30 @@
font-size
:
14px
;
font-size
:
14px
;
}
}
.xblock--drag-and-drop
.popup
.popup-content
img
{
max-width
:
100%
;
}
.xblock--drag-and-drop
.popup
.close-feedback-popup-button
{
.xblock--drag-and-drop
.popup
.close-feedback-popup-button
{
cursor
:
pointer
;
cursor
:
pointer
;
float
:
right
;
margin-right
:
8px
;
margin-top
:
8px
;
margin-top
:
8px
;
margin-left
:
20px
;
color
:
#ffffff
;
color
:
#ffffff
;
font-family
:
"fontawesome"
;
font-family
:
"fontawesome"
;
font-size
:
18pt
;
font-size
:
18pt
;
}
}
.ltr
.xblock--drag-and-drop
.popup
.close-feedback-popup-button
{
float
:
right
;
margin-right
:
8px
;
margin-left
:
20px
;
}
.rtl
.xblock--drag-and-drop
.popup
.close-feedback-popup-button
{
float
:
left
;
margin-right
:
20px
;
margin-left
:
8px
;
}
.xblock--drag-and-drop
.popup
.close-feedback-popup-button
:focus
{
.xblock--drag-and-drop
.popup
.close-feedback-popup-button
:focus
{
outline
:
2px
solid
white
;
outline
:
2px
solid
white
;
}
}
...
@@ -487,41 +536,79 @@
...
@@ -487,41 +536,79 @@
}
}
.xblock--drag-and-drop
.attempts-used
{
.xblock--drag-and-drop
.attempts-used
{
margin-left
:
0.675em
;
font-size
:
0.875em
;
font-size
:
0.875em
;
color
:
#666
;
color
:
#666
;
}
}
.ltr
.xblock--drag-and-drop
.attempts-used
{
margin-left
:
0.675em
;
}
.rtl
.xblock--drag-and-drop
.attempts-used
{
margin-right
:
0.675em
;
}
.xblock--drag-and-drop
.actions-toolbar
.action-toolbar-item.sidebar-buttons
{
.xblock--drag-and-drop
.actions-toolbar
.action-toolbar-item.sidebar-buttons
{
text-align
:
left
;
display
:
block
;
display
:
block
;
}
}
.ltr
.xblock--drag-and-drop
.actions-toolbar
.action-toolbar-item.sidebar-buttons
{
text-align
:
left
;
}
.rtl
.xblock--drag-and-drop
.actions-toolbar
.action-toolbar-item.sidebar-buttons
{
text-align
:
right
;
}
@media
(
min-width
:
768px
)
{
@media
(
min-width
:
768px
)
{
.xblock--drag-and-drop
.actions-toolbar
.action-toolbar-item.sidebar-buttons
{
.xblock--drag-and-drop
.actions-toolbar
.action-toolbar-item.sidebar-buttons
{
float
:
right
;
margin
:
0
;
margin
:
0
;
}
.ltr
.xblock--drag-and-drop
.actions-toolbar
.action-toolbar-item.sidebar-buttons
{
float
:
right
;
padding-right
:
-5px
;
padding-right
:
-5px
;
}
}
.rtl
.xblock--drag-and-drop
.actions-toolbar
.action-toolbar-item.sidebar-buttons
{
float
:
left
;
padding-left
:
-5px
;
}
}
}
.xblock--drag-and-drop
.sidebar-buttons
.sidebar-button-wrapper
{
.xblock--drag-and-drop
.sidebar-buttons
.sidebar-button-wrapper
{
border-right
:
1px
solid
#ddd
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
padding
:
0
5px
;
padding
:
0
5px
;
display
:
inline-block
;
display
:
inline-block
;
height
:
100%
;
height
:
100%
;
}
}
.xblock--drag-and-drop
.sidebar-buttons
.sidebar-button-wrapper
:first-child
{
.ltr
.xblock--drag-and-drop
.sidebar-buttons
.sidebar-button-wrapper
{
border-right
:
1px
solid
#ddd
;
}
.rtl
.xblock--drag-and-drop
.sidebar-buttons
.sidebar-button-wrapper
{
border-left
:
1px
solid
#ddd
;
}
.ltr
.xblock--drag-and-drop
.sidebar-buttons
.sidebar-button-wrapper
:first-child
{
padding-left
:
0
;
padding-left
:
0
;
}
}
.xblock--drag-and-drop
.sidebar-buttons
.sidebar-button-wrapper
:last-child
{
.rtl
.xblock--drag-and-drop
.sidebar-buttons
.sidebar-button-wrapper
:first-child
{
padding-right
:
0
;
}
.ltr
.xblock--drag-and-drop
.sidebar-buttons
.sidebar-button-wrapper
:last-child
{
border-right
:
none
;
border-right
:
none
;
padding-right
:
0
;
padding-right
:
0
;
}
}
.rtl
.xblock--drag-and-drop
.sidebar-buttons
.sidebar-button-wrapper
:last-child
{
border-left
:
none
;
padding-left
:
0
;
}
.xblock--drag-and-drop
.sidebar-buttons
.btn-brand
{
.xblock--drag-and-drop
.sidebar-buttons
.btn-brand
{
display
:
inline-block
;
display
:
inline-block
;
padding
:
3px
5px
;
padding
:
3px
5px
;
...
...
drag_and_drop_v2/templates/html/drag_and_drop_edit.html
View file @
07add130
...
@@ -6,9 +6,6 @@
...
@@ -6,9 +6,6 @@
<section
class=
"drag-builder"
>
<section
class=
"drag-builder"
>
<div
class=
"tab feedback-tab"
>
<div
class=
"tab feedback-tab"
>
<p
class=
"tab-content"
>
{% trans "Note: do not edit the problem if students have already completed it. Delete the problem and create a new one." %}
</p>
<section
class=
"tab-content"
>
<section
class=
"tab-content"
>
<form
class=
"feedback-form"
>
<form
class=
"feedback-form"
>
...
@@ -71,12 +68,12 @@
...
@@ -71,12 +68,12 @@
</div>
</div>
<label
class=
"h4"
>
<label
class=
"h4"
>
<span>
{% trans "Introductory
F
eedback" %}
</span>
<span>
{% trans "Introductory
f
eedback" %}
</span>
<textarea
class=
"intro-feedback"
>
{{ self.data.feedback.start }}
</textarea>
<textarea
class=
"intro-feedback"
>
{{ self.data.feedback.start }}
</textarea>
</label>
</label>
<label
class=
"h4"
>
<label
class=
"h4"
>
<span>
{% trans "Final
F
eedback" %}
</span>
<span>
{% trans "Final
f
eedback" %}
</span>
<textarea
class=
"final-feedback"
>
{{ self.data.feedback.finish }}
</textarea>
<textarea
class=
"final-feedback"
>
{{ self.data.feedback.finish }}
</textarea>
</label>
</label>
</form>
</form>
...
...
drag_and_drop_v2/templates/html/js_templates.html
View file @
07add130
...
@@ -142,13 +142,13 @@
...
@@ -142,13 +142,13 @@
<
/div
>
<
/div
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
label
class
=
"h4"
>
<
label
class
=
"h4"
>
<
span
>
{{
i18n
"Success
F
eedback"
}}
<
/span
>
<
span
>
{{
i18n
"Success
f
eedback"
}}
<
/span
>
<
textarea
class
=
"success-feedback"
>
{{
feedback
.
correct
}}
<
/textarea
>
<
textarea
class
=
"success-feedback"
>
{{
feedback
.
correct
}}
<
/textarea
>
<
/label
>
<
/label
>
<
/div
>
<
/div
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
label
class
=
"h4"
>
<
label
class
=
"h4"
>
<
span
>
{{
i18n
"Error
F
eedback"
}}
<
/span
>
<
span
>
{{
i18n
"Error
f
eedback"
}}
<
/span
>
<
textarea
class
=
"error-feedback"
>
{{
feedback
.
incorrect
}}
<
/textarea
>
<
textarea
class
=
"error-feedback"
>
{{
feedback
.
incorrect
}}
<
/textarea
>
<
/label
>
<
/label
>
<
/div
>
<
/div
>
...
...
drag_and_drop_v2/translations/en/LC_MESSAGES/text.po
View file @
07add130
...
@@ -304,11 +304,11 @@ msgid ""
...
@@ -304,11 +304,11 @@ msgid ""
msgstr ""
msgstr ""
#: templates/html/js_templates.html
#: templates/html/js_templates.html
msgid "Success
F
eedback"
msgid "Success
f
eedback"
msgstr ""
msgstr ""
#: templates/html/js_templates.html
#: templates/html/js_templates.html
msgid "Error
F
eedback"
msgid "Error
f
eedback"
msgstr ""
msgstr ""
#: templates/html/js_templates.html
#: templates/html/js_templates.html
...
@@ -340,11 +340,11 @@ msgid ""
...
@@ -340,11 +340,11 @@ msgid ""
msgstr ""
msgstr ""
#: templates/html/drag_and_drop_edit.html
#: templates/html/drag_and_drop_edit.html
msgid "Introductory
F
eedback"
msgid "Introductory
f
eedback"
msgstr ""
msgstr ""
#: templates/html/drag_and_drop_edit.html
#: templates/html/drag_and_drop_edit.html
msgid "Final
F
eedback"
msgid "Final
f
eedback"
msgstr ""
msgstr ""
#: templates/html/drag_and_drop_edit.html
#: templates/html/drag_and_drop_edit.html
...
...
drag_and_drop_v2/translations/eo/LC_MESSAGES/text.po
View file @
07add130
...
@@ -366,12 +366,12 @@ msgstr ""
...
@@ -366,12 +366,12 @@ msgstr ""
"évén ïf thé ïmägé dïd nöt löäd) Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт #"
"évén ïf thé ïmägé dïd nöt löäd) Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт #"
#: templates/html/js_templates.html
#: templates/html/js_templates.html
msgid "Success
F
eedback"
msgid "Success
f
eedback"
msgstr "Süççéss
F
éédßäçk Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αм#"
msgstr "Süççéss
f
éédßäçk Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αм#"
#: templates/html/js_templates.html
#: templates/html/js_templates.html
msgid "Error
F
eedback"
msgid "Error
f
eedback"
msgstr "Érrör
F
éédßäçk Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт#"
msgstr "Érrör
f
éédßäçk Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт#"
#: templates/html/js_templates.html
#: templates/html/js_templates.html
msgid "Show advanced settings"
msgid "Show advanced settings"
...
@@ -413,12 +413,12 @@ msgstr ""
...
@@ -413,12 +413,12 @@ msgstr ""
"thé prößlém änd çréäté ä néw öné. Ⱡ'σяєм ιρѕυм ∂σłσя ѕ#"
"thé prößlém änd çréäté ä néw öné. Ⱡ'σяєм ιρѕυм ∂σłσя ѕ#"
#: templates/html/drag_and_drop_edit.html
#: templates/html/drag_and_drop_edit.html
msgid "Introductory
F
eedback"
msgid "Introductory
f
eedback"
msgstr "Ìntrödüçtörý
F
éédßäçk Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #"
msgstr "Ìntrödüçtörý
f
éédßäçk Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #"
#: templates/html/drag_and_drop_edit.html
#: templates/html/drag_and_drop_edit.html
msgid "Final
F
eedback"
msgid "Final
f
eedback"
msgstr "Fïnäl
F
éédßäçk Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт#"
msgstr "Fïnäl
f
éédßäçk Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт#"
#: templates/html/drag_and_drop_edit.html
#: templates/html/drag_and_drop_edit.html
msgid "Background URL"
msgid "Background URL"
...
...
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