From a453c16b3290eabdf35778c54498101c737544e1 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 18 Aug 2015 20:36:08 +0200 Subject: Form: more flexible label handling #1312 You now can add labels that don't wrap around inputs, but you have to ensure IDs are properly assigned yourself. The Label class has been renamed to LabelElement to reflect the naming scheme of the other elements. --- inc/Form/LabelElement.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 inc/Form/LabelElement.php (limited to 'inc/Form/LabelElement.php') diff --git a/inc/Form/LabelElement.php b/inc/Form/LabelElement.php new file mode 100644 index 000000000..9c8d54277 --- /dev/null +++ b/inc/Form/LabelElement.php @@ -0,0 +1,27 @@ +attrs()) . '>' . $this->val() . ''; + } +} -- cgit v1.2.3