* Copyright (C) 2012-2017 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /* To call this template, you must define * $textobject * $langs * $extrafield * $elementtype */ // Protection to avoid direct call of template if (empty($langs) || ! is_object($langs)) { print "Error, template page can't be called as URL"; exit; } $langs->load("modulebuilder"); ?> trans("DefineHereComplementaryAttributes",$textobject).'
'."\n"; print '
'; // Load attribute_label $extrafields->fetch_name_optionals_label($elementtype); print '
'; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; if ($conf->multicompany->enabled) { print ''; } print ''; print "\n"; if (is_array($extrafields->attributes[$elementtype]['type']) && count($extrafields->attributes[$elementtype]['type'])) { foreach($extrafields->attributes[$elementtype]['type'] as $key => $value) { // Load language if required if (! empty($extrafields->attributes[$elementtype]['langfile'][$key])) { $langs->load($extrafields->attributes[$elementtype]['langfile'][$key]); } print ''; print "\n"; print "\n"; // We don't translate here, we want admin to know what is the key not translated value print "\n"; print "\n"; print "\n"; print '\n"; print '\n"; print '\n"; print '\n"; print '\n"; print '\n"; if (! empty($conf->multicompany->enabled)) { print ''; } print '\n"; print ""; } } else { $colspan=9; print ''; print ''; print ''; } print "
'.$langs->trans("Position"); print ''; print ''.$langs->trans("Label").''.$langs->trans("TranslationString").''.$langs->trans("AttributeCode").''.$langs->trans("Type").''.$langs->trans("Size").''.$langs->trans("Unique").''.$langs->trans("ComputedFormula").''.$langs->trans("Required").''.$langs->trans("AlwaysEditable").''.$form->textwithpicto($langs->trans("Visible"), $langs->trans("VisibleDesc")).''.$langs->trans("Entities").' 
".$extrafields->attributes[$elementtype]['pos'][$key]."".$extrafields->attributes[$elementtype]['label'][$key]."".$langs->trans($extrafields->attributes[$elementtype]['label'][$key])."".$key."".$type2label[$extrafields->attributes[$elementtype]['type'][$key]]."'.$extrafields->attributes[$elementtype]['size'][$key]."'.yn($extrafields->attributes[$elementtype]['unique'][$key])."'.dol_trunc($extrafields->attributes[$elementtype]['computed'][$key], 20)."'.yn($extrafields->attributes[$elementtype]['required'][$key])."'.yn($extrafields->attributes[$elementtype]['alwayseditable'][$key])."'.$extrafields->attributes[$elementtype]['list'][$key]."'.($extrafields->attributes[$elementtype]['entityid'][$key]==0?$langs->trans("All"):$extrafields->attributes[$elementtype]['entitylabel'][$key]).''.img_edit().''; print "  ".img_delete()."
'; print $langs->trans("None"); print '
"; print '
'; ?>