Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
ConceptXBlock
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
ConceptXBlock
Commits
364cf802
Commit
364cf802
authored
Mar 24, 2014
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Studio hacks?
parent
186a4582
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
6 deletions
+20
-6
concept/concept.py
+4
-1
concept/static/html/concept.html
+12
-0
concept/static/html/studio_hack.html
+4
-5
concept/static/js/oa_edit.js
+0
-0
concept/static/js/oa_server.js
+0
-0
No files found.
concept/concept.py
View file @
364cf802
...
...
@@ -70,7 +70,10 @@ class ConceptXBlock(XBlock):
return
frag
def
studio_view
(
self
,
context
=
None
):
return
Fragment
(
self
.
resource_string
(
"static/html/studio_hack.html"
))
frag
=
Fragment
(
self
.
resource_string
(
"static/html/studio_hack.html"
))
frag
.
add_javascript
(
pkg_resources
.
resource_string
(
__name__
,
"static/js/oa_server.js"
))
frag
.
add_javascript
(
pkg_resources
.
resource_string
(
__name__
,
"static/js/oa_edit.js"
))
return
frag
# TO-DO: change this to create the scenarios you'd like to see in the
# workbench while developing your XBlock.
...
...
concept/static/html/concept.html
View file @
364cf802
...
...
@@ -47,3 +47,15 @@ PLACEHOLDER_FOR_CONCEPT_MAP
</div>
</div>
</div>
<!-- This is a hack.
//
// Studio doesn't handle JS fragments correctly (or hardly at all) as of 3/24/2014.
// Putting them here makes it happier. But not happy :(
-->
<!--script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"/>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"/>
<script src="http://pmitros.edx.org/pmitros/concept.js"/>
<script>
</script-->
concept/static/html/studio_hack.html
View file @
364cf802
{% load i18n %}
<div
id=
"concept-edit"
>
<div
id=
"openaddeddment-edit"
>
<script
id=
"metadata-editor-tpl"
type=
"text/template"
>
<!--
empty
-->
</script>
<textarea
class=
"
concep
t-editor"
></textarea>
<input
type=
"button"
class=
"
concept-save-button"
value=
"{% trans 'Save' %}
"
/>
<input
type=
"button"
class=
"
concept-cancel-button"
value=
"{% trans 'Cancel' %}
"
/>
<textarea
class=
"
openaddeddmen
t-editor"
></textarea>
<input
type=
"button"
class=
"
openaddeddment-save-button"
value=
"Save
"
/>
<input
type=
"button"
class=
"
openaddeddment-cancel-button"
value=
"Cancel
"
/>
</div>
concept/static/js/oa_edit.js
0 → 100644
View file @
364cf802
File added
concept/static/js/oa_server.js
0 → 100644
View file @
364cf802
File added
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