Browse Source

added missing files per #100

bubble
Tony Tam 11 years ago
parent
commit
3f9ed33f7f
2 changed files with 27 additions and 0 deletions
  1. +19
    -0
      src/main/coffeescript/view/ContentTypeView.coffee
  2. +8
    -0
      src/main/template/content_type.handlebars

+ 19
- 0
src/main/coffeescript/view/ContentTypeView.coffee View File

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


+ 8
- 0
src/main/template/content_type.handlebars View File

@@ -0,0 +1,8 @@
{{#if supportedContentTypes}}
<label for="contentType"></label>
<select name="contentType">
{{#each supportedContentTypes}}
<option value="{{{this}}}">{{{this}}}</option>
{{/each}}
</select>
{{/if}}

Loading…
Cancel
Save