added separate request and response templates
This commit is contained in:
14
src/main/coffeescript/view/ParameterContentTypeView.coffee
Normal file
14
src/main/coffeescript/view/ParameterContentTypeView.coffee
Normal file
@@ -0,0 +1,14 @@
|
||||
class ParameterContentTypeView extends Backbone.View
|
||||
initialize: ->
|
||||
|
||||
render: ->
|
||||
template = @template()
|
||||
$(@el).html(template(@model))
|
||||
|
||||
$('label[for=parameterContentType]', $(@el)).text('Parameter content type:')
|
||||
|
||||
@
|
||||
|
||||
template: ->
|
||||
Handlebars.templates.parameter_content_type
|
||||
|
||||
14
src/main/coffeescript/view/ResponseContentTypeView.coffee
Normal file
14
src/main/coffeescript/view/ResponseContentTypeView.coffee
Normal file
@@ -0,0 +1,14 @@
|
||||
class ResponseContentTypeView extends Backbone.View
|
||||
initialize: ->
|
||||
|
||||
render: ->
|
||||
template = @template()
|
||||
|
||||
$(@el).html(template(@model))
|
||||
|
||||
$('label[for=responseContentType]', $(@el)).text('Response Content Type')
|
||||
|
||||
@
|
||||
|
||||
template: ->
|
||||
Handlebars.templates.response_content_type
|
||||
Reference in New Issue
Block a user