codecombat/app/views/TeachersView.coffee

19 lines
550 B
CoffeeScript
Raw Normal View History

AuthModal = require 'views/core/AuthModal'
RootView = require 'views/core/RootView'
2014-01-03 13:32:13 -05:00
template = require 'templates/teachers'
module.exports = class TeachersView extends RootView
2014-06-30 22:16:26 -04:00
id: 'teachers-view'
2014-01-03 13:32:13 -05:00
template: template
events:
'click .btn-create-account': 'onClickSignup'
'click .btn-login-account': 'onClickLogin'
'click .link-register': 'onClickSignup'
onClickLogin: (e) ->
@openModalView new AuthModal(mode: 'login') if me.get('anonymous')
onClickSignup: (e) ->
@openModalView new AuthModal() if me.get('anonymous')