trc-client-core
Version:
The core of the TRC Client
30 lines (28 loc) • 1.14 kB
JSX
var React = require('react');
var UserStore = require('../user/UserStore');
var ToyotaLinkQandaSidebarView = React.createClass({
displayName: 'ToyotaLinkQandaSidebarView',
propTypes: {
tags: React.PropTypes.array
},
render: function() {
return (
<div>
{this.renderAskForm()}
</div>
);
},
renderAskForm: function () {
if(UserStore.isDepartment('sales')) {
return <div className="row-bottom">
<h2 className="hug-top">{"Got a Question for the Product Team?"}</h2>
<form action='/product/qanda/askQuestion' method='post' className="p">
<textarea className="Textarea" name="questionContent"></textarea>
<button className="Button w100" type="submit">Ask</button>
</form>
<p className="t-muted"><em>* Please Note, questions regarding pricing, future activity or sensitive content may not be able to be responded to.</em></p>
</div>;
}
}
});
module.exports = ToyotaLinkQandaSidebarView;