codecombat/app/views/account/PaymentsView.coffee
2014-11-25 11:09:29 -08:00

18 lines
No EOL
532 B
CoffeeScript

RootView = require 'views/kinds/RootView'
template = require 'templates/account/payments-view'
CocoCollection = require 'collections/CocoCollection'
Payment = require 'models/Payment'
module.exports = class PaymentsView extends RootView
id: "payments-view"
template: template
constructor: (options) ->
super(options)
@payments = new CocoCollection([], { url: '/db/payment', model: Payment })
@supermodel.loadCollection(@payments, 'payments')
getRenderData: ->
c = super()
c.payments = @payments
c