mirror of
https://github.com/Dolibarr/dolibarr
synced 2024-11-21 20:09:03 +00:00
Debug v21
This commit is contained in:
parent
b27cbb5cd3
commit
829edfe651
@ -1004,7 +1004,6 @@ VideoGeneration
|
||||
#####################################################################
|
||||
#####################################################################
|
||||
AddService
|
||||
AnHelpMessage
|
||||
Analytic
|
||||
AnalyticLabel
|
||||
BankId
|
||||
@ -1036,6 +1035,7 @@ FailedToLogin
|
||||
First
|
||||
GroupCreate
|
||||
GroupUpdate
|
||||
HelpMessage
|
||||
INVOICE_RETAINED_WARRANTY_LIMITED_TO_FINAL_SITUATION
|
||||
INVOICE_RETAINED_WARRANTY_LIMITED_TO_SITUATION
|
||||
INVOICE_SITUATION_DEFAULT_RETAINED_WARRANTY_COND_ID
|
||||
|
@ -945,7 +945,7 @@ class FormSetupItem
|
||||
}
|
||||
|
||||
/**
|
||||
* generatec default input field
|
||||
* Generate default input field
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
@ -104,7 +104,7 @@ if (!$user->admin) {
|
||||
|
||||
// Setup conf for selection of an URL
|
||||
$item = $formSetup->newItem('MYMODULE_MYPARAM1');
|
||||
$item->fieldOverride = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'];
|
||||
$item->fieldAttr['placeholder'] = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'];
|
||||
$item->cssClass = 'minwidth500';
|
||||
|
||||
// Setup conf for selection of a simple string input
|
||||
@ -116,20 +116,20 @@ $item->fieldAttr['placeholder'] = 'A placeholder here';
|
||||
$item = $formSetup->newItem('MYMODULE_MYPARAM3');
|
||||
$item->nameText = $item->getNameText().' more html text ';
|
||||
|
||||
// Setup conf for a selection of a thirdparty
|
||||
// Setup conf for a selection of a Thirdparty
|
||||
$item = $formSetup->newItem('MYMODULE_MYPARAM4');
|
||||
$item->setAsThirdpartyType();
|
||||
|
||||
// Setup conf for a selection of a boolean
|
||||
$formSetup->newItem('MYMODULE_MYPARAM5')->setAsYesNo();
|
||||
|
||||
// Setup conf for a selection of an email template of type thirdparty
|
||||
// Setup conf for a selection of an Email template of type thirdparty
|
||||
$formSetup->newItem('MYMODULE_MYPARAM6')->setAsEmailTemplate('thirdparty');
|
||||
|
||||
// Setup conf for a selection of a secured key
|
||||
//$formSetup->newItem('MYMODULE_MYPARAM7')->setAsSecureKey();
|
||||
|
||||
// Setup conf for a selection of a product
|
||||
// Setup conf for a selection of a Product
|
||||
$formSetup->newItem('MYMODULE_MYPARAM8')->setAsProduct();
|
||||
|
||||
// Add a title for a new section
|
||||
@ -159,15 +159,26 @@ $formSetup->newItem('MYMODULE_CATEGORY_ID_XXX')->setAsCategory('product');
|
||||
$item = $formSetup->newItem('MYMODULE_MYPARAM10');
|
||||
$item->setAsColor();
|
||||
$item->defaultFieldValue = '#FF0000';
|
||||
$item->nameText = $item->getNameText().' more html text ';
|
||||
$item->fieldInputOverride = '';
|
||||
$item->helpText = $langs->transnoentities('AnHelpMessage');
|
||||
//$item->fieldValue = '';
|
||||
//$item->fieldAttr = array() ; // fields attribute only for compatible fields like input text
|
||||
//$item->fieldOverride = false; // set this var to override field output will override $fieldInputOverride and $fieldOutputOverride too
|
||||
//$item->fieldInputOverride = false; // set this var to override field input
|
||||
//$item->fieldOutputOverride = false; // set this var to override field output
|
||||
|
||||
$item = $formSetup->newItem('TEST_MYPARAM11')->setAsHtml();
|
||||
$item->nameText = $item->getNameText().' more html text ';
|
||||
$item->fieldInputOverride = '';
|
||||
$item->helpText = $langs->transnoentities('HelpMessage');
|
||||
$item->cssClass = 'minwidth500';
|
||||
|
||||
$item = $formSetup->newItem('TEST_MYPARAM12');
|
||||
$item->fieldOverride = "Value forced, can't be modified";
|
||||
$item->cssClass = 'minwidth500';
|
||||
|
||||
//$item = $formSetup->newItem('TEST_MYPARAM13')->setAsDate(); // Not yet implemented
|
||||
|
||||
// End of definition of parameters
|
||||
|
||||
|
||||
$setupnotempty += count($formSetup->items);
|
||||
|
||||
|
@ -6199,7 +6199,7 @@ table.jPicker tr:first-of-type td {
|
||||
table.jPicker {
|
||||
border-radius: 5px;
|
||||
border: 1px solid #bbb !important;
|
||||
background-color: #f4f4f4 !important;
|
||||
background-color: var(--colorbackbody) !important;
|
||||
box-shadow: 0px 0px 10px #ccc;
|
||||
}
|
||||
.jPicker .Grid {
|
||||
@ -6220,6 +6220,13 @@ table.jPicker {
|
||||
.jPicker .Preview div {
|
||||
height: 36px !important;
|
||||
}
|
||||
.jPicker input[type="button"] {
|
||||
background: var(--butactionbg);
|
||||
color: var(--textbutaction);
|
||||
border-radius: 4px;
|
||||
border-collapse: collapse;
|
||||
border: none;
|
||||
}
|
||||
|
||||
A.color, A.color:active, A.color:visited {
|
||||
position : relative;
|
||||
|
@ -6152,7 +6152,7 @@ table.jPicker tr:first-of-type td {
|
||||
table.jPicker {
|
||||
border-radius: 5px;
|
||||
border: 1px solid #bbb !important;
|
||||
background-color: #f4f4f4 !important;
|
||||
background-color: var(--colorbackbody) !important;
|
||||
box-shadow: 0px 0px 10px #ccc;
|
||||
}
|
||||
.jPicker .Grid {
|
||||
@ -6173,6 +6173,13 @@ table.jPicker {
|
||||
.jPicker .Preview div {
|
||||
height: 36px !important;
|
||||
}
|
||||
.jPicker input[type="button"] {
|
||||
background: var(--butactionbg);
|
||||
color: var(--textbutaction);
|
||||
border-radius: 4px;
|
||||
border-collapse: collapse;
|
||||
border: none;
|
||||
}
|
||||
|
||||
A.color, A.color:active, A.color:visited {
|
||||
position : relative;
|
||||
|
Loading…
Reference in New Issue
Block a user