Commit 04bb7335 by marco

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

parent 004018c1
<div class="wrapper-comp-settings" id="settings-tab"> <ul class="list-input settings-list">
<ul class="list-input settings-list"> <% _.each(metadata_entries, function(entry) { %>
<% _.each(metadata_entries, function(entry) { %> <li class="field comp-setting-entry">
<li class="field comp-setting-entry"> <div class='metadata_entry' />
<div class='metadata_entry' /> </li>
</li> <% }) %>
<% }) %> </ul>
</ul> \ No newline at end of file
</div>
\ No newline at end of file
...@@ -8,6 +8,7 @@ class CMS.Views.ModuleEdit extends Backbone.View ...@@ -8,6 +8,7 @@ class CMS.Views.ModuleEdit extends Backbone.View
"click .component-actions .edit-button": 'clickEditButton' "click .component-actions .edit-button": 'clickEditButton'
"click .component-actions .delete-button": 'onDelete' "click .component-actions .delete-button": 'onDelete'
initialize: -> initialize: ->
@onDelete = @options.onDelete @onDelete = @options.onDelete
@render() @render()
......
<%include file="metadata-edit.html" />
<div class="wrapper-comp-editor" id="editor-tab"> <div class="wrapper-comp-editor" id="editor-tab">
<section class="html-editor editor"> <section class="html-editor editor">
<ul class="editor-tabs"> <ul class="editor-tabs">
...@@ -12,3 +11,4 @@ ...@@ -12,3 +11,4 @@
</div> </div>
</section> </section>
</div> </div>
<%include file="metadata-edit.html" />
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
% if 'source_code' in json_metadata_data: % if 'source_code' in json_metadata_data:
<% del json_metadata_data['source_code'] %> <% del json_metadata_data['source_code'] %>
% endif % 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: % if showHighLevelSource:
<a href="#hls-modal-${hlskey}" style="color:yellow;" id="hls-trig-${hlskey}" >Edit High Level Source</a> <a href="#hls-modal-${hlskey}" style="color:yellow;" id="hls-trig-${hlskey}" >Edit High Level Source</a>
......
<%include file="metadata-edit.html" />
<div class="wrapper-comp-editor" id="editor-tab"> <div class="wrapper-comp-editor" id="editor-tab">
<section class="problem-editor editor"> <section class="problem-editor editor">
<div class="row"> <div class="row">
...@@ -106,4 +105,5 @@ ...@@ -106,4 +105,5 @@
</div> </div>
</article> </article>
</script> </script>
</div> </div>
\ No newline at end of file <%include file="metadata-edit.html" />
\ No newline at end of file
<%include file="metadata-edit.html" />
<div class="wrapper-comp-editor" id="editor-tab"> <div class="wrapper-comp-editor" id="editor-tab">
<section class="raw-edit"> <section class="raw-edit">
<textarea name="" class="edit-box" rows="8" cols="40">${data | h}</textarea> <textarea name="" class="edit-box" rows="8" cols="40">${data | h}</textarea>
</section> </section>
</div> </div>
<%include file="metadata-edit.html" />
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
</ul> </ul>
</section> </section>
<%include file="metadata-edit.html" />
<div class="content"> <div class="content">
<section class="modules"> <section class="modules">
<ol> <ol>
...@@ -50,5 +49,6 @@ ...@@ -50,5 +49,6 @@
</ol> </ol>
</section> </section>
</div> </div>
<%include file="metadata-edit.html" />
</section> </section>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment