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