From f2f9d290166e6c2386819b5f6d54fcc7065727fd Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sun, 14 Dec 2014 14:43:53 +0200 Subject: [PATCH] admin fields and widgets --- ipf/admin/form/fields/html.php | 7 +++++++ ipf/{form/field => admin/form/fields}/orderedset.php | 4 ++-- ipf/admin/{formlayout.php => form/layout.php} | 0 ipf/{form/widget => admin/form/widgets}/htmlinput.php | 2 +- .../widget => admin/form/widgets}/orderedsettable.php | 2 +- ipf/form/field/html.php | 7 ------- ipf/form/field/varchar.php | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 ipf/admin/form/fields/html.php rename ipf/{form/field => admin/form/fields}/orderedset.php (77%) rename ipf/admin/{formlayout.php => form/layout.php} (100%) rename ipf/{form/widget => admin/form/widgets}/htmlinput.php (98%) rename ipf/{form/widget => admin/form/widgets}/orderedsettable.php (96%) delete mode 100644 ipf/form/field/html.php diff --git a/ipf/admin/form/fields/html.php b/ipf/admin/form/fields/html.php new file mode 100644 index 0000000..52a5f01 --- /dev/null +++ b/ipf/admin/form/fields/html.php @@ -0,0 +1,7 @@ +max_length > 255 && $this->widget !== 'IPF_Form_Widget_HTMLInput') { + if ($this->max_length > 255 && $this->widget === 'IPF_Form_Widget_TextInput') { $widgetClass = 'IPF_Form_Widget_TextareaInput'; } else { $widgetClass = $this->widget; -- 2.49.0