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}}