2020-10-19 14:48:21 +02:00
|
|
|
|
2021-12-21 13:58:48 +01:00
|
|
|
import { ZeroEditor } from "../../../editor/editor";
|
2021-12-21 14:41:50 +01:00
|
|
|
import { formatDate } from '../../../utils/dates';
|
2020-10-19 14:48:21 +02:00
|
|
|
|
2021-12-22 10:55:40 +01:00
|
|
|
const editor = new ZeroEditor('countries');
|
2021-12-09 10:51:10 +01:00
|
|
|
|
2021-12-21 13:58:48 +01:00
|
|
|
editor.resourcePrefix = '@country.fields.';
|
|
|
|
|
|
2021-12-21 00:53:17 +01:00
|
|
|
editor.field('name').text({ maxLength: 120 });
|
|
|
|
|
editor.field('code').text({ maxLength: 2 });
|
2021-12-21 13:58:48 +01:00
|
|
|
editor.field('isPreferred', { optional: true, horizontal: true }).toggle();
|
2021-12-20 16:28:24 +01:00
|
|
|
|
2021-12-21 00:53:17 +01:00
|
|
|
export default editor;
|