},
'label': {
title: ts('Field Label'),
- type: 'Text'
+ type: 'Text',
+ editorAttrs: {maxlength: 255}
},
'location_type_id': {
title: ts('Location Type'),
title: ts('Profile Name'),
help: ts(''),
type: 'Text',
+ editorAttrs: {maxlength: 64},
validators: ['required']
},
'group_type': {
return _.omit(ufFieldModel.toStrictJSON(), ['id', 'uf_group_id']);
})
);
- copy.set('title', ts('%1 (Copy)', {
- 1: copy.get('title')
- }));
+ var copyLabel = ' ' + ts('(Copy)');
+ copy.set('title', copy.get('title').slice(0, 64 - copyLabel.length) + copyLabel);
return copy;
},
getModelClass: function(entity_name) {