ensl_gathers/app/javascripts/components/settings.js
2016-04-19 00:59:05 +01:00

50 lines
1.6 KiB
JavaScript

const React = require("react");
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
},
render() {
return (
<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>
</div>
</div>
</div>
</div>
);
}
});