diff --git a/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/fields.inc b/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/fields.inc index 0cb08a6ec..7162e3d23 100644 --- a/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/fields.inc +++ b/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/fields.inc @@ -27,7 +27,7 @@ $fields = [ 'attribute' => [ - 'fieldType' => 'select' + 'type' => 'select' ], 'ad_hoc_tag', 'affiliation_type_id', diff --git a/app/availableplugins/SqlConnector/templates/SqlSources/fields.inc b/app/availableplugins/SqlConnector/templates/SqlSources/fields.inc index b25664add..3edf79011 100644 --- a/app/availableplugins/SqlConnector/templates/SqlSources/fields.inc +++ b/app/availableplugins/SqlConnector/templates/SqlSources/fields.inc @@ -28,7 +28,7 @@ $fields = [ 'server_id', 'table_mode' => [ - 'fieldType' => 'select' + 'type' => 'select' ] ]; diff --git a/app/plugins/CoreEnroller/templates/EmailVerifiers/fields.inc b/app/plugins/CoreEnroller/templates/EmailVerifiers/fields.inc index 15a4bb8ec..b7d528a2b 100644 --- a/app/plugins/CoreEnroller/templates/EmailVerifiers/fields.inc +++ b/app/plugins/CoreEnroller/templates/EmailVerifiers/fields.inc @@ -94,8 +94,8 @@ $fields = [ 'required' => false, 'empty' => true, 'style' => $regexDisplayFirstTime || !empty($vv_obj?->verification_code_regex) ? '' : 'display: none;', - 'fieldType' => 'select', - 'fieldSelectOptions' => $permittedCharacters + 'type' => 'select', + 'options' => $permittedCharacters ], 'verification_code_charset' => [ 'type' => 'text', diff --git a/app/plugins/CoreEnroller/templates/EnrollmentAttributes/fields.inc b/app/plugins/CoreEnroller/templates/EnrollmentAttributes/fields.inc index 83c8b676c..509f48e15 100644 --- a/app/plugins/CoreEnroller/templates/EnrollmentAttributes/fields.inc +++ b/app/plugins/CoreEnroller/templates/EnrollmentAttributes/fields.inc @@ -89,8 +89,8 @@ if ( ) { $fields['attribute_mvea_parent'] = [ 'empty' => false, - 'fieldType' => 'select', - 'fieldSelectOptions' => array_combine( + 'type' => 'select', + 'options' => array_combine( $vv_supported_attributes[$attribute_type]['mveaParents'], $vv_supported_attributes[$attribute_type]['mveaParents'] ) @@ -106,8 +106,8 @@ if ( $fields['attribute_type'] = [ 'fieldLabel' => $attributes[$attribute_type] . ' Type', 'empty' => false, - 'fieldType' => 'select', - 'fieldSelectOptions' => $this->get($mveaAutoPopulatedVariable) + 'type' => 'select', + 'options' => $this->get($mveaAutoPopulatedVariable) ]; } } @@ -123,8 +123,8 @@ if(str_ends_with($attribute_type, '_id')) { if ($this->get($defaultValuesPopulated) !== null) { $fields['default_value'] = [ 'empty' => true, - 'fieldType' => 'select', - 'fieldSelectOptions' => $this->get($defaultValuesPopulated) + 'type' => 'select', + 'options' => $this->get($defaultValuesPopulated) ]; } } @@ -174,7 +174,7 @@ if ( */ if($attribute_type === 'valid_from') { $fields['default_value_datetime'] = [ - 'fieldType' => 'datetime' + 'type' => 'datetime' ]; } diff --git a/app/plugins/CoreServer/templates/Oauth2Servers/fields.inc b/app/plugins/CoreServer/templates/Oauth2Servers/fields.inc index 329ab0d5b..31680066e 100644 --- a/app/plugins/CoreServer/templates/Oauth2Servers/fields.inc +++ b/app/plugins/CoreServer/templates/Oauth2Servers/fields.inc @@ -33,8 +33,8 @@ $fields = [ ], 'url', 'access_grant_type' => [ - 'fieldSelectOptions' => $types, - 'fieldType' => 'select', + 'options' => $types, + 'type' => 'select', 'empty' => false ], 'clientid', diff --git a/app/plugins/OrcidSource/templates/OrcidSources/fields.inc b/app/plugins/OrcidSource/templates/OrcidSources/fields.inc index c10e0733d..5af0d8b6e 100644 --- a/app/plugins/OrcidSource/templates/OrcidSources/fields.inc +++ b/app/plugins/OrcidSource/templates/OrcidSources/fields.inc @@ -43,14 +43,14 @@ $fields = [ 'required' => true ], 'api_type' => [ - 'fieldSelectOptions' => $api_types, - 'fieldType' => 'select', + 'options' => $api_types, + 'type' => 'select', 'empty' => false, 'required' => true ], 'api_tier' => [ - 'fieldSelectOptions' => $api_tiers, - 'fieldType' => 'select', + 'options' => $api_tiers, + 'type' => 'select', 'empty' => false, 'required' => true ], diff --git a/app/templates/CoSettings/fields.inc b/app/templates/CoSettings/fields.inc index ef11c8177..57f4d616f 100644 --- a/app/templates/CoSettings/fields.inc +++ b/app/templates/CoSettings/fields.inc @@ -62,7 +62,7 @@ $fields = [ ], 'person_picker_display_types' => [ 'singleRowItem' => true, - 'fieldLabel' => __d('field', 'CoSettings.person_picker_display_types') + 'label' => __d('field', 'CoSettings.person_picker_display_types') ] ], ], diff --git a/app/templates/element/form/h3Inject.php b/app/templates/element/form/htmlInject.php similarity index 78% rename from app/templates/element/form/h3Inject.php rename to app/templates/element/form/htmlInject.php index b0d2bcadf..465a76c77 100644 --- a/app/templates/element/form/h3Inject.php +++ b/app/templates/element/form/htmlInject.php @@ -30,20 +30,20 @@ declare(strict_types=1); // View vars -// $subtitle +// $content - the text or markup to be rendered +// $type - accepts "subtitle" or "html" // $vv_action -if (empty($subtitle)) { - return; +if (empty($content)) { + return; } -$unique = md5($subtitle); - ?> - - - -