|
@@ -88,13 +88,7 @@ if ($action != 'create' && $action != 'edit') {
|
|
|
print "</div>";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-/* ************************************************************************** */
|
|
|
-/* */
|
|
|
-/* Creation of an optional field */
|
|
|
-/* */
|
|
|
-/* ************************************************************************** */
|
|
|
-
|
|
|
+// Creation of an optional field
|
|
|
if ($action == 'create') {
|
|
|
print '<br><div name="topofform" id="newattrib"></div>';
|
|
|
print load_fiche_titre($langs->trans('NewAttribute'));
|
|
@@ -102,11 +96,7 @@ if ($action == 'create') {
|
|
|
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
|
|
|
}
|
|
|
|
|
|
-/* ************************************************************************** */
|
|
|
-/* */
|
|
|
-/* Edition of an optional field */
|
|
|
-/* */
|
|
|
-/* ************************************************************************** */
|
|
|
+// Edition of an optional field
|
|
|
if ($action == 'edit' && !empty($attrname)) {
|
|
|
print '<div name="topofform"></div><br>';
|
|
|
print load_fiche_titre($langs->trans("FieldEdition", $attrname));
|