Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
problem-builder
Commits
66236e47
Commit
66236e47
authored
Apr 25, 2014
by
Alan Boudreault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified the studio edit view to work with latest changes
parent
f8c997e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
mentoring/public/js/mentoring_edit.js
+4
-0
mentoring/templates/html/mentoring_edit.html
+13
-5
No files found.
mentoring/public/js/mentoring_edit.js
View file @
66236e47
...
@@ -17,4 +17,8 @@ function MentoringEditBlock(runtime, element) {
...
@@ -17,4 +17,8 @@ function MentoringEditBlock(runtime, element) {
}
}
});
});
});
});
$
(
'.cancel-button'
,
element
).
bind
(
'click'
,
function
()
{
runtime
.
notify
(
'cancel'
,
{});
});
}
}
mentoring/templates/html/mentoring_edit.html
View file @
66236e47
{% load i18n %}
<!-- TODO: Replace by default edit view once available in Studio -->
<!-- TODO: Replace by default edit view once available in Studio -->
<div
class=
"mentoring-edit"
>
<div
class=
"mentoring-edit
editor-with-buttons
"
>
<div
class=
"wrapper-comp-settings is-active"
id=
"settings-tab"
>
<div
class=
"wrapper-comp-settings is-active"
id=
"settings-tab"
>
<script
id=
"metadata-editor-tpl"
type=
"text/template"
>
// JS crashes when empty //
</script>
<textarea
class=
"block-xml-editor"
>
{{ xml_content }}
</textarea>
<textarea
class=
"block-xml-editor"
>
{{ xml_content }}
</textarea>
</div>
</div>
<div
class=
"row module-actions"
>
<div
class=
"xblock-actions"
>
<a
href=
"#"
class=
"save-button action-primary action"
>
Save
</a>
<a
href=
"#"
class=
"cancel-button action-secondary action"
>
Cancel
</a>
<span
class=
"error-message"
></span>
<span
class=
"error-message"
></span>
<ul>
<li
class=
"action-item"
>
<a
href=
"#"
class=
"button action-primary save-button"
>
{% trans "Save" %}
</a>
</li>
<li
class=
"action-item"
>
<a
href=
"#"
class=
"button cancel-button"
>
{% trans "Cancel" %}
</a>
</li>
</ul>
</div>
</div>
</div>
</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