From 37c62b626e3e70024d2501673cd344a635860691 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 9 Aug 2023 12:59:55 +0530 Subject: [PATCH 1/2] Allow group input field name to be changed --- admin/themes/default/template/helpers/form/form_group.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/themes/default/template/helpers/form/form_group.tpl b/admin/themes/default/template/helpers/form/form_group.tpl index d04103cac..66bb72fa0 100644 --- a/admin/themes/default/template/helpers/form/form_group.tpl +++ b/admin/themes/default/template/helpers/form/form_group.tpl @@ -31,13 +31,13 @@ - + {l s='ID'} - {l s='Group name'} + {if isset($input['groups_title']) && $input['groups_title']}{$input['groups_title']}{else}{l s='Group name'}{/if} @@ -46,8 +46,8 @@ {foreach $groups as $key => $group} - {assign var=id_checkbox value=groupBox|cat:'_'|cat:$group['id_group']} - + {assign var=id_checkbox value=$input['name']|cat:'_'|cat:$group['id_group']} + {$group['id_group']} From a92b4a52700dba81c8abbb0640a107407f81c710 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 31 Jan 2024 20:24:04 +0530 Subject: [PATCH 2/2] Allow group id title to be changed --- admin/themes/default/template/helpers/form/form_group.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/themes/default/template/helpers/form/form_group.tpl b/admin/themes/default/template/helpers/form/form_group.tpl index 66bb72fa0..580df3844 100644 --- a/admin/themes/default/template/helpers/form/form_group.tpl +++ b/admin/themes/default/template/helpers/form/form_group.tpl @@ -34,7 +34,11 @@ - {l s='ID'} + + + {if isset($input['groups_id_title']) && $input['groups_id_title']}{$input['groups_id_title']}{else}{l s='ID'}{/if} + + {if isset($input['groups_title']) && $input['groups_title']}{$input['groups_title']}{else}{l s='Group name'}{/if}