removed extra section heading in settings DOM, placed settings after editor

This commit is contained in:
marco
2013-05-10 13:18:43 -04:00
parent 004018c1eb
commit 04bb7335e7
7 changed files with 14 additions and 15 deletions

View File

@@ -1,9 +1,7 @@
<div class="wrapper-comp-settings" id="settings-tab">
<ul class="list-input settings-list">
<% _.each(metadata_entries, function(entry) { %>
<li class="field comp-setting-entry">
<div class='metadata_entry' />
</li>
<% }) %>
</ul>
</div>
<ul class="list-input settings-list">
<% _.each(metadata_entries, function(entry) { %>
<li class="field comp-setting-entry">
<div class='metadata_entry' />
</li>
<% }) %>
</ul>

View File

@@ -8,6 +8,7 @@ class CMS.Views.ModuleEdit extends Backbone.View
"click .component-actions .edit-button": 'clickEditButton'
"click .component-actions .delete-button": 'onDelete'
initialize: ->
@onDelete = @options.onDelete
@render()

View File

@@ -1,4 +1,3 @@
<%include file="metadata-edit.html" />
<div class="wrapper-comp-editor" id="editor-tab">
<section class="html-editor editor">
<ul class="editor-tabs">
@@ -12,3 +11,4 @@
</div>
</section>
</div>
<%include file="metadata-edit.html" />

View File

@@ -8,7 +8,7 @@
% if 'source_code' in json_metadata_data:
<% del json_metadata_data['source_code'] %>
% endif
<section class="metadata_edit" data-metadata='${json.dumps(json_metadata_data)}'/>
<div class="wrapper-comp-settings metadata_edit" id="settings-tab" data-metadata='${json.dumps(json_metadata_data)}'/>
% if showHighLevelSource:
<a href="#hls-modal-${hlskey}" style="color:yellow;" id="hls-trig-${hlskey}" >Edit High Level Source</a>

View File

@@ -1,4 +1,3 @@
<%include file="metadata-edit.html" />
<div class="wrapper-comp-editor" id="editor-tab">
<section class="problem-editor editor">
<div class="row">
@@ -106,4 +105,5 @@
</div>
</article>
</script>
</div>
</div>
<%include file="metadata-edit.html" />

View File

@@ -1,6 +1,6 @@
<%include file="metadata-edit.html" />
<div class="wrapper-comp-editor" id="editor-tab">
<section class="raw-edit">
<textarea name="" class="edit-box" rows="8" cols="40">${data | h}</textarea>
</section>
</div>
<%include file="metadata-edit.html" />

View File

@@ -29,7 +29,6 @@
</ul>
</section>
<%include file="metadata-edit.html" />
<div class="content">
<section class="modules">
<ol>
@@ -50,5 +49,6 @@
</ol>
</section>
</div>
<%include file="metadata-edit.html" />
</section>