'use strict'; import React from 'react'; import requests from '../../utils/requests'; import ApiUrls from '../../constants/api_urls'; import FormMixin from '../../mixins/form_mixin'; import { getLangText } from '../../utils/lang_utils'; let PieceDeleteForm = React.createClass({ propTypes: { pieceId: React.PropTypes.number }, mixins: [FormMixin], url() { return requests.prepareUrl(ApiUrls.piece, {piece_id: this.props.pieceId}); }, httpVerb() { return 'delete'; }, renderForm () { return (
{getLangText('Are you sure you would like to permanently delete this piece')}?
{getLangText('This is an irrevocable action%s', '.')}