diff --git a/app/resources/locales/en_US/field.po b/app/resources/locales/en_US/field.po index 28273eb27..61d51b6a1 100644 --- a/app/resources/locales/en_US/field.po +++ b/app/resources/locales/en_US/field.po @@ -312,6 +312,9 @@ msgstr "Limit Global Search Scope" msgid "CoSettings.search_global_limited_models.desc" msgstr "If true, Global Search will only search Names, Email Addresses, and Identifiers. This may result in faster searches for larger deployments." +msgid "format" +msgstr "format" + msgid "GroupMembers.source" msgstr "Membership Source" diff --git a/app/src/View/Helper/FieldHelper.php b/app/src/View/Helper/FieldHelper.php index 02f014cdb..faf3a1653 100644 --- a/app/src/View/Helper/FieldHelper.php +++ b/app/src/View/Helper/FieldHelper.php @@ -99,6 +99,9 @@ public function control(string $fieldName, // Specify a class on the
  • form control wrapper $liClass = $cssClass; + + // Collect any supplemental markup and/or JavaScript to pass along for field construction + $fieldSupplement = !empty($config['supplement']) ? $config['supplement'] : ''; // Remove prefix from field value if(isset($config['prefix'], $this->getView()->get('vv_obj')->$fieldName)) { @@ -154,8 +157,8 @@ public function control(string $fieldName, return $this->startLine($liClass) . $this->formNameDiv($fieldName, $labelText) . ( !empty($config['prefix']) ? - $this->formInfoWithPrefixDiv($controlCode, $config['prefix']) : - $this->formInfoDiv($controlCode) ) + $this->formInfoWithPrefixDiv($controlCode, $config['prefix'], $fieldSupplement) : + $this->formInfoDiv($controlCode, $fieldSupplement) ) . $this->endLine(); } @@ -275,9 +278,9 @@ protected function endLine(): string { * @return string Form Info HTML */ - protected function formInfoDiv(string $content): string { + protected function formInfoDiv(string $content, string $supplement): string { return '
    - ' . $content . ' + ' . $content . $supplement . '
    '; } @@ -290,14 +293,16 @@ protected function formInfoDiv(string $content): string { * @return string Form Info HTML */ - protected function formInfoWithPrefixDiv(string $context, string $prefix): string { + protected function formInfoWithPrefixDiv(string $context, string $prefix, string $supplement): string { $div = '
    ' . PHP_EOL . '
    ' . PHP_EOL . '
    ' . PHP_EOL . '' . $prefix . '' . '
    ' . PHP_EOL . $context - . '
    '; + . '' + . $supplement + . ''; return $div; } diff --git a/app/templates/Jobs/fields.inc b/app/templates/Jobs/fields.inc index c646f41f8..f8d066b0c 100644 --- a/app/templates/Jobs/fields.inc +++ b/app/templates/Jobs/fields.inc @@ -37,8 +37,32 @@ if($vv_action == 'view') { status: (string)$vv_obj->percent_complete ); } - - print $this->Field->control('parameters'); + + $fieldSupplement = ' +
    +
    + + +
    +
    + + '; + print $this->Field->control('parameters', [], null, ['supplement' => $fieldSupplement]); print $this->Field->control('register_time');