CustomFields

- renamed form block type "input" to "text" for consistency with React
- updated CustomFields router to comply with main router
- unit tests for CF router
This commit is contained in:
Jonathan Labreuille
2016-01-29 17:14:01 +01:00
parent 24f96d9d7d
commit bb1cc997cc
11 changed files with 146 additions and 28 deletions

View File

@ -53,10 +53,6 @@ define(
var custom_fields = window.mailpoet_custom_fields || [];
custom_fields.map(custom_field => {
if(custom_field.type === 'input') {
custom_field.type = 'text';
}
let field = {
name: 'cf_' + custom_field.id,
label: custom_field.name,