forked from Wavyzz/dolibarr
NEW Can edit property css, cssview, csslist on extrafields
This commit is contained in:
@@ -82,14 +82,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<div name="topofform"></div><br>';
|
print '<div name="topofform"></div><br>';
|
||||||
|
|||||||
@@ -85,14 +85,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|||||||
@@ -87,15 +87,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -83,14 +83,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -85,14 +85,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -82,14 +82,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -92,14 +92,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|||||||
@@ -89,14 +89,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -90,14 +90,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -89,14 +89,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -89,14 +89,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -79,14 +79,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -82,14 +82,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -89,13 +89,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -90,14 +90,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -83,15 +83,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -83,14 +83,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -85,14 +85,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -82,14 +82,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -86,14 +86,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -87,14 +87,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -92,14 +92,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|||||||
@@ -85,13 +85,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -87,13 +87,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -89,13 +89,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -87,13 +87,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -88,13 +88,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -78,12 +78,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
|
|
||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
|
|||||||
@@ -86,14 +86,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -86,14 +86,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -80,13 +80,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -80,13 +80,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|||||||
@@ -83,13 +83,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -81,18 +81,8 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
@@ -103,9 +93,7 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Edition of an optional field
|
* Edition of an optional field
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if ($action == 'edit' && !empty($attrname)) {
|
if ($action == 'edit' && !empty($attrname)) {
|
||||||
$langs->load("members");
|
$langs->load("members");
|
||||||
|
|||||||
@@ -81,19 +81,8 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
|
|
||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
@@ -104,9 +93,7 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Edition of an optional field
|
* Edition of an optional field
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if ($action == 'edit' && !empty($attrname)) {
|
if ($action == 'edit' && !empty($attrname)) {
|
||||||
$langs->load("members");
|
$langs->load("members");
|
||||||
|
|||||||
@@ -82,18 +82,8 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
@@ -104,9 +94,7 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Edition of an optional field
|
* Edition of an optional field
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if ($action == 'edit' && !empty($attrname)) {
|
if ($action == 'edit' && !empty($attrname)) {
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|||||||
@@ -82,18 +82,8 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
@@ -104,9 +94,7 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Edition of an optional field
|
* Edition of an optional field
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if ($action == 'edit' && !empty($attrname)) {
|
if ($action == 'edit' && !empty($attrname)) {
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|||||||
@@ -82,13 +82,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div name="topofform" id="newattrib"></div>';
|
print '<br><div name="topofform" id="newattrib"></div>';
|
||||||
|
|||||||
@@ -82,13 +82,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -28,8 +28,11 @@ $maxsizeint = 10;
|
|||||||
$mesg = array();
|
$mesg = array();
|
||||||
|
|
||||||
$extrasize = GETPOST('size', 'intcomma');
|
$extrasize = GETPOST('size', 'intcomma');
|
||||||
$type = GETPOST('type', 'alpha');
|
$type = GETPOST('type', 'alphanohtml');
|
||||||
$param = GETPOST('param', 'alpha');
|
$param = GETPOST('param', 'alphanohtml');
|
||||||
|
$css = GETPOST('css', 'alphanohtml');
|
||||||
|
$cssview = GETPOST('cssview', 'alphanohtml');
|
||||||
|
$csslist = GETPOST('csslist', 'alphanohtml');
|
||||||
|
|
||||||
if ($type == 'double' && strpos($extrasize, ',') === false) {
|
if ($type == 'double' && strpos($extrasize, ',') === false) {
|
||||||
$extrasize = '24,8';
|
$extrasize = '24,8';
|
||||||
@@ -195,7 +198,8 @@ if ($action == 'add') {
|
|||||||
GETPOST('langfile', 'alpha'),
|
GETPOST('langfile', 'alpha'),
|
||||||
1,
|
1,
|
||||||
(GETPOST('totalizable', 'alpha') ? 1 : 0),
|
(GETPOST('totalizable', 'alpha') ? 1 : 0),
|
||||||
GETPOST('printable', 'alpha')
|
GETPOST('printable', 'alpha'),
|
||||||
|
array('css' => $css, 'cssview' => $cssview, 'csslist' => $csslist)
|
||||||
);
|
);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
|
setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
|
||||||
@@ -365,7 +369,8 @@ if ($action == 'update') {
|
|||||||
GETPOST('langfile'),
|
GETPOST('langfile'),
|
||||||
GETPOST('enabled', 'alpha'),
|
GETPOST('enabled', 'alpha'),
|
||||||
(GETPOST('totalizable', 'alpha') ? 1 : 0),
|
(GETPOST('totalizable', 'alpha') ? 1 : 0),
|
||||||
GETPOST('printable', 'alpha')
|
GETPOST('printable', 'alpha'),
|
||||||
|
array('css' => $css, 'cssview' => $cssview, 'csslist' => $csslist)
|
||||||
);
|
);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
|
setEventMessages($langs->trans('SetupSaved'), null, 'mesgs');
|
||||||
|
|||||||
@@ -10646,7 +10646,7 @@ function getFieldErrorIcon($fieldValidationErrorMsg)
|
|||||||
* @param string $iconClass class for icon element (Example: 'fa fa-file')
|
* @param string $iconClass class for icon element (Example: 'fa fa-file')
|
||||||
* @param string $url the url for link
|
* @param string $url the url for link
|
||||||
* @param string $id attribute id of button
|
* @param string $id attribute id of button
|
||||||
* @param int $status 0 no user rights, 1 active, 2 current action or selected, -1 Feature Disabled, -2 disable Other reason use helpText as tooltip
|
* @param int $status 0 no user rights, 1 active, 2 current action or selected, -1 Feature Disabled, -2 disable Other reason use param $helpText as tooltip help
|
||||||
* @param array $params various params for future : recommended rather than adding more function arguments
|
* @param array $params various params for future : recommended rather than adding more function arguments
|
||||||
* @return string html button
|
* @return string html button
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -192,9 +192,9 @@ $listofexamplesforlink = 'Societe:societe/class/societe.class.php<br>Contact:con
|
|||||||
<!-- Unique -->
|
<!-- Unique -->
|
||||||
<tr class="extra_unique"><td><?php echo $langs->trans("Unique"); ?></td><td class="valeur"><input id="unique" type="checkbox" name="unique"<?php echo (GETPOST('unique', 'alpha') ? ' checked' : ''); ?>></td></tr>
|
<tr class="extra_unique"><td><?php echo $langs->trans("Unique"); ?></td><td class="valeur"><input id="unique" type="checkbox" name="unique"<?php echo (GETPOST('unique', 'alpha') ? ' checked' : ''); ?>></td></tr>
|
||||||
<!-- Required -->
|
<!-- Required -->
|
||||||
<tr class="extra_required"><td><?php echo $langs->trans("Required"); ?></td><td class="valeur"><input id="required" type="checkbox" name="required"<?php echo (GETPOST('required', 'alpha') ? ' checked' : ''); ?>></td></tr>
|
<tr class="extra_required"><td><?php echo $langs->trans("Mandatory"); ?></td><td class="valeur"><input id="required" type="checkbox" name="required"<?php echo (GETPOST('required', 'alpha') ? ' checked' : ''); ?>></td></tr>
|
||||||
<!-- Always editable -->
|
<!-- Always editable -->
|
||||||
<tr class="extra_alwayseditable"><td><?php echo $langs->trans("AlwaysEditable"); ?></td><td class="valeur"><input id="alwayseditable" type="checkbox" name="alwayseditable"<?php echo ((GETPOST('alwayseditable', 'alpha') || !GETPOST('button', 'alpha')) ? ' checked' : ''); ?>></td></tr>
|
<tr class="extra_alwayseditable"><td><?php echo $form->textwithpicto($langs->trans("AlwaysEditable"), $langs->trans("EditableWhenDraftOnly")); ?></td><td class="valeur"><input id="alwayseditable" type="checkbox" name="alwayseditable"<?php echo ((GETPOST('alwayseditable', 'alpha') || !GETPOST('button', 'alpha')) ? ' checked' : ''); ?>></td></tr>
|
||||||
<!-- Visibility -->
|
<!-- Visibility -->
|
||||||
<tr><td class="extra_list"><?php echo $form->textwithpicto($langs->trans("Visibility"), $langs->trans("VisibleDesc")); ?>
|
<tr><td class="extra_list"><?php echo $form->textwithpicto($langs->trans("Visibility"), $langs->trans("VisibleDesc")); ?>
|
||||||
</td><td class="valeur"><input id="list" class="minwidth100" type="text" name="list" value="<?php echo GETPOST('list', 'int') != '' ? GETPOST('list', 'int') : '1'; ?>"></td></tr>
|
</td><td class="valeur"><input id="list" class="minwidth100" type="text" name="list" value="<?php echo GETPOST('list', 'int') != '' ? GETPOST('list', 'int') : '1'; ?>"></td></tr>
|
||||||
@@ -203,6 +203,12 @@ $listofexamplesforlink = 'Societe:societe/class/societe.class.php<br>Contact:con
|
|||||||
</td><td class="valeur"><input id="printable" class="minwidth100" type="text" name="printable" value="<?php echo dol_escape_htmltag(GETPOST('printable', 'int')); ?>"></td></tr>
|
</td><td class="valeur"><input id="printable" class="minwidth100" type="text" name="printable" value="<?php echo dol_escape_htmltag(GETPOST('printable', 'int')); ?>"></td></tr>
|
||||||
<!-- Totalizable -->
|
<!-- Totalizable -->
|
||||||
<tr class="extra_totalizable"><td><?php echo $langs->trans("Totalizable"); ?></td><td class="valeur"><input id="totalizable" type="checkbox" name="totalizable"<?php echo ((GETPOST('totalizable', 'alpha') || GETPOST('button', 'alpha')) ? ' checked' : ''); ?>></td></tr>
|
<tr class="extra_totalizable"><td><?php echo $langs->trans("Totalizable"); ?></td><td class="valeur"><input id="totalizable" type="checkbox" name="totalizable"<?php echo ((GETPOST('totalizable', 'alpha') || GETPOST('button', 'alpha')) ? ' checked' : ''); ?>></td></tr>
|
||||||
|
<!-- Css edit -->
|
||||||
|
<tr class="help"><td><?php echo $form->textwithpicto($langs->trans("CssOnEdit"), $langs->trans("HelpCssOnEditDesc")); ?></td><td class="valeur"><input id="css" class="minwidth200" type="text" name="css" value="<?php echo dol_escape_htmltag((empty($css) ? '' : $css)); ?>"></td></tr>
|
||||||
|
<!-- Css view -->
|
||||||
|
<tr class="help"><td><?php echo $form->textwithpicto($langs->trans("CssOnView"), $langs->trans("HelpCssOnViewDesc")); ?></td><td class="valeur"><input id="cssview" class="minwidth200" type="text" name="cssview" value="<?php echo dol_escape_htmltag((empty($cssview) ? '' : $cssview)); ?>"></td></tr>
|
||||||
|
<!-- Css list -->
|
||||||
|
<tr class="help"><td><?php echo $form->textwithpicto($langs->trans("CssOnList"), $langs->trans("HelpCssOnListDesc")); ?></td><td class="valeur"><input id="csslist" class="minwidth200" type="text" name="csslist" value="<?php echo dol_escape_htmltag((empty($csslist) ? '' : $csslist)); ?>"></td></tr>
|
||||||
<!-- Help tooltip -->
|
<!-- Help tooltip -->
|
||||||
<tr class="help"><td><?php echo $form->textwithpicto($langs->trans("HelpOnTooltip"), $langs->trans("HelpOnTooltipDesc")); ?></td><td class="valeur"><input id="help" class="quatrevingtpercent" type="text" name="help" value="<?php echo dol_escape_htmltag((empty($help) ? '' : $help)); ?>"></td></tr>
|
<tr class="help"><td><?php echo $form->textwithpicto($langs->trans("HelpOnTooltip"), $langs->trans("HelpOnTooltipDesc")); ?></td><td class="valeur"><input id="help" class="quatrevingtpercent" type="text" name="help" value="<?php echo dol_escape_htmltag((empty($help) ? '' : $help)); ?>"></td></tr>
|
||||||
<?php if (isModEnabled('multicompany')) { ?>
|
<?php if (isModEnabled('multicompany')) { ?>
|
||||||
|
|||||||
@@ -167,6 +167,9 @@ $help = $extrafields->attributes[$elementtype]['help'][$attrname];
|
|||||||
$entitycurrentorall = $extrafields->attributes[$elementtype]['entityid'][$attrname];
|
$entitycurrentorall = $extrafields->attributes[$elementtype]['entityid'][$attrname];
|
||||||
$printable = $extrafields->attributes[$elementtype]['printable'][$attrname];
|
$printable = $extrafields->attributes[$elementtype]['printable'][$attrname];
|
||||||
$enabled = $extrafields->attributes[$elementtype]['enabled'][$attrname];
|
$enabled = $extrafields->attributes[$elementtype]['enabled'][$attrname];
|
||||||
|
$css = $extrafields->attributes[$elementtype]['css'][$attrname];
|
||||||
|
$cssview = $extrafields->attributes[$elementtype]['cssview'][$attrname];
|
||||||
|
$csslist = $extrafields->attributes[$elementtype]['csslist'][$attrname];
|
||||||
|
|
||||||
if ((($type == 'select') || ($type == 'checkbox') || ($type == 'radio')) && is_array($param)) {
|
if ((($type == 'select') || ($type == 'checkbox') || ($type == 'radio')) && is_array($param)) {
|
||||||
$param_chain = '';
|
$param_chain = '';
|
||||||
@@ -279,10 +282,10 @@ if (in_array($type, array_keys($typewecanchangeinto))) {
|
|||||||
<tr class="extra_unique"><td><?php echo $langs->trans("Unique"); ?></td><td class="valeur"><input id="unique" type="checkbox" name="unique"<?php echo ($unique ? ' checked' : ''); ?>></td></tr>
|
<tr class="extra_unique"><td><?php echo $langs->trans("Unique"); ?></td><td class="valeur"><input id="unique" type="checkbox" name="unique"<?php echo ($unique ? ' checked' : ''); ?>></td></tr>
|
||||||
|
|
||||||
<!-- Required -->
|
<!-- Required -->
|
||||||
<tr class="extra_required"><td><?php echo $langs->trans("Required"); ?></td><td class="valeur"><input id="required" type="checkbox" name="required"<?php echo ($required ? ' checked' : ''); ?>></td></tr>
|
<tr class="extra_required"><td><?php echo $langs->trans("Mandatory"); ?></td><td class="valeur"><input id="required" type="checkbox" name="required"<?php echo ($required ? ' checked' : ''); ?>></td></tr>
|
||||||
|
|
||||||
<!-- Always editable -->
|
<!-- Always editable -->
|
||||||
<tr class="extra_alwayseditable"><td><?php echo $langs->trans("AlwaysEditable"); ?></td><td class="valeur"><input id="alwayseditable" type="checkbox" name="alwayseditable"<?php echo ($alwayseditable ? ' checked' : ''); ?>></td></tr>
|
<tr class="extra_alwayseditable"><td><?php echo $form->textwithpicto($langs->trans("AlwaysEditable"), $langs->trans("EditableWhenDraftOnly")); ?></td><td class="valeur"><input id="alwayseditable" type="checkbox" name="alwayseditable"<?php echo ($alwayseditable ? ' checked' : ''); ?>></td></tr>
|
||||||
|
|
||||||
<!-- Visibility -->
|
<!-- Visibility -->
|
||||||
<tr><td class="extra_list"><?php echo $form->textwithpicto($langs->trans("Visibility"), $langs->trans("VisibleDesc")); ?>
|
<tr><td class="extra_list"><?php echo $form->textwithpicto($langs->trans("Visibility"), $langs->trans("VisibleDesc")); ?>
|
||||||
@@ -291,8 +294,19 @@ if (in_array($type, array_keys($typewecanchangeinto))) {
|
|||||||
<!-- Visibility for PDF-->
|
<!-- Visibility for PDF-->
|
||||||
<tr><td class="extra_pdf"><?php echo $form->textwithpicto($langs->trans("DisplayOnPdf"), $langs->trans("DisplayOnPdfDesc")); ?>
|
<tr><td class="extra_pdf"><?php echo $form->textwithpicto($langs->trans("DisplayOnPdf"), $langs->trans("DisplayOnPdfDesc")); ?>
|
||||||
</td><td class="valeur"><input id="printable" class="minwidth100" type="text" name="printable" value="<?php echo dol_escape_htmltag($printable); ?>"></td></tr>
|
</td><td class="valeur"><input id="printable" class="minwidth100" type="text" name="printable" value="<?php echo dol_escape_htmltag($printable); ?>"></td></tr>
|
||||||
|
|
||||||
|
<!-- Can be summed -->
|
||||||
<tr class="extra_totalizable"><td><?php echo $form->textwithpicto($langs->trans("Totalizable"), $langs->trans("TotalizableDesc")); ?></td><td class="valeur"><input id="totalizable" type="checkbox" name="totalizable"<?php echo ($totalizable ? ' checked' : ''); ?>></td></tr>
|
<tr class="extra_totalizable"><td><?php echo $form->textwithpicto($langs->trans("Totalizable"), $langs->trans("TotalizableDesc")); ?></td><td class="valeur"><input id="totalizable" type="checkbox" name="totalizable"<?php echo ($totalizable ? ' checked' : ''); ?>></td></tr>
|
||||||
|
|
||||||
|
<!-- Css edit -->
|
||||||
|
<tr class="extra_css"><td><?php echo $form->textwithpicto($langs->trans("CssOnEdit"), $langs->trans("HelpCssOnEditDesc")); ?></td><td class="valeur"><input id="css" type="text" name="css" value="<?php echo $css ?>"></td></tr>
|
||||||
|
|
||||||
|
<!-- Css view -->
|
||||||
|
<tr class="extra_cssview"><td><?php echo $form->textwithpicto($langs->trans("CssOnView"), $langs->trans("HelpCssOnViewDesc")); ?></td><td class="valeur"><input id="cssview" type="text" name="cssview" value="<?php echo $cssview; ?>"></td></tr>
|
||||||
|
|
||||||
|
<!-- Css list -->
|
||||||
|
<tr class="extra_csslist"><td><?php echo $form->textwithpicto($langs->trans("CssOnList"), $langs->trans("HelpCssOnListDesc")); ?></td><td class="valeur"><input id="csslist" type="text" name="csslist" value="<?php echo $csslist; ?>"></td></tr>
|
||||||
|
|
||||||
<!-- Help tooltip -->
|
<!-- Help tooltip -->
|
||||||
<tr class="help"><td><?php echo $form->textwithpicto($langs->trans("HelpOnTooltip"), $langs->trans("HelpOnTooltipDesc")); ?></td><td class="valeur"><input id="help" class="quatrevingtpercent" type="text" name="help" value="<?php echo dol_escape_htmltag($help); ?>"></td></tr>
|
<tr class="help"><td><?php echo $form->textwithpicto($langs->trans("HelpOnTooltip"), $langs->trans("HelpOnTooltipDesc")); ?></td><td class="valeur"><input id="help" class="quatrevingtpercent" type="text" name="help" value="<?php echo dol_escape_htmltag($help); ?>"></td></tr>
|
||||||
|
|
||||||
|
|||||||
@@ -38,14 +38,25 @@ $langs->load("modulebuilder");
|
|||||||
<!-- BEGIN PHP TEMPLATE admin_extrafields_view.tpl.php -->
|
<!-- BEGIN PHP TEMPLATE admin_extrafields_view.tpl.php -->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$langs->trans("DefineHereComplementaryAttributes", empty($textobject) ? '': $textobject).'</span><br>'."\n";
|
$title = '<span class="opacitymedium">'.$langs->trans("DefineHereComplementaryAttributes", empty($textobject) ? '': $textobject).'</span><br>'."\n";
|
||||||
print '<br>';
|
//if ($action != 'create' && $action != 'edit') {
|
||||||
|
$newcardbutton = dolGetButtonTitle($langs->trans('NewAttribute'), '', 'fa fa-plus-circle', $_SERVER["PHP_SELF"].'?action=create', '', (($action != 'create' && $action != 'edit') ? 1 : 1));
|
||||||
|
/*} else {
|
||||||
|
$newcardbutton = '';
|
||||||
|
}*/
|
||||||
|
|
||||||
|
print '<div class="centpercent tagtable marginbottomonly">';
|
||||||
|
print '<div class="tagtr">';
|
||||||
|
print '<div class="tagtd inline-block valignmiddle hideonsmartphoneimp">'.$title.'</div>';
|
||||||
|
print '<div class="tagtd right inline-block valignmiddle"">'.$newcardbutton.'</div>';
|
||||||
|
print '</div>';
|
||||||
|
print '</div>';
|
||||||
|
|
||||||
// Load $extrafields->attributes
|
// Load $extrafields->attributes
|
||||||
$extrafields->fetch_name_optionals_label($elementtype);
|
$extrafields->fetch_name_optionals_label($elementtype);
|
||||||
|
|
||||||
print '<div class="div-table-responsive">';
|
print '<div class="div-table-responsive">';
|
||||||
print '<table summary="listofattributes" class="noborder centpercent">';
|
print '<table summary="listofattributes" class="noborder centpercent small">';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td class="left">'.$langs->trans("Position");
|
print '<td class="left">'.$langs->trans("Position");
|
||||||
@@ -60,11 +71,14 @@ print '<td>'.$langs->trans("Type").'</td>';
|
|||||||
print '<td class="right">'.$langs->trans("Size").'</td>';
|
print '<td class="right">'.$langs->trans("Size").'</td>';
|
||||||
print '<td>'.$langs->trans("ComputedFormula").'</td>';
|
print '<td>'.$langs->trans("ComputedFormula").'</td>';
|
||||||
print '<td class="center">'.$langs->trans("Unique").'</td>';
|
print '<td class="center">'.$langs->trans("Unique").'</td>';
|
||||||
print '<td class="center">'.$langs->trans("Required").'</td>';
|
print '<td class="center">'.$langs->trans("Mandatory").'</td>';
|
||||||
print '<td class="center">'.$langs->trans("AlwaysEditable").'</td>';
|
print '<td class="center">'.$form->textwithpicto($langs->trans("AlwaysEditable"), $langs->trans("EditableWhenDraftOnly")).'</td>';
|
||||||
print '<td class="center">'.$form->textwithpicto($langs->trans("Visible"), $langs->trans("VisibleDesc")).'</td>';
|
print '<td class="center">'.$form->textwithpicto($langs->trans("Visibility"), $langs->trans("VisibleDesc")).'</td>';
|
||||||
print '<td class="center">'.$form->textwithpicto($langs->trans("DisplayOnPdf"), $langs->trans("DisplayOnPdfDesc")).'</td>';
|
print '<td class="center">'.$form->textwithpicto($langs->trans("DisplayOnPdf"), $langs->trans("DisplayOnPdfDesc")).'</td>';
|
||||||
print '<td class="center">'.$form->textwithpicto($langs->trans("Totalizable"), $langs->trans("TotalizableDesc")).'</td>';
|
print '<td class="center">'.$form->textwithpicto($langs->trans("Totalizable"), $langs->trans("TotalizableDesc")).'</td>';
|
||||||
|
print '<td class="center">'.$form->textwithpicto($langs->trans("CssOnEdit"), $langs->trans("HelpCssOnEditDesc")).'</td>';
|
||||||
|
print '<td class="center">'.$form->textwithpicto($langs->trans("CssOnView"), $langs->trans("HelpCssOnViewDesc")).'</td>';
|
||||||
|
print '<td class="center">'.$form->textwithpicto($langs->trans("CssOnList"), $langs->trans("HelpCssOnListDesc")).'</td>';
|
||||||
if (isModEnabled('multicompany')) {
|
if (isModEnabled('multicompany')) {
|
||||||
print '<td class="center">'.$langs->trans("Entity").'</td>';
|
print '<td class="center">'.$langs->trans("Entity").'</td>';
|
||||||
}
|
}
|
||||||
@@ -87,14 +101,14 @@ if (isset($extrafields->attributes[$elementtype]['type']) && is_array($extrafiel
|
|||||||
// Position
|
// Position
|
||||||
print "<td>".dol_escape_htmltag($extrafields->attributes[$elementtype]['pos'][$key])."</td>\n";
|
print "<td>".dol_escape_htmltag($extrafields->attributes[$elementtype]['pos'][$key])."</td>\n";
|
||||||
// Label
|
// Label
|
||||||
print "<td>".dol_escape_htmltag($extrafields->attributes[$elementtype]['label'][$key])."</td>\n"; // We don't translate here, we want admin to know what is the key not translated value
|
print '<td title="'.dol_escape_htmltag($extrafields->attributes[$elementtype]['label'][$key]).'" class="tdoverflowmax150">'.dol_escape_htmltag($extrafields->attributes[$elementtype]['label'][$key])."</td>\n"; // We don't translate here, we want admin to know what is the key not translated value
|
||||||
// Label translated
|
// Label translated
|
||||||
print '<td class="tdoverflowmax150" title="'.dol_escape_htmltag($langs->transnoentitiesnoconv($extrafields->attributes[$elementtype]['label'][$key])).'">'.dol_escape_htmltag($langs->transnoentitiesnoconv($extrafields->attributes[$elementtype]['label'][$key]))."</td>\n";
|
print '<td class="tdoverflowmax150" title="'.dol_escape_htmltag($langs->transnoentitiesnoconv($extrafields->attributes[$elementtype]['label'][$key])).'">'.dol_escape_htmltag($langs->transnoentitiesnoconv($extrafields->attributes[$elementtype]['label'][$key]))."</td>\n";
|
||||||
// Key
|
// Key
|
||||||
print "<td>".dol_escape_htmltag($key)."</td>\n";
|
print '<td title="'.dol_escape_htmltag($key).'" class="tdoverflowmax100">'.dol_escape_htmltag($key)."</td>\n";
|
||||||
// Type
|
// Type
|
||||||
$typetoshow = $type2label[$extrafields->attributes[$elementtype]['type'][$key]];
|
$typetoshow = $type2label[$extrafields->attributes[$elementtype]['type'][$key]];
|
||||||
print '<td title="'.dol_escape_htmltag($typetoshow).'" class="tdoverflowmax150">';
|
print '<td title="'.dol_escape_htmltag($typetoshow).'" class="tdoverflowmax100">';
|
||||||
print dol_escape_htmltag($typetoshow);
|
print dol_escape_htmltag($typetoshow);
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
// Size
|
// Size
|
||||||
@@ -113,6 +127,13 @@ if (isset($extrafields->attributes[$elementtype]['type']) && is_array($extrafiel
|
|||||||
print '<td class="center tdoverflowmax100" title="'.dol_escape_htmltag($extrafields->attributes[$elementtype]['printable'][$key]).'">'.dol_escape_htmltag($extrafields->attributes[$elementtype]['printable'][$key])."</td>\n";
|
print '<td class="center tdoverflowmax100" title="'.dol_escape_htmltag($extrafields->attributes[$elementtype]['printable'][$key]).'">'.dol_escape_htmltag($extrafields->attributes[$elementtype]['printable'][$key])."</td>\n";
|
||||||
// Summable
|
// Summable
|
||||||
print '<td class="center">'.yn($extrafields->attributes[$elementtype]['totalizable'][$key])."</td>\n";
|
print '<td class="center">'.yn($extrafields->attributes[$elementtype]['totalizable'][$key])."</td>\n";
|
||||||
|
// CSS
|
||||||
|
print '<td class="center tdoverflowmax100" title="'.dol_escape_htmltag($extrafields->attributes[$elementtype]['css'][$key]).'">'.dol_escape_htmltag($extrafields->attributes[$elementtype]['css'][$key])."</td>\n";
|
||||||
|
// CSS view
|
||||||
|
print '<td class="center tdoverflowmax100" title="'.dol_escape_htmltag($extrafields->attributes[$elementtype]['cssview'][$key]).'">'.dol_escape_htmltag($extrafields->attributes[$elementtype]['cssview'][$key])."</td>\n";
|
||||||
|
// CSS list
|
||||||
|
print '<td class="center tdoverflowmax100" title="'.dol_escape_htmltag($extrafields->attributes[$elementtype]['csslist'][$key]).'">'.dol_escape_htmltag($extrafields->attributes[$elementtype]['csslist'][$key])."</td>\n";
|
||||||
|
// Multicompany
|
||||||
if (isModEnabled('multicompany')) {
|
if (isModEnabled('multicompany')) {
|
||||||
print '<td class="center">';
|
print '<td class="center">';
|
||||||
if (empty($extrafields->attributes[$elementtype]['entityid'][$key])) {
|
if (empty($extrafields->attributes[$elementtype]['entityid'][$key])) {
|
||||||
@@ -131,6 +152,7 @@ if (isset($extrafields->attributes[$elementtype]['type']) && is_array($extrafiel
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
// Actions
|
||||||
print '<td class="right nowraponall">';
|
print '<td class="right nowraponall">';
|
||||||
print '<a class="editfielda" href="'.$_SERVER["PHP_SELF"].'?action=edit&token='.newToken().'&attrname='.urlencode($key).'#formeditextrafield">'.img_edit().'</a>';
|
print '<a class="editfielda" href="'.$_SERVER["PHP_SELF"].'?action=edit&token='.newToken().'&attrname='.urlencode($key).'#formeditextrafield">'.img_edit().'</a>';
|
||||||
print ' <a class="paddingleft" href="'.$_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&attrname='.urlencode($key).'">'.img_delete().'</a>';
|
print ' <a class="paddingleft" href="'.$_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&attrname='.urlencode($key).'">'.img_delete().'</a>';
|
||||||
@@ -138,7 +160,7 @@ if (isset($extrafields->attributes[$elementtype]['type']) && is_array($extrafiel
|
|||||||
print "</tr>";
|
print "</tr>";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$colspan = 14;
|
$colspan = 17;
|
||||||
if (isModEnabled('multicompany')) {
|
if (isModEnabled('multicompany')) {
|
||||||
$colspan++;
|
$colspan++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,13 +78,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
/* */
|
/* */
|
||||||
|
|||||||
@@ -81,13 +81,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -82,13 +82,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -88,14 +88,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -88,14 +88,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -87,14 +87,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2314,3 +2314,10 @@ ShowHideTheNRequests=Show/hide the %s SQL request(s)
|
|||||||
DefinedAPathForAntivirusCommandIntoSetup=Define a path for an antivirus program into <b>%s</b>
|
DefinedAPathForAntivirusCommandIntoSetup=Define a path for an antivirus program into <b>%s</b>
|
||||||
TriggerCodes=Triggerable events
|
TriggerCodes=Triggerable events
|
||||||
TriggerCodeInfo=Enter here the trigger code(s) that must generate a post of a web request (only external URL are allowed). You can enter several trigger codes separated by a comma.
|
TriggerCodeInfo=Enter here the trigger code(s) that must generate a post of a web request (only external URL are allowed). You can enter several trigger codes separated by a comma.
|
||||||
|
EditableWhenDraftOnly=If unchecked, the value can only be modified when object has a draft status
|
||||||
|
CssOnEdit=Css on edit pages
|
||||||
|
CssOnView=Css on view pages
|
||||||
|
CssOnList=Css on list pages
|
||||||
|
HelpCssOnEditDesc=The Css used when editing the field.<br>Example: "minwiwdth100 maxwidth500 widthcentpercentminusx"
|
||||||
|
HelpCssOnViewDesc=The Css used when viewing the field.
|
||||||
|
HelpCssOnListDesc=The Css used when field is inside a list table.<br>Example: "tdoverflowmax200"
|
||||||
|
|||||||
@@ -91,8 +91,8 @@ ListOfPermissionsDefined=List of defined permissions
|
|||||||
SeeExamples=See examples here
|
SeeExamples=See examples here
|
||||||
EnabledDesc=Condition to have this field active.<br><br>Examples:<br>1<br>isModEnabled('MAIN_MODULE_MYMODULE')<br>getDolGlobalString('MYMODULE_OPTION')==2
|
EnabledDesc=Condition to have this field active.<br><br>Examples:<br>1<br>isModEnabled('MAIN_MODULE_MYMODULE')<br>getDolGlobalString('MYMODULE_OPTION')==2
|
||||||
VisibleDesc=Is the field visible ? (Examples: 0=Never visible, 1=Visible on list and create/update/view forms, 2=Visible on list only, 3=Visible on create/update/view form only (not list), 4=Visible on list and update/view form only (not create), 5=Visible on list end view form only (not create, not update).<br><br>Using a negative value means field is not shown by default on list but can be selected for viewing).<br><br>It can be an expression, for example:<br>preg_match('/public/', $_SERVER['PHP_SELF'])?0:1<br>$user->hasRight('holiday', 'define_holiday')?1:5
|
VisibleDesc=Is the field visible ? (Examples: 0=Never visible, 1=Visible on list and create/update/view forms, 2=Visible on list only, 3=Visible on create/update/view form only (not list), 4=Visible on list and update/view form only (not create), 5=Visible on list end view form only (not create, not update).<br><br>Using a negative value means field is not shown by default on list but can be selected for viewing).<br><br>It can be an expression, for example:<br>preg_match('/public/', $_SERVER['PHP_SELF'])?0:1<br>$user->hasRight('holiday', 'define_holiday')?1:5
|
||||||
DisplayOnPdfDesc=Display this field on compatible PDF documents, you can manage position with "Position" field.<br>Currently, known compatibles PDF models are : eratosthene (order), espadon (ship), sponge (invoices), cyan (propal/quotation), cornas (supplier order)<br><br><strong>For document :</strong><br>0 = not displayed <br>1 = display<br>2 = display only if not empty<br><br><strong>For document lines :</strong><br>0 = not displayed <br>1 = displayed in a column<br>3 = display in line description column after the description<br>4 = display in description column after the description only if not empty
|
DisplayOnPdfDesc=Display this field on compatible PDF documents, you can manage position with "Position" field.<br><strong>For document :</strong><br>0 = not displayed <br>1 = display<br>2 = display only if not empty<br><br><strong>For document lines :</strong><br>0 = not displayed <br>1 = displayed in a column<br>3 = display in line description column after the description<br>4 = display in description column after the description only if not empty
|
||||||
DisplayOnPdf=Display on PDF
|
DisplayOnPdf=On PDF
|
||||||
IsAMeasureDesc=Can the value of field be cumulated to get a total into list? (Examples: 1 or 0)
|
IsAMeasureDesc=Can the value of field be cumulated to get a total into list? (Examples: 1 or 0)
|
||||||
SearchAllDesc=Is the field used to make a search from the quick search tool? (Examples: 1 or 0)
|
SearchAllDesc=Is the field used to make a search from the quick search tool? (Examples: 1 or 0)
|
||||||
SpecDefDesc=Enter here all documentation you want to provide with your module that is not already defined by other tabs. You can use .md or better, the rich .asciidoc syntax.
|
SpecDefDesc=Enter here all documentation you want to provide with your module that is not already defined by other tabs. You can use .md or better, the rich .asciidoc syntax.
|
||||||
|
|||||||
@@ -113,10 +113,12 @@ print dol_get_fiche_end();
|
|||||||
|
|
||||||
|
|
||||||
// Buttons
|
// Buttons
|
||||||
if ($action != 'create' && $action != 'edit') {
|
if ((float) DOL_VERSION < 17) { // On v17+, the "New Attribute" button is included into tpl.
|
||||||
print '<div class="tabsAction">';
|
if ($action != 'create' && $action != 'edit') {
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
print '<div class="tabsAction">';
|
||||||
print "</div>";
|
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
||||||
|
print "</div>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -86,14 +86,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -91,14 +91,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -92,14 +92,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -85,13 +85,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -93,13 +93,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -80,13 +80,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|||||||
@@ -91,14 +91,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -81,13 +81,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|||||||
@@ -81,13 +81,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|||||||
@@ -79,14 +79,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -79,14 +79,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creation of an optional field
|
* Creation of an optional field
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -81,13 +81,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<div name="topofform"></div><br>';
|
print '<div name="topofform"></div><br>';
|
||||||
|
|||||||
@@ -81,13 +81,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -81,13 +81,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -76,13 +76,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|||||||
@@ -82,13 +82,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -83,13 +83,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
@@ -82,13 +82,6 @@ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
if ($action != 'create' && $action != 'edit') {
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
|
|
||||||
print "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Creation of an optional field
|
// Creation of an optional field
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
print '<br><div id="newattrib"></div>';
|
print '<br><div id="newattrib"></div>';
|
||||||
|
|||||||
Reference in New Issue
Block a user