ensl_gathers/app/javascripts/components/settings.js

51 lines
1.6 KiB
JavaScript
Raw Normal View History

2016-01-22 10:12:23 +00:00
const React = require("react");
2015-10-30 10:57:23 +00:00
2016-01-26 10:44:34 +00:00
const SettingsPanel = exports.SettingsPanel = React.createClass({
propTypes: {
toggleUpdateTitle: React.PropTypes.func.isRequired,
updateTitle: React.PropTypes.bool.isRequired,
toggleEventsPanel: React.PropTypes.func.isRequired,
showEventsPanel: React.PropTypes.bool.isRequired
},
2015-10-30 10:57:23 +00:00
render() {
return (
2016-01-02 21:32:26 +00:00
<div className="modal fade" id="settingsmodal">
<div className="modal-dialog">
<div className="modal-content">
<div className="modal-header">
<button type="button" className="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 className="modal-title">Settings</h4>
</div>
<div className="modal-body">
<div className="checkbox">
<label className="checkbox-inline">
<input type="checkbox"
onChange={this.props.toggleUpdateTitle}
checked={this.props.updateTitle}/> Update Gather Status in Title (Cabooble Mode) - May require refresh
</label>
</div>
</div>
<div className="modal-body">
<div className="checkbox">
<label className="checkbox-inline">
<input type="checkbox"
onChange={this.props.toggleEventsPanel}
checked={this.props.showEventsPanel}/> Show events panel
</label>
</div>
</div>
<div className="modal-footer">
<button type="button" className="btn btn-default"
data-dismiss="modal">Close</button>
2015-10-30 10:57:23 +00:00
</div>
</div>
</div>
</div>
2016-01-02 21:32:26 +00:00
);
}
});