From cad8ae1b9ba4cc92ce6d7ad80c86a58cc5a79a36 Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 9 May 2013 14:19:31 -0400 Subject: [PATCH] merged in new data requirements for html --- .../generic_metadata_entry.html | 11 +++++++-- .../client_templates/metadata_editor.html | 16 +++++++------ cms/templates/component.html | 23 ++++++++++++++++--- cms/templates/widgets/html-edit.html | 2 ++ common/lib/xmodule/xmodule/x_module.py | 3 ++- 5 files changed, 42 insertions(+), 13 deletions(-) diff --git a/cms/static/client_templates/generic_metadata_entry.html b/cms/static/client_templates/generic_metadata_entry.html index ef65c1bf3f..42069def5e 100644 --- a/cms/static/client_templates/generic_metadata_entry.html +++ b/cms/static/client_templates/generic_metadata_entry.html @@ -1,2 +1,9 @@ - - +
+ + + + +
+'<%= model.get("help") %>' \ No newline at end of file diff --git a/cms/static/client_templates/metadata_editor.html b/cms/static/client_templates/metadata_editor.html index 9fb8cee67b..92f053ca9f 100644 --- a/cms/static/client_templates/metadata_editor.html +++ b/cms/static/client_templates/metadata_editor.html @@ -1,7 +1,9 @@ - \ No newline at end of file +
+ +
\ No newline at end of file diff --git a/cms/templates/component.html b/cms/templates/component.html index 47b4c3b384..a461f4ce06 100644 --- a/cms/templates/component.html +++ b/cms/templates/component.html @@ -1,9 +1,26 @@
-
- ${editor} -
+
+ Editing: Name of Component + + +
+
+
+ ${editor} +
+
Save Cancel diff --git a/cms/templates/widgets/html-edit.html b/cms/templates/widgets/html-edit.html index 7a9d563a57..a6df48b1c5 100644 --- a/cms/templates/widgets/html-edit.html +++ b/cms/templates/widgets/html-edit.html @@ -1,4 +1,5 @@ <%include file="metadata-edit.html" /> +
  • Visual
  • @@ -10,3 +11,4 @@
+
diff --git a/common/lib/xmodule/xmodule/x_module.py b/common/lib/xmodule/xmodule/x_module.py index 64a9eae1dd..8b5ae3e63f 100644 --- a/common/lib/xmodule/xmodule/x_module.py +++ b/common/lib/xmodule/xmodule/x_module.py @@ -652,7 +652,8 @@ class XModuleDescriptor(XModuleFields, HTMLSnippet, ResourceTemplates, XBlock): 'display_name' : field.display_name, 'default_value': field.to_json(default_value), 'inheritable': inheritable, - 'explicitly_set': explicitly_set} + 'explicitly_set': explicitly_set, + 'help': field.help} return metadata, simple_metadata