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 @@ ?>