| 36 | module.exports = (RequestQuoteView = (function () { |
| 37 | RequestQuoteView = class RequestQuoteView extends RootView { |
| 38 | static initClass () { |
| 39 | this.prototype.id = 'request-quote-view' |
| 40 | this.prototype.template = require('app/templates/teachers/request-quote-view') |
| 41 | this.prototype.logoutRedirectURL = null |
| 42 | |
| 43 | this.prototype.events = { |
| 44 | 'change #request-form': 'onChangeRequestForm', |
| 45 | 'submit #request-form': 'onSubmitRequestForm', |
| 46 | 'change input[name="city"]': 'invalidateNCES', |
| 47 | 'change input[name="state"]': 'invalidateNCES', |
| 48 | 'change select[name="state"]': 'invalidateNCES', |
| 49 | 'change input[name="district"]': 'invalidateNCES', |
| 50 | 'change select[name="country"]': 'onChangeCountry', |
| 51 | 'click #email-exists-login-link': 'onClickEmailExistsLoginLink', |
| 52 | 'submit #signup-form': 'onSubmitSignupForm', |
| 53 | 'click #logout-link' () { return me.logout() }, |
| 54 | 'click #google-login-button-ctav': 'onClickGPlusSignupButton', |
| 55 | 'click #facebook-signup-btn': 'onClickFacebookSignupButton', |
| 56 | 'change input[name="email"]': 'onChangeEmail', |
| 57 | 'change input[name="name"]': 'onChangeName', |
| 58 | 'click #submit-request-btn': 'onClickRequestButton' |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | getRenderData () { |
| 63 | return _.merge(super.getRenderData(...arguments), { |