Form editor
- new form with default data - load/save in form editor - widgets -> settings form - widgets -> shortcode for subscribers count - widgets -> form rendering - added useful filters to Subscribers (for status related search) - refactor & cleanup
This commit is contained in:
@ -120,14 +120,12 @@ const FormList = React.createClass({
|
||||
createForm() {
|
||||
MailPoet.Ajax.post({
|
||||
endpoint: 'forms',
|
||||
action: 'save',
|
||||
data: {
|
||||
name: "New form"
|
||||
}
|
||||
action: 'create'
|
||||
}).done(function(response) {
|
||||
window.location =
|
||||
'admin.php?page=mailpoet-form-editor&id='+ parseInt(response, 10);
|
||||
})
|
||||
if(response !== false) {
|
||||
window.location = response;
|
||||
}
|
||||
});
|
||||
},
|
||||
renderItem(form, actions) {
|
||||
let row_classes = classNames(
|
||||
|
Reference in New Issue
Block a user