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
643041bf
Commit
643041bf
authored
May 05, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #27 from aboudreault/studio-template-html-change
Modified the studio edit view to work with latest changes
parents
f384e52d
66236e47
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 @
643041bf
...
...
@@ -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 @
643041bf
{% load i18n %}
<!-- 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"
>
<script
id=
"metadata-editor-tpl"
type=
"text/template"
>
// JS crashes when empty //
</script>
<textarea
class=
"block-xml-editor"
>
{{ xml_content }}
</textarea>
</div>
<div
class=
"row module-actions"
>
<a
href=
"#"
class=
"save-button action-primary action"
>
Save
</a>
<a
href=
"#"
class=
"cancel-button action-secondary action"
>
Cancel
</a>
<div
class=
"xblock-actions"
>
<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>
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