import fetch from 'isomorphic-fetch'; 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 TransferForm = React.createClass({ mixins: [FormMixin], url() { return ApiUrls.ownership_transfers }, getFormData() { return { bitcoin_id: this.props.edition.bitcoin_id, transferee: this.refs.transferee.state.value, transfer_message: this.refs.transfer_message.state.value, password: this.refs.password.state.value } }, renderForm() { let message = "Hi,\n" + "\n" + "I transfer ownership of \"" + this.props.edition.title + "\" to you.\n" + "\n" + "Truly yours,\n" + this.props.currentUser.username; return (
Make sure that display instructions and technology details are correct. They cannot be edited after the transfer.
); } }); export default TransferForm;