added missing files per #100
This commit is contained in:
19
src/main/coffeescript/view/ContentTypeView.coffee
Normal file
19
src/main/coffeescript/view/ContentTypeView.coffee
Normal 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
src/main/template/content_type.handlebars
Normal file
8
src/main/template/content_type.handlebars
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{{#if supportedContentTypes}}
|
||||||
|
<label for="contentType"></label>
|
||||||
|
<select name="contentType">
|
||||||
|
{{#each supportedContentTypes}}
|
||||||
|
<option value="{{{this}}}">{{{this}}}</option>
|
||||||
|
{{/each}}
|
||||||
|
</select>
|
||||||
|
{{/if}}
|
||||||
Reference in New Issue
Block a user