From ec132e69caec2231ac712fb772c3dbd437304983 Mon Sep 17 00:00:00 2001 From: bellord13 Date: Tue, 2 Jul 2024 16:02:32 +0300 Subject: [PATCH] fix --- templates/form/field/material/input/edit.php | 86 +++++++++++++++++++ .../form/field/material/input/filter.php | 1 + templates/form/field/material/input/view.php | 1 + 3 files changed, 88 insertions(+) create mode 100644 templates/form/field/material/input/edit.php create mode 100644 templates/form/field/material/input/filter.php create mode 100644 templates/form/field/material/input/view.php diff --git a/templates/form/field/material/input/edit.php b/templates/form/field/material/input/edit.php new file mode 100644 index 0000000..1484c62 --- /dev/null +++ b/templates/form/field/material/input/edit.php @@ -0,0 +1,86 @@ +getLabel()); +$labelAttrs = []; +if(mb_strlen($field->getId())){ + $labelAttrs['for'] = $field->getId(); +} + + +$isReadonly = $field->isReadonly(); +$isDisabled = $field->isDisabled(); +$isRequired = $field->isRequired(); +$isChecked = false; + +$isDatepicker = in_array($field->getType(), ['data', 'time', 'datetimeLocal']); + +$label = $field->getLabel(); + +if($isDatepicker) { + $arParams['ADD_CLASS'] .= ' datepicker-here'; +} + +?> + + +