 Modal = require('react-bootstrap/lib/Modal')
 Button = require('react-bootstrap/lib/Button')
 TagsInput = require('react-tagsinput')
+CardModel = require('../models/card')
 
 module.exports = React.createClass
   mixins: [React.addons.LinkedStateMixin]

              }
              </ul>
            </div>
        }
        <div className="form-group">
          <label class="control-label">Title</label>

    @props.card.save attributes,
      success: ()=>
        @setState updating: false
        if @props.card.isNew()
          if @state.dontCloseDialog
            @setState
              createSuccess: true
              title: ''
              content: ''
              tags: []
            @props.card = new CardModel()
            @props.card._isNew = true
          else
            @props.onRequestHide()
            @props.card.set 'title', @state.title
            location.hash = '/' + @state.title
      error: (model, response, options)=>
        console.log response.responseJSON
        @setState errors: response.responseJSON.card.errors
