2015-11-29 07:02:45 -08:00
|
|
|
AuthModal = require 'views/core/AuthModal'
|
2014-11-28 17:49:41 -08:00
|
|
|
RootView = require 'views/core/RootView'
|
2014-01-03 10:32:13 -08:00
|
|
|
template = require 'templates/teachers'
|
|
|
|
|
2014-07-17 17:16:32 -07:00
|
|
|
module.exports = class TeachersView extends RootView
|
2014-07-01 10:16:26 +08:00
|
|
|
id: 'teachers-view'
|
2014-01-03 10:32:13 -08:00
|
|
|
template: template
|
2015-11-29 07:02:45 -08:00
|
|
|
|
|
|
|
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')
|