Merge pull request #457 from mailpoet/forms_listing

Forms listing
This commit is contained in:
Tautvidas Sipavičius
2016-04-27 15:15:53 +03:00

View File

@ -102,14 +102,6 @@ const item_actions = [
} }
]; ];
const bulk_actions = [
{
name: 'trash',
label: MailPoet.I18n.t('trash'),
onSuccess: messages.onTrash
}
];
const FormList = React.createClass({ const FormList = React.createClass({
createForm() { createForm() {
MailPoet.Ajax.post({ MailPoet.Ajax.post({
@ -138,7 +130,10 @@ const FormList = React.createClass({
<div> <div>
<td className={ row_classes }> <td className={ row_classes }>
<strong> <strong>
<a>{ form.name }</a> <a
className="row-title"
href={ `admin.php?page=mailpoet-form-editor&id=${form.id}` }
>{ form.name }</a>
</strong> </strong>
{ actions } { actions }
</td> </td>
@ -171,7 +166,6 @@ const FormList = React.createClass({
endpoint="forms" endpoint="forms"
onRenderItem={ this.renderItem } onRenderItem={ this.renderItem }
columns={ columns } columns={ columns }
bulk_actions={ bulk_actions }
item_actions={ item_actions } item_actions={ item_actions }
/> />
</div> </div>