Skip to content

Commit e5e66ef

Browse files
committed
Add optional label
1 parent 92016d3 commit e5e66ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/templates/pages/setup_webapp.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@
4242
$f_name = $WebappInstaller->formNs() . '_' . $form_name;
4343
$f_type = $form_control;
4444
$f_value = '';
45-
$f_label = ucwords(str_replace(['.','_'], ' ', $form_name));
45+
if(isset($form_control['label'])){
46+
$f_label = htmlentities($form_control['label']);
47+
}else{
48+
$f_label = ucwords(str_replace(['.','_'], ' ', $form_name));
49+
}
4650
$f_placeholder = '';
4751
if (is_array($form_control)) {
4852
$f_type = (!empty($form_control['type']))?$form_control['type']:'text';

0 commit comments

Comments
 (0)