diff --git a/htdocs/adherents/admin/member_extrafields.php b/htdocs/adherents/admin/member_extrafields.php index ef12b5cf68e..5776828c078 100644 --- a/htdocs/adherents/admin/member_extrafields.php +++ b/htdocs/adherents/admin/member_extrafields.php @@ -82,14 +82,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php'; print dol_get_fiche_end(); -// Buttons -if ($action != 'create' && $action != 'edit') { - print '
| '.$langs->trans("Position"); @@ -60,11 +71,14 @@ print ' | '.$langs->trans("Type").' | '; print ''.$langs->trans("Size").' | '; print ''.$langs->trans("ComputedFormula").' | '; print ''.$langs->trans("Unique").' | '; -print ''.$langs->trans("Required").' | '; -print ''.$langs->trans("AlwaysEditable").' | '; -print ''.$form->textwithpicto($langs->trans("Visible"), $langs->trans("VisibleDesc")).' | '; +print ''.$langs->trans("Mandatory").' | '; +print ''.$form->textwithpicto($langs->trans("AlwaysEditable"), $langs->trans("EditableWhenDraftOnly")).' | '; +print ''.$form->textwithpicto($langs->trans("Visibility"), $langs->trans("VisibleDesc")).' | '; print ''.$form->textwithpicto($langs->trans("DisplayOnPdf"), $langs->trans("DisplayOnPdfDesc")).' | '; print ''.$form->textwithpicto($langs->trans("Totalizable"), $langs->trans("TotalizableDesc")).' | '; +print ''.$form->textwithpicto($langs->trans("CssOnEdit"), $langs->trans("HelpCssOnEditDesc")).' | '; +print ''.$form->textwithpicto($langs->trans("CssOnView"), $langs->trans("HelpCssOnViewDesc")).' | '; +print ''.$form->textwithpicto($langs->trans("CssOnList"), $langs->trans("HelpCssOnListDesc")).' | '; if (isModEnabled('multicompany')) { print ''.$langs->trans("Entity").' | '; } @@ -87,14 +101,14 @@ if (isset($extrafields->attributes[$elementtype]['type']) && is_array($extrafiel // Position print "".dol_escape_htmltag($extrafields->attributes[$elementtype]['pos'][$key])." | \n"; // Label - print "".dol_escape_htmltag($extrafields->attributes[$elementtype]['label'][$key])." | \n"; // We don't translate here, we want admin to know what is the key not translated value + print ''.dol_escape_htmltag($extrafields->attributes[$elementtype]['label'][$key])." | \n"; // We don't translate here, we want admin to know what is the key not translated value // Label translated print ''.dol_escape_htmltag($langs->transnoentitiesnoconv($extrafields->attributes[$elementtype]['label'][$key]))." | \n"; // Key - print "".dol_escape_htmltag($key)." | \n"; + print ''.dol_escape_htmltag($key)." | \n"; // Type $typetoshow = $type2label[$extrafields->attributes[$elementtype]['type'][$key]]; - print ''; + print ' | '; print dol_escape_htmltag($typetoshow); print " | \n"; // Size @@ -113,6 +127,13 @@ if (isset($extrafields->attributes[$elementtype]['type']) && is_array($extrafiel print ''.dol_escape_htmltag($extrafields->attributes[$elementtype]['printable'][$key])." | \n"; // Summable print ''.yn($extrafields->attributes[$elementtype]['totalizable'][$key])." | \n"; + // CSS + print ''.dol_escape_htmltag($extrafields->attributes[$elementtype]['css'][$key])." | \n"; + // CSS view + print ''.dol_escape_htmltag($extrafields->attributes[$elementtype]['cssview'][$key])." | \n"; + // CSS list + print ''.dol_escape_htmltag($extrafields->attributes[$elementtype]['csslist'][$key])." | \n"; + // Multicompany if (isModEnabled('multicompany')) { print ''; if (empty($extrafields->attributes[$elementtype]['entityid'][$key])) { @@ -131,6 +152,7 @@ if (isset($extrafields->attributes[$elementtype]['type']) && is_array($extrafiel } print ' | '; } + // Actions print ''; print ''.img_edit().''; print ' '.img_delete().''; @@ -138,7 +160,7 @@ if (isset($extrafields->attributes[$elementtype]['type']) && is_array($extrafiel print " |