var BS, NO_PERIODS_TEXT, NoPeriods, React, _;
_ = require('underscore');
React = require('react');
BS = require('react-bootstrap');
NO_PERIODS_TEXT = 'Please add at least one period to the course.';
NoPeriods = React.createClass({displayName: "NoPeriods",
propTypes: {
noPanel: React.PropTypes.bool
},
render: function() {
var text;
text = React.createElement("span", {
"className": '-no-periods-text'
}, NO_PERIODS_TEXT);
if (this.props.noPanel) {
return text;
} else {
return React.createElement(BS.Panel, null, text);
}
}
});
module.exports = NoPeriods;
|