diff --git a/htdocs/core/tpl/admin_extrafields_add.tpl.php b/htdocs/core/tpl/admin_extrafields_add.tpl.php index 3a5b02a9d48..d1f8fc6bb37 100644 --- a/htdocs/core/tpl/admin_extrafields_add.tpl.php +++ b/htdocs/core/tpl/admin_extrafields_add.tpl.php @@ -31,14 +31,14 @@ { print 'jQuery("#value_choice").hide();'; } - + if (GETPOST('type') == "separate") { print "jQuery('#size, #unique, #required, #default_value').val('').attr('disabled','disabled');"; print 'jQuery("#value_choice").hide();'; } ?> - + if (type == 'date') { size.val('').attr('disabled','disabled'); unique.removeAttr('disabled','disabled'); jQuery("#value_choice").hide(); } else if (type == 'datetime') { size.val('').attr('disabled','disabled'); unique.removeAttr('disabled','disabled'); jQuery("#value_choice").hide(); } else if (type == 'double') { size.val('24,8').removeAttr('disabled'); unique.removeAttr('disabled','disabled'); jQuery("#value_choice").hide(); } @@ -67,17 +67,19 @@ - - - - - + + + + + + + - - diff --git a/htdocs/core/tpl/admin_extrafields_edit.tpl.php b/htdocs/core/tpl/admin_extrafields_edit.tpl.php index 3d1bdc4a9be..e24a3e86948 100644 --- a/htdocs/core/tpl/admin_extrafields_edit.tpl.php +++ b/htdocs/core/tpl/admin_extrafields_edit.tpl.php @@ -73,8 +73,6 @@ elseif ($type== 'sellist') $param_chain = $paramlist[0]; } ?> - - @@ -84,6 +82,10 @@ elseif ($type== 'sellist') + + + + - -
trans("Type"); ?> -selectarray('type',$type2label,GETPOST('type')); ?> -
trans("Position"); ?>
trans("Label"); ?>
trans("AttributeCode"); ?> (trans("AlphaNumOnlyCharsAndNoSpace"); ?>)
trans("Type"); ?> +selectarray('type',$type2label,GETPOST('type')); ?> +
trans("Size"); ?>
trans("Position"); ?>
@@ -95,8 +97,6 @@
trans("DefaultValue"); ?>">
trans("Size"); ?>
trans("Unique"); ?>>
trans("Position"); ?>
trans("Label"); ?>
trans("Size"); ?>
trans("Position"); ?>
trans("Size"); ?>
trans("Unique"); ?>>