'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 '../ascribe_buttons/button_submit_close'; import { getLangText } from '../../utils/lang_utils.js' let UnConsignForm = React.createClass({ mixins: [FormMixin], url() { return ApiUrls.ownership_unconsigns; }, getFormData() { return { bitcoin_id: this.getBitcoinIds().join(), unconsign_message: this.refs.unconsign_message.state.value, password: this.refs.password.state.value }; }, renderForm() { let title = this.getTitlesString().join(''); let username = this.props.currentUser.username; let message = `${getLangText('Hi')}, ${getLangText('I un-consign')}: ${title}${getLangText('from you')}. ${getLangText('Truly yours')}, ${username}`; return (
); } }); export default UnConsignForm;