Explorar el Código

added missing files per #100

bubble
Tony Tam hace 11 años
padre
commit
3f9ed33f7f
Se han modificado 2 ficheros con 27 adiciones y 0 borrados
  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 Ver fichero

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

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

Cargando…
Cancelar
Guardar