ソースを参照

added missing files per #100

bubble
Tony Tam 11年前
コミット
3f9ed33f7f
2個のファイルの変更27行の追加0行の削除
  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 ファイルの表示

@@ -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 ファイルの表示

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

読み込み中…
キャンセル
保存