From 04bb7335e752f5d699fdcc73342f233748b2f9f3 Mon Sep 17 00:00:00 2001 From: marco Date: Fri, 10 May 2013 13:18:43 -0400 Subject: [PATCH] removed extra section heading in settings DOM, placed settings after editor --- cms/static/client_templates/metadata_editor.html | 16 +++++++--------- cms/static/coffee/src/views/module_edit.coffee | 1 + cms/templates/widgets/html-edit.html | 2 +- cms/templates/widgets/metadata-edit.html | 2 +- cms/templates/widgets/problem-edit.html | 4 ++-- cms/templates/widgets/raw-edit.html | 2 +- cms/templates/widgets/sequence-edit.html | 2 +- 7 files changed, 14 insertions(+), 15 deletions(-) diff --git a/cms/static/client_templates/metadata_editor.html b/cms/static/client_templates/metadata_editor.html index 92f053ca9f..bf618bd6f1 100644 --- a/cms/static/client_templates/metadata_editor.html +++ b/cms/static/client_templates/metadata_editor.html @@ -1,9 +1,7 @@ -
- -
\ No newline at end of file + \ No newline at end of file diff --git a/cms/static/coffee/src/views/module_edit.coffee b/cms/static/coffee/src/views/module_edit.coffee index eeda00638a..8a6db67e3a 100644 --- a/cms/static/coffee/src/views/module_edit.coffee +++ b/cms/static/coffee/src/views/module_edit.coffee @@ -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() diff --git a/cms/templates/widgets/html-edit.html b/cms/templates/widgets/html-edit.html index 7c4a1bde7b..17f86a89dc 100644 --- a/cms/templates/widgets/html-edit.html +++ b/cms/templates/widgets/html-edit.html @@ -1,4 +1,3 @@ -<%include file="metadata-edit.html" />
    @@ -12,3 +11,4 @@
+<%include file="metadata-edit.html" /> diff --git a/cms/templates/widgets/metadata-edit.html b/cms/templates/widgets/metadata-edit.html index c1e2654724..8367011c42 100644 --- a/cms/templates/widgets/metadata-edit.html +++ b/cms/templates/widgets/metadata-edit.html @@ -8,7 +8,7 @@ % if 'source_code' in json_metadata_data: <% del json_metadata_data['source_code'] %> % endif -
+ +<%include file="metadata-edit.html" /> \ No newline at end of file diff --git a/cms/templates/widgets/raw-edit.html b/cms/templates/widgets/raw-edit.html index be41fad887..2b1b0f9ef3 100644 --- a/cms/templates/widgets/raw-edit.html +++ b/cms/templates/widgets/raw-edit.html @@ -1,6 +1,6 @@ -<%include file="metadata-edit.html" />
+<%include file="metadata-edit.html" /> diff --git a/cms/templates/widgets/sequence-edit.html b/cms/templates/widgets/sequence-edit.html index c70f2568fa..7956fbfbaf 100644 --- a/cms/templates/widgets/sequence-edit.html +++ b/cms/templates/widgets/sequence-edit.html @@ -29,7 +29,6 @@
- <%include file="metadata-edit.html" />
    @@ -50,5 +49,6 @@
+ <%include file="metadata-edit.html" />