2014-11-28 20:49:41 -05:00
|
|
|
ModalView = require 'views/core/ModalView'
|
2014-11-29 18:31:34 -05:00
|
|
|
template = require 'templates/account/job-profile-code-modal'
|
2014-07-17 12:12:21 -04:00
|
|
|
LevelSessionCodeView = require 'views/common/LevelSessionCodeView'
|
|
|
|
|
|
|
|
module.exports = class JobProfileCodeModal extends ModalView
|
2014-11-29 18:31:34 -05:00
|
|
|
id: 'job-profile-code-modal'
|
2014-07-17 12:12:21 -04:00
|
|
|
template: template
|
|
|
|
modalWidthPercent: 90
|
|
|
|
plain: true
|
|
|
|
|
|
|
|
constructor: (options) ->
|
|
|
|
super(arguments...)
|
|
|
|
@session = options.session
|
|
|
|
|
|
|
|
getRenderData: ->
|
|
|
|
c = super()
|
|
|
|
c.session = @session
|
|
|
|
c
|
|
|
|
|
|
|
|
afterRender: ->
|
|
|
|
super()
|
|
|
|
codeView = new LevelSessionCodeView({session:@session})
|
|
|
|
@insertSubView(codeView, @$el.find('.level-session-code-view'))
|
|
|
|
|