From 3d9961f8744a5cd570a314056dba2d5ff326b9d8 Mon Sep 17 00:00:00 2001 From: Tom Giannattasio Date: Mon, 26 Nov 2012 14:55:10 -0500 Subject: [PATCH] started adding date picker --- .../coffee/src/client_templates/course_info_update.html | 7 ++++--- cms/static/js/views/course_info_edit.js | 7 +++---- cms/templates/course_info.html | 4 ++++ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/cms/static/coffee/src/client_templates/course_info_update.html b/cms/static/coffee/src/client_templates/course_info_update.html index bc686109c2..00f8ff02c8 100644 --- a/cms/static/coffee/src/client_templates/course_info_update.html +++ b/cms/static/coffee/src/client_templates/course_info_update.html @@ -4,8 +4,9 @@
- +
+ +
@@ -16,7 +17,7 @@ Cancel
-
+
Edit Delete diff --git a/cms/static/js/views/course_info_edit.js b/cms/static/js/views/course_info_edit.js index ff266ad4f5..1efd4db026 100644 --- a/cms/static/js/views/course_info_edit.js +++ b/cms/static/js/views/course_info_edit.js @@ -36,10 +36,9 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({ // TODO Where should the template reside? how to use the static.url to create the path? "/static/coffee/src/client_templates/course_info_update.html", function (raw_template) { - console.log(raw_template); self.template = _.template(raw_template); - self.render(); - } + self.render(); + } ); }, @@ -65,7 +64,7 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({ var newForm = this.template({ updateModel : newModel }); var updateEle = this.$el.find("#course-update-list"); $(updateEle).prepend(newForm); - $(newForm).find(".new-update-form").slideDown(150); + $(newForm).find(".new-update-form").show(); }, onSave: function(event) { diff --git a/cms/templates/course_info.html b/cms/templates/course_info.html index ae0dac197e..30a12244e2 100644 --- a/cms/templates/course_info.html +++ b/cms/templates/course_info.html @@ -9,6 +9,10 @@ + + + +