' // field-title div
+ // Description element
+ . ($desc ? '
' . $desc . '
' : '') .'
+ ';
}
/**
@@ -663,6 +659,17 @@ public function peopleAutocompleteControl(string $fieldName, string $type = 'cop
}
}
+ /**
+ * Static required Span Element
+ *
+ * @return string
+ * @since COmanage Registry v5.0.0
+ */
+ protected function requiredSpanElement() {
+ return "*"
+ . "{__d('field', 'required')}";
+ }
+
/**
* Emit a source control for an MVEA that has a source_foo_id field pointing
* to an External Identity attribute.
@@ -720,14 +727,15 @@ public function sourceControl($entity): string {
/**
* Generate a status control (a read only status with an optional link button).
- *
- * @since Registry Registry v5.0.0
- * @param string $fieldName Form field
- * @param string $status Status text
- * @param array $link Link information, including 'url', 'label', 'class', 'confirm'
- * @param string $labelText Label text (fieldName language key used by default)
- * @param boolean $labelIsTextOnly true if