'use strict'; import React from 'react'; import ApiUrls from '../../constants/api_urls'; import FormMixin from '../../mixins/form_mixin'; import InputText from './input_text'; import InputTextArea from './input_textarea'; import ButtonSubmitOrClose from './button_submit_close'; let ConsignForm = React.createClass({ mixins: [FormMixin], url() { return ApiUrls.ownership_consigns; }, getFormData() { return { bitcoin_id: this.getBitcoinIds().join(), consignee: this.refs.consignee.state.value, consign_message: this.refs.consign_message.state.value, password: this.refs.password.state.value }; }, renderForm() { let title = this.getTitlesString().join(''); let username = this.props.currentUser.username; let message = `Hi, I consign : ${title}to you. Truly yours, ${username}`; return (
); } }); export default ConsignForm;