Skip to content

Commit

Permalink
Minor: Admin: Change labels of fields and add comment in extra fields…
Browse files Browse the repository at this point in the history
… add/edit form to avoid confusion between title and ID of the field.
  • Loading branch information
ywarnier committed Aug 31, 2023
1 parent 612c30c commit 5add3c5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions main/inc/lib/extra_field.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2257,10 +2257,10 @@ public function return_form($url, $action)

$form->addText(
'display_text',
[get_lang('Name'), $translateButton]
[get_lang('Title'), $translateButton]
);
} else {
$form->addText('display_text', get_lang('Name'));
$form->addText('display_text', get_lang('Title'));
}

// Field type
Expand All @@ -2274,7 +2274,14 @@ public function return_form($url, $action)
['id' => 'field_type']
);
$form->addLabel(get_lang('Example'), '<div id="example">-</div>');
$form->addText('variable', get_lang('FieldLabel'), false);
$form->addElement(
'text',
'variable',
[
get_lang('SysId'),
get_lang('ExtraFieldIdComment')
]
);
$form->addElement(
'text',
'field_options',
Expand Down

0 comments on commit 5add3c5

Please sign in to comment.