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 @@
| 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"); ?> | > |