From 3f9ed33f7fc0972f8a0a1a983acbfd133ae53141 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Mon, 26 Nov 2012 13:47:34 -0800 Subject: [PATCH] added missing files per #100 --- .../coffeescript/view/ContentTypeView.coffee | 19 +++++++++++++++++++ src/main/template/content_type.handlebars | 8 ++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/main/coffeescript/view/ContentTypeView.coffee create mode 100644 src/main/template/content_type.handlebars diff --git a/src/main/coffeescript/view/ContentTypeView.coffee b/src/main/coffeescript/view/ContentTypeView.coffee new file mode 100644 index 00000000..7b0d38f7 --- /dev/null +++ b/src/main/coffeescript/view/ContentTypeView.coffee @@ -0,0 +1,19 @@ +class ContentTypeView extends Backbone.View + initialize: -> + + render: -> + template = @template() + $(@el).html(template(@model)) + + @isParam = @model.isParam + + if @isParam + $('label[for=contentType]', $(@el)).text('Parameter content type:') + else + $('label[for=contentType]', $(@el)).text('Response Content Type') + + @ + + template: -> + Handlebars.templates.content_type + diff --git a/src/main/template/content_type.handlebars b/src/main/template/content_type.handlebars new file mode 100644 index 00000000..0ecd1b56 --- /dev/null +++ b/src/main/template/content_type.handlebars @@ -0,0 +1,8 @@ +{{#if supportedContentTypes}} + + +{{/if}}