Warn user when going to XML Editor. Cleanup and comments.

This commit is contained in:
cahrens
2013-01-09 09:39:46 -05:00
parent c7feee5b67
commit b97955965a
2 changed files with 61 additions and 27 deletions

View File

@@ -1,7 +1,6 @@
<%include file="metadata-edit.html" />
<section class="problem-editor editor">
<div class="row">
%if markdown != '' or data == '<problem>\n</problem>\n':
<div class="editor-bar">
<ul class="format-buttons">
<li><a href="#" class="multiple-choice-button" data-tooltip="Multiple Choice"><span
@@ -16,11 +15,11 @@
class="problem-editor-icon dropdown"></span></a></li>
</ul>
<ul class="editor-tabs">
<li><a href="#" class="simple-tab tab current" data-tab="simple">Simple</a></li>
<li><a href="#" class="xml-tab tab" data-tab="xml">XML</a></li>
<li><a href="#" class="xml-tab tab" data-tab="xml">Edit Source XML</a></li>
<li><a href="#" class="cheatsheet-toggle" data-tooltip="Toggle Cheatsheet">?</a></li>
</ul>
</div>
%if markdown != '' or data == '<problem>\n</problem>\n':
<textarea class="markdown-box">${markdown}</textarea>
%endif
<textarea class="xml-box" rows="8" cols="40">${data | h}</textarea>