From 955cc7297bcb7d7dcefc9bd796e38c81a49d959d Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Sat, 27 Apr 2024 18:11:59 +0300 Subject: [PATCH] fixes --- app/templates/element/form/listItem.php | 2 +- app/templates/element/form/nameDiv.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/templates/element/form/listItem.php b/app/templates/element/form/listItem.php index 0c6ff4995..6505d3e1d 100644 --- a/app/templates/element/form/listItem.php +++ b/app/templates/element/form/listItem.php @@ -38,7 +38,7 @@ $this->set('vv_field_arguments', $arguments); // Additional classes calculation -$classes = match ($arguments['fieldName']) { +$classes = match ($this->Fieeld->getFieldType($arguments['fieldName'])) { 'date', 'datetime', 'timestamp' => 'fields-datepicker ', diff --git a/app/templates/element/form/nameDiv.php b/app/templates/element/form/nameDiv.php index 9d90cf458..e36e85d1e 100644 --- a/app/templates/element/form/nameDiv.php +++ b/app/templates/element/form/nameDiv.php @@ -64,19 +64,20 @@ ?>
- - +
- Fieeld->getFieldType($fieldName) !== 'boolean'): ?> Form->label($fn, $label) ?> - + + + Fieeld->isEditable() && in_array($fn, $this->Fieeld->getReqFields(), true)) { + if($this->Fieeld->isEditable() && $this->Fieeld->isReqField($fn)) { print $this->element('form/requiredSpan'); } ?> @@ -84,5 +85,4 @@
-
\ No newline at end of file