diff --git a/htdocs/accountancy/bookkeeping/balance.php b/htdocs/accountancy/bookkeeping/balance.php
index f443fded501..4de2be6fcbb 100644
--- a/htdocs/accountancy/bookkeeping/balance.php
+++ b/htdocs/accountancy/bookkeeping/balance.php
@@ -298,11 +298,12 @@ if ($action != 'export_csv')
if (!empty($show_subgroup))
{
- // Permet d'afficher le compte comptable
+ // Show accounting account
if (empty($displayed_account) || $root_account_description != $displayed_account) {
- // Affiche un Sous-Total par compte comptable
+ // Show subtotal per accounting account
if ($displayed_account != "") {
- print '
'.$langs->trans("SubTotal").': ';
+ print '';
+ print ''.$langs->trans("SubTotal").': ';
print ''.price($sous_total_debit).' ';
print ''.price($sous_total_credit).' ';
print ''.price(price2num($sous_total_credit - $sous_total_debit)).' ';
diff --git a/htdocs/core/class/html.formprojet.class.php b/htdocs/core/class/html.formprojet.class.php
index b6c7017e408..bf3db0cc65c 100644
--- a/htdocs/core/class/html.formprojet.class.php
+++ b/htdocs/core/class/html.formprojet.class.php
@@ -620,11 +620,12 @@ class FormProjets
* @param int $showallnone Add choice "All" and "None"
* @param int $showpercent Show default probability for status
* @param string $morecss Add more css
+ * @param int $noadmininfo 0=Add admin info, 1=Disable admin info
* @return int|string The HTML select list of element or '' if nothing or -1 if KO
*/
- public function selectOpportunityStatus($htmlname, $preselected = '-1', $showempty = 1, $useshortlabel = 0, $showallnone = 0, $showpercent = 0, $morecss = '')
+ public function selectOpportunityStatus($htmlname, $preselected = '-1', $showempty = 1, $useshortlabel = 0, $showallnone = 0, $showpercent = 0, $morecss = '', $noadmininfo = 0)
{
- global $conf, $langs;
+ global $conf, $langs, $user;
$sql = "SELECT rowid, code, label, percent";
$sql .= " FROM ".MAIN_DB_PREFIX.'c_lead_status';
@@ -670,6 +671,7 @@ class FormProjets
$i++;
}
$sellist .= '';
+ if ($user->admin && !$noadmininfo) $sellist .= info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
}
/*else
{
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 31716dc3f3c..878b85993b5 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -3149,7 +3149,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
if (empty($srconly) && in_array($pictowithouttext, array(
'1downarrow', '1uparrow', '1leftarrow', '1rightarrow', '1uparrow_selected', '1downarrow_selected', '1leftarrow_selected', '1rightarrow_selected',
'accountancy', 'address', 'bank_account', 'barcode', 'bank', 'bill', 'bookmark', 'bom', 'building',
- 'cash-register', 'check', 'close_title', 'company', 'contact', 'contract', 'cubes',
+ 'cash-register', 'category', 'check', 'close_title', 'company', 'contact', 'contract', 'cubes',
'delete', 'dolly', 'dollyrevert', 'edit', 'ellipsis-h', 'external-link-alt', 'external-link-square-alt',
'filter', 'file-code', 'file-export', 'file-import', 'file-upload', 'folder', 'folder-open', 'globe', 'globe-americas', 'grip', 'grip_title', 'help',
'intervention', 'label', 'language', 'list', 'listlight', 'lot',
diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php
index 940c22a59e0..f3690694b01 100644
--- a/htdocs/core/lib/project.lib.php
+++ b/htdocs/core/lib/project.lib.php
@@ -2226,10 +2226,10 @@ function print_projecttasks_array($db, $form, $socid, $projectsListId, $mytasks
print ' ';
print '';
- print $projectstatic->getNomUrl(1);
+ print $projectstatic->getNomUrl(1, '', 0, '', '-', 0 , -1, 'nowraponall');
if (!in_array('projectlabel', $hiddenfields)) print ''.dol_trunc($objp->title, 24).' ';
print ' ';
- print '';
+ print ' ';
if ($objp->fk_soc > 0)
{
$thirdpartystatic->id = $objp->fk_soc;
diff --git a/htdocs/langs/en_US/accountancy.lang b/htdocs/langs/en_US/accountancy.lang
index a16b6295df5..b8ce37a0956 100644
--- a/htdocs/langs/en_US/accountancy.lang
+++ b/htdocs/langs/en_US/accountancy.lang
@@ -234,6 +234,7 @@ ThirdpartyAccountNotDefinedOrThirdPartyUnknownSubledgerIgnored=Third-party unkno
ThirdpartyAccountNotDefinedOrThirdPartyUnknownBlocking=Third-party account not defined or third party unknown. Blocking error.
UnknownAccountForThirdpartyAndWaitingAccountNotDefinedBlocking=Unknown third-party account and waiting account not defined. Blocking error
PaymentsNotLinkedToProduct=Payment not linked to any product / service
+OpeningBalance=Opening balance
ShowOpeningBalance=Show opening balance
HideOpeningBalance=Hide opening balance
ShowSubtotalByGroup=Show subtotal by group
diff --git a/htdocs/langs/en_US/projects.lang b/htdocs/langs/en_US/projects.lang
index cdc0e6b3c95..bb42bff3c87 100644
--- a/htdocs/langs/en_US/projects.lang
+++ b/htdocs/langs/en_US/projects.lang
@@ -255,7 +255,7 @@ ServiceToUseOnLines=Service to use on lines
InvoiceGeneratedFromTimeSpent=Invoice %s has been generated from time spent on project
ProjectBillTimeDescription=Check if you enter timesheet on tasks of project AND you plan to generate invoice(s) from the timesheet to bill the customer of the project (do not check if you plan to create invoice that is not based on entered timesheets). Note: To generate invoice, go on tab 'Time spent' of the project and select lines to include.
ProjectFollowOpportunity=Follow opportunity
-ProjectFollowTasks=Follow tasks
+ProjectFollowTasks=Follow tasks or time spent
Usage=Usage
UsageOpportunity=Usage: Opportunity
UsageTasks=Usage: Tasks
diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php
index e41c3da3e88..c4a1eb9a71d 100644
--- a/htdocs/projet/card.php
+++ b/htdocs/projet/card.php
@@ -558,6 +558,19 @@ if ($action == 'create' && $user->rights->projet->creer)
print ' ';
$htmltext = $langs->trans("ProjectFollowOpportunity");
print $form->textwithpicto($langs->trans("ProjectFollowOpportunity"), $htmltext);
+ print '';
print ' ';
}
if (empty($conf->global->PROJECT_HIDE_TASKS))
@@ -591,7 +604,7 @@ if ($action == 'create' && $user->rights->projet->creer)
print ' ';
$filteronlist = '';
if (!empty($conf->global->PROJECT_FILTER_FOR_THIRDPARTY_LIST)) $filteronlist = $conf->global->PROJECT_FILTER_FOR_THIRDPARTY_LIST;
- $text = $form->select_company(GETPOST('socid', 'int'), 'socid', $filteronlist, 'SelectThirdParty', 1, 0, array(), 0, 'minwidth300');
+ $text = img_picto('', 'company').$form->select_company(GETPOST('socid', 'int'), 'socid', $filteronlist, 'SelectThirdParty', 1, 0, array(), 0, 'minwidth300 widthcentpercentminusx');
if (empty($conf->global->PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS) && empty($conf->dol_use_jmobile))
{
$texthelp = $langs->trans("IfNeedToUseOtherObjectKeepEmpty");
@@ -632,27 +645,27 @@ if ($action == 'create' && $user->rights->projet->creer)
if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES))
{
// Opportunity status
- print ' '.$langs->trans("OpportunityStatus").' ';
+ print ''.$langs->trans("OpportunityStatus").' ';
print '';
print $formproject->selectOpportunityStatus('opp_status', GETPOST('opp_status') ?GETPOST('opp_status') : $object->opp_status);
print ' ';
// Opportunity probability
- print ''.$langs->trans("OpportunityProbability").' ';
- print ' % ';
- print ' ';
+ print ''.$langs->trans("OpportunityProbability").' ';
+ print ' % ';
+ print ' ';
print ' ';
print ' ';
// Opportunity amount
- print ''.$langs->trans("OpportunityAmount").' ';
- print ' ';
+ print ''.$langs->trans("OpportunityAmount").' ';
+ print ' ';
print ' ';
}
// Budget
print ''.$langs->trans("Budget").' ';
- print ' ';
+ print ' ';
print ' ';
// Description
@@ -667,7 +680,7 @@ if ($action == 'create' && $user->rights->projet->creer)
print ''.$langs->trans("Categories").' ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_PROJECT, '', 'parent', 64, 0, 1);
$arrayselected = GETPOST('categories', 'array');
- print $form->multiselectarray('categories', $cate_arbo, $arrayselected, '', 0, '', 0, '100%');
+ print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, $arrayselected, '', 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
print " ";
}
@@ -833,9 +846,22 @@ elseif ($object->id > 0)
print '';
if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES))
{
- print ' usage_opportunity ? ' checked="checked"' : '')).'"> ';
+ print ' usage_opportunity ? ' checked="checked"' : '')).'"> ';
$htmltext = $langs->trans("ProjectFollowOpportunity");
print $form->textwithpicto($langs->trans("ProjectFollowOpportunity"), $htmltext);
+ print '';
print ' ';
}
if (empty($conf->global->PROJECT_HIDE_TASKS))
@@ -884,8 +910,9 @@ elseif ($object->id > 0)
if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES))
{
+ $classfortr = ($object->usage_opportunity ? '' : ' hideobject');
// Opportunity status
- print ' '.$langs->trans("OpportunityStatus").' ';
+ print ''.$langs->trans("OpportunityStatus").' ';
print '';
print $formproject->selectOpportunityStatus('opp_status', $object->opp_status, 1, 0, 0, 0, 'inline-block valignmiddle');
print ' ';
@@ -896,15 +923,15 @@ elseif ($object->id > 0)
print '
';
// Opportunity probability
- print ''.$langs->trans("OpportunityProbability").' ';
- print ' %';
+ print ''.$langs->trans("OpportunityProbability").' ';
+ print ' %';
print ' ';
print ' ';
print ' ';
// Opportunity amount
- print ''.$langs->trans("OpportunityAmount").' ';
- print ' ';
+ print ''.$langs->trans("OpportunityAmount").' ';
+ print ' ';
print ' ';
}
@@ -923,7 +950,7 @@ elseif ($object->id > 0)
// Budget
print ''.$langs->trans("Budget").' ';
- print ' ';
+ print ' ';
print ' ';
// Description
@@ -936,14 +963,14 @@ elseif ($object->id > 0)
// Tags-Categories
if ($conf->categorie->enabled)
{
- print ''.$langs->trans("Categories").' ';
+ print ' '.$langs->trans("Categories").' ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_PROJECT, '', 'parent', 64, 0, 1);
$c = new Categorie($db);
$cats = $c->containing($object->id, Categorie::TYPE_PROJECT);
foreach ($cats as $cat) {
$arrayselected[] = $cat->id;
}
- print $form->multiselectarray('categories', $cate_arbo, $arrayselected, '', 0, '', 0, '100%');
+ print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, '0');
print " ";
}
diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php
index 554bc84766a..417a825a77d 100644
--- a/htdocs/projet/class/project.class.php
+++ b/htdocs/projet/class/project.class.php
@@ -1026,18 +1026,19 @@ class Project extends CommonObject
}
/**
- * Return clicable name (with picto eventually)
+ * Return clickable name (with picto eventually)
*
* @param int $withpicto 0=No picto, 1=Include picto into link, 2=Only picto
- * @param string $option Variant ('', 'nolink')
+ * @param string $option Variant where the link point to ('', 'nolink')
* @param int $addlabel 0=Default, 1=Add label into string, >1=Add first chars into string
* @param string $moreinpopup Text to add into popup
* @param string $sep Separator between ref and label if option addlabel is set
* @param int $notooltip 1=Disable tooltip
* @param int $save_lastsearch_value -1=Auto, 0=No save of lastsearch_values when clicking, 1=Save lastsearch_values whenclicking
+ * @param string $morecss More css on a link
* @return string String with URL
*/
- public function getNomUrl($withpicto = 0, $option = '', $addlabel = 0, $moreinpopup = '', $sep = ' - ', $notooltip = 0, $save_lastsearch_value = -1)
+ public function getNomUrl($withpicto = 0, $option = '', $addlabel = 0, $moreinpopup = '', $sep = ' - ', $notooltip = 0, $save_lastsearch_value = -1, $morecss = '')
{
global $conf, $langs, $user, $hookmanager;
@@ -1115,6 +1116,7 @@ class Project extends CommonObject
if (!$this->public) $picto = 'project';
$linkstart = '';
$linkend = ' ';
diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php
index 3d6903065ab..f9cab81f43c 100644
--- a/htdocs/projet/index.php
+++ b/htdocs/projet/index.php
@@ -318,7 +318,7 @@ if ($resql)
}
print '';
- print '';
+ print ' ';
if ($obj->socid)
{
$companystatic->id = $obj->socid;
diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 195d4df88bb..96a9dd7deed 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1331,7 +1331,7 @@ else
// Country
print ' '.$form->editfieldkey('Country', 'selectcountry_id', '', $object, 0).' ';
print img_picto('', 'globe-americas', 'class="paddingrightonly"');
- print $form->select_country((GETPOST('country_id') != '' ?GETPOST('country_id') : $object->country_id));
+ print $form->select_country((GETPOST('country_id') != '' ? GETPOST('country_id') : $object->country_id), 'country_id', '', 0, 'minwidth300 widthcentpercentminusx');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
print ' ';
@@ -1354,16 +1354,16 @@ else
// Phone / Fax
print ''.$form->editfieldkey('Phone', 'phone', '', $object, 0).' ';
- print 'browser->layout == 'phone' ? ' colspan="3"': '').'>'.img_picto('', 'object_phoning').' ';
+ print 'browser->layout == 'phone' ? ' colspan="3"': '').'>'.img_picto('', 'object_phoning').' ';
if ($conf->browser->layout == 'phone') print '';
print ''.$form->editfieldkey('Fax', 'fax', '', $object, 0).' ';
- print 'browser->layout == 'phone' ? ' colspan="3"': '').'>'.img_picto('', 'object_phoning_fax').' ';
+ print 'browser->layout == 'phone' ? ' colspan="3"': '').'>'.img_picto('', 'object_phoning_fax').' ';
// Email / Web
print ''.$form->editfieldkey('EMail', 'email', '', $object, 0, 'string', '', $conf->global->SOCIETE_EMAIL_MANDATORY).' ';
- print ''.img_picto('', 'object_email').' ';
+ print ''.img_picto('', 'object_email').' ';
print ''.$form->editfieldkey('Web', 'url', '', $object, 0).' ';
- print ''.img_picto('', 'globe').' ';
+ print ''.img_picto('', 'globe').' ';
if (!empty($conf->socialnetworks->enabled)) {
foreach ($socialnetworks as $key => $value) {
@@ -1380,42 +1380,6 @@ else
}
}
- // if (! empty($conf->socialnetworks->enabled))
- // {
- // // Skype
- // if (! empty($conf->global->SOCIALNETWORKS_SKYPE))
- // {
- // print ''.$form->editfieldkey('Skype', 'skype', '', $object, 0).' ';
- // print '';
- // print ' skype).'">';
- // print ' ';
- // }
- // // Twitter
- // if (! empty($conf->global->SOCIALNETWORKS_TWITTER))
- // {
- // print ''.$form->editfieldkey('Twitter', 'twitter', '', $object, 0).' ';
- // print '';
- // print 'twitter).'">';
- // print ' ';
- // }
- // // Facebook
- // if (! empty($conf->global->SOCIALNETWORKS_FACEBOOK))
- // {
- // print ''.$form->editfieldkey('Facebook', 'facebook', '', $object, 0).' ';
- // print '';
- // print ' facebook).'">';
- // print ' ';
- // }
- // // LinkedIn
- // if (! empty($conf->global->SOCIALNETWORKS_LINKEDIN))
- // {
- // print ''.$form->editfieldkey('LinkedIn', 'linkedin', '', $object, 0).' ';
- // print '';
- // print ' linkedin).'">';
- // print ' ';
- // }
- // }
-
// Prof ids
$i = 1; $j = 0; $NBCOLS = ($conf->browser->layout == 'phone' ? 1 : 2);
while ($i <= 6)
@@ -1432,7 +1396,7 @@ else
print $formcompany->get_input_id_prof($i, $key, $object->$key, $object->country_code);
print '';
- if (($j % 2) == 1) print '';
+ if (($j % $NBCOLS) == ($NBCOLS - 1)) print '';
$j++;
}
$i++;
@@ -1481,9 +1445,11 @@ else
//TODO: Place into a function to control showing by country or study better option
if ($mysoc->localtax1_assuj == "1" && $mysoc->localtax2_assuj == "1")
{
- print ''.$langs->transcountry("LocalTax1IsUsed", $mysoc->country_code).' ';
+ print ' '.$langs->transcountry("LocalTax1IsUsed", $mysoc->country_code).' ';
print $form->selectyesno('localtax1assuj_value', (isset($conf->global->THIRDPARTY_DEFAULT_USELOCALTAX1) ? $conf->global->THIRDPARTY_DEFAULT_USELOCALTAX1 : 0), 1);
- print ' '.$langs->transcountry("LocalTax2IsUsed", $mysoc->country_code).' ';
+ print ' ';
+ if ($conf->browser->layout == 'phone') print '';
+ print ' '.$langs->transcountry("LocalTax2IsUsed", $mysoc->country_code).' ';
print $form->selectyesno('localtax2assuj_value', (isset($conf->global->THIRDPARTY_DEFAULT_USELOCALTAX2) ? $conf->global->THIRDPARTY_DEFAULT_USELOCALTAX2 : 0), 1);
print ' ';
}
@@ -1883,6 +1849,7 @@ else
print '';
print $formcompany->selectProspectCustomerType($object->client);
print ' ';
+ if ($conf->browser->layout == 'phone') print '';
print ''.$form->editfieldkey('CustomerCode', 'customer_code', '', $object, 0).' ';
print '';
@@ -1914,15 +1881,18 @@ else
|| (!empty($conf->supplier_proposal->enabled) && !empty($user->rights->supplier_proposal->lire)))
{
print ' ';
- print ''.$form->editfieldkey('Supplier', 'fournisseur', '', $object, 0, 'string', '', 1).' ';
+ print ' '.$form->editfieldkey('Supplier', 'fournisseur', '', $object, 0, 'string', '', 1).' ';
+ print '';
print $form->selectyesno("fournisseur", $object->fournisseur, 1);
print ' ';
+ if ($conf->browser->layout == 'phone') print ' ';
print '';
if (!empty($conf->fournisseur->enabled) && !empty($user->rights->fournisseur->lire))
{
print $form->editfieldkey('SupplierCode', 'supplier_code', '', $object, 0);
}
- print ' ';
+ print ' ';
+ print '';
print '';
if ((!$object->code_fournisseur || $object->code_fournisseur == -1) && $modCodeFournisseur->code_auto)
{
@@ -1971,7 +1941,9 @@ else
// Zip / Town
print ' '.$form->editfieldkey('Zip', 'zipcode', '', $object, 0).' ';
print $formcompany->select_ziptown($object->zip, 'zipcode', array('town', 'selectcountry_id', 'state_id'), 0, 0, '', 'maxwidth50onsmartphone');
- print ' '.$form->editfieldkey('Town', 'town', '', $object, 0).' ';
+ print ' ';
+ if ($conf->browser->layout == 'phone') print '';
+ print ''.$form->editfieldkey('Town', 'town', '', $object, 0).' ';
print $formcompany->select_ziptown($object->town, 'town', array('zipcode', 'selectcountry_id', 'state_id'));
print $form->widgetForTranslation("town", $object, $permissiontoadd, 'string', 'alphanohtml', 'maxwidth100 quatrevingtpercent');
print ' ';
@@ -1979,7 +1951,7 @@ else
// Country
print ''.$form->editfieldkey('Country', 'selectcounty_id', '', $object, 0).' ';
print img_picto('', 'globe-americas', 'class="paddingrightonly"');
- print $form->select_country((GETPOSTISSET('country_id') ? GETPOST('country_id') : $object->country_id), 'country_id');
+ print $form->select_country((GETPOSTISSET('country_id') ? GETPOST('country_id') : $object->country_id), 'country_id', '', 0, 'minwidth300 widthcentpercentminusx');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
print ' ';
@@ -2001,15 +1973,16 @@ else
// Phone / Fax
print ''.$form->editfieldkey('Phone', 'phone', GETPOST('phone', 'alpha'), $object, 0).' ';
- print ''.img_picto('', 'object_phoning').' ';
+ print ''.img_picto('', 'object_phoning').' ';
+ if ($conf->browser->layout == 'phone') print '';
print ''.$form->editfieldkey('Fax', 'fax', GETPOST('fax', 'alpha'), $object, 0).' ';
- print ''.img_picto('', 'object_phoning_fax').' ';
+ print ''.img_picto('', 'object_phoning_fax').' ';
// EMail / Web
print ''.$form->editfieldkey('EMail', 'email', GETPOST('email', 'alpha'), $object, 0, 'string', '', (!empty($conf->global->SOCIETE_EMAIL_MANDATORY))).' ';
- print ''.img_picto('', 'object_email').' ';
+ print ''.img_picto('', 'object_email').' ';
print ''.$form->editfieldkey('Web', 'url', GETPOST('url', 'alpha'), $object, 0).' ';
- print ''.img_picto('', 'globe').' ';
+ print ''.img_picto('', 'globe').' ';
if (!empty($conf->socialnetworks->enabled)) {
foreach ($socialnetworks as $key => $value) {
@@ -2025,36 +1998,9 @@ else
}
}
}
- // if (! empty($conf->socialnetworks->enabled))
- // {
- // // Skype
- // if (! empty($conf->global->SOCIALNETWORKS_SKYPE))
- // {
- // print ''.$form->editfieldkey('Skype', 'skype', '', $object, 0).' ';
- // print ' ';
- // }
- // // Twitter
- // if (! empty($conf->global->SOCIALNETWORKS_TWITTER))
- // {
- // print ''.$form->editfieldkey('Twitter', 'twitter', '', $object, 0).' ';
- // print ' ';
- // }
- // // Facebook
- // if (! empty($conf->global->SOCIALNETWORKS_FACEBOOK))
- // {
- // print ''.$form->editfieldkey('Facebook', 'facebook', '', $object, 0).' ';
- // print ' ';
- // }
- // // LinkedIn
- // if (! empty($conf->global->SOCIALNETWORKS_LINKEDIN))
- // {
- // print ''.$form->editfieldkey('LinkedIn', 'linkedin', '', $object, 0).' ';
- // print ' ';
- // }
- // }
// Prof ids
- $i = 1; $j = 0;
+ $i = 1; $j = 0; $NBCOLS = ($conf->browser->layout == 'phone' ? 1 : 2);
while ($i <= 6)
{
$idprof = $langs->transcountry('ProfId'.$i, $object->country_code);
@@ -2062,13 +2008,13 @@ else
{
$key = 'idprof'.$i;
- if (($j % 2) == 0) print '';
+ if (($j % $NBCOLS) == 0) print ' ';
$idprof_mandatory = 'SOCIETE_IDPROF'.($i).'_MANDATORY';
print ''.$form->editfieldkey($idprof, $key, '', $object, 0, 'string', '', !(empty($conf->global->$idprof_mandatory) || !$object->isACompany())).' ';
print $formcompany->get_input_id_prof($i, $key, $object->$key, $object->country_code);
print ' ';
- if (($j % 2) == 1) print ' ';
+ if (($j % $NBCOLS) == ($NBCOLS - 1)) print '';
$j++;
}
$i++;
@@ -2093,7 +2039,7 @@ else
print '';
}
print '';
-
+ if ($conf->browser->layout == 'phone') print '';
print ''.$form->editfieldkey($langs->transcountry("LocalTax2IsUsed", $mysoc->country_code), 'localtax2assuj_value', '', $object, 0).' ';
print $form->selectyesno('localtax2assuj_value', $object->localtax2_assuj, 1);
if (!isOnlyOneLocalTax(2))
@@ -2167,6 +2113,7 @@ else
print $form->selectarray("typent_id", $formcompany->typent_array(0), $object->typent_id, 0, 0, 0, '', 0, 0, 0, (empty($conf->global->SOCIETE_SORT_ON_TYPEENT) ? 'ASC' : $conf->global->SOCIETE_SORT_ON_TYPEENT));
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
print ' ';
+ if ($conf->browser->layout == 'phone') print ' ';
print ''.$form->editfieldkey('Staff', 'effectif_id', '', $object, 0).' ';
print $form->selectarray("effectif_id", $formcompany->effectif_array(0), $object->effectif_id);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index afb154408c5..3e213c3d8e2 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -17,6 +17,7 @@
--colorbacklinepair2: rgb();
--colorbacklinepairhover: rgb();
--colorbacklinepairchecked: rgb();
+ --colorbacklinebreak: rgb();
--colorbackbody: rgb();
--colortexttitlenotab: rgb();
--colortexttitle: rgb();
@@ -3289,7 +3290,7 @@ td.evenodd, tr.nohoverpair td, #trlinefordates td {
.trforbreak td {
font-weight: 500;
border-bottom: 1pt solid black !important;
- /* background-color: # !important; */
+ background-color: var(--colorbacklinebreak) !important; !important;
}
.trforbreak.nobold td a, .trforbreak.nobold span.secondary {
font-weight: normal !important;
diff --git a/htdocs/theme/eldy/theme_vars.inc.php b/htdocs/theme/eldy/theme_vars.inc.php
index 823b8168b4c..d2a11725ecf 100644
--- a/htdocs/theme/eldy/theme_vars.inc.php
+++ b/htdocs/theme/eldy/theme_vars.inc.php
@@ -65,7 +65,7 @@ $colorbacklinepair1 = '251,251,251'; // line pair
$colorbacklinepair2 = '251,251,251'; // line pair
$colorbacklinepairhover = '230,237,244'; // line hover
$colorbacklinepairchecked = '230,237,244'; // line checked
-$colorbacklinebreak = '233,228,230'; // line break
+$colorbacklinebreak = '253,251,250'; // line break
$colorbackbody = '255,255,255';
$colortexttitlenotab = '0,113,120'; // 150,90,121 140,80,10 or 10,140,80 #875a7b green=0,113,120, violet: 0,50,120
$colortexttitle = '0,0,0';
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index da2df5eb788..36fb265c42a 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -242,6 +242,7 @@ print '*/'."\n";
--colorbacklinepair2: rgb();
--colorbacklinepairhover: rgb();
--colorbacklinepairchecked: rgb();
+ --colorbacklinebreak: rgb();
--colorbackbody: rgb();
--colortexttitlenotab: rgb();
--colortexttitle: rgb();
@@ -3284,10 +3285,10 @@ ul.noborder li:nth-child(odd):not(.liste_titre) {
}
.impair, .nohover .impair:hover, tr.impair td.nohover
{
- background: #;
+ background: var(--colorbacklineimpair1);
}
#GanttChartDIV {
- background-color: #;
+ background-color: var(--colorbacklineimpair1);
}
.oddeven, .evenodd, .pair, .nohover .pair:hover, tr.pair td.nohover, .tagtr.oddeven {
@@ -3296,25 +3297,26 @@ ul.noborder li:nth-child(odd):not(.liste_titre) {
color: #202020;
}
.pair, .nohover .pair:hover, tr.pair td.nohover {
- background-color: #;
+ background-color: var(--colorbacklinepair1);
}
+
table.dataTable tr.oddeven {
- background-color: # !important;
+ background-color: var(--colorbacklinepair1) !important;
}
/* For no hover style */
td.oddeven, table.nohover tr.impair, table.nohover tr.pair, table.nohover tr.impair td, table.nohover tr.pair td, tr.nohover td, form.nohover, form.nohover:hover {
- background-color: # !important;
- background: # !important;
+ background-color: var(--colorbacklineimpair1) !important; !important;
+ background: var(--colorbacklineimpair1) !important; !important;
}
td.evenodd, tr.nohoverpair td, #trlinefordates td {
- background-color: # !important;
- background: # !important;
+ background-color: var(--colorbacklinepair1) !important; !important;
+ background: var(--colorbacklinepair1) !important; !important;
}
.trforbreak td {
font-weight: bold;
border-bottom: 1pt solid black !important;
- /* background-color: # !important; */
+ background-color: var(--colorbacklinebreak) !important;
}
table.dataTable td {
diff --git a/htdocs/theme/md/theme_vars.inc.php b/htdocs/theme/md/theme_vars.inc.php
index 6cdd37fe913..ffad2cc66b5 100644
--- a/htdocs/theme/md/theme_vars.inc.php
+++ b/htdocs/theme/md/theme_vars.inc.php
@@ -61,7 +61,7 @@ $colorbacklinepair1 = '248,248,248'; // line pair
$colorbacklinepair2 = '246,246,246'; // line pair
$colorbacklinepairhover = '230,237,244'; // line hover
$colorbacklinepairchecked = '230,237,244'; // line checked
-$colorbacklinebreak = '214,218,220';
+$colorbacklinebreak = '250,246,251';
$colorbackbody = '248,248,248';
$colortexttitlenotab = '80,71,5';
$colortexttitle = '20,20,20';