mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
18 lines
550 B
CoffeeScript
18 lines
550 B
CoffeeScript
AuthModal = require 'views/core/AuthModal'
|
|
RootView = require 'views/core/RootView'
|
|
template = require 'templates/teachers'
|
|
|
|
module.exports = class TeachersView extends RootView
|
|
id: 'teachers-view'
|
|
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')
|