var React = require('react/addons') var ReactRouter = require('react-router') var CodeEditor = require('./CodeEditor') var Catalyst = require('../Mixins/Catalyst') var Select = require('react-select') var PlanetStore = require('../Stores/PlanetStore') var SnippetForm = require('./SnippetForm') var options = [ { value: 'one', label: 'One' }, { value: 'two', label: 'Two' } ] var BlueprintForm = React.createClass({ mixins: [Catalyst.LinkedStateMixin, ReactRouter.State], propTypes: { close: React.PropTypes.func }, getInitialState: function () { return { blueprint: { title: '', content: '', Tags: [] } } }, componentDidMount: function () { React.findDOMNode(this.refs.title).focus() }, handleBlueprintTagsChange: function (selected, all) { var blueprint = this.state.blueprint blueprint.Tags = all this.setState({blueprint: blueprint}) }, handleBlueprintContentChange: function (e, value) { var blueprint = this.state.blueprint blueprint.content = value this.setState({blueprint: blueprint}) }, submit: function () { console.log(this.state.blueprint) }, render: function () { return (