diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php
index 007b812cfa4..f391f2f6f50 100644
--- a/htdocs/core/class/translate.class.php
+++ b/htdocs/core/class/translate.class.php
@@ -572,6 +572,7 @@ class Translate
}
$newstr = $key;
+ $reg = array();
if (preg_match('/^Civility([0-9A-Z]+)$/i', $key, $reg)) {
$newstr = $this->getLabelFromKey($db, $reg[1], 'c_civility', 'code', 'label');
} elseif (preg_match('/^Currency([A-Z][A-Z][A-Z])$/i', $key, $reg)) {
@@ -734,6 +735,7 @@ class Translate
* @param string $str string root to translate
* @param string $countrycode country code (FR, ...)
* @return string translated string
+ * @see transcountrynoentities()
*/
public function transcountry($str, $countrycode)
{
@@ -751,6 +753,7 @@ class Translate
* @param string $str string root to translate
* @param string $countrycode country code (FR, ...)
* @return string translated string
+ * @see transcountry()
*/
public function transcountrynoentities($str, $countrycode)
{
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 8978d373030..6df447e41cb 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -3447,7 +3447,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
'delete', 'dolly', 'dollyrevert', 'donation', 'download', 'edit', 'ellipsis-h', 'email', 'eraser', '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', 'group',
'help', 'holiday',
- 'intervention', 'inventory', 'label', 'language', 'link', 'list', 'listlight', 'loan', 'lot', 'long-arrow-alt-right',
+ 'info', 'intervention', 'inventory', 'label', 'language', 'link', 'list', 'listlight', 'loan', 'lot', 'long-arrow-alt-right',
'margin', 'map-marker-alt', 'member', 'meeting', 'money-bill-alt', 'movement', 'mrp', 'note', 'next',
'object_accounting', 'object_account', 'object_accountline', 'object_action', 'object_asset', 'object_barcode', 'object_bill', 'object_billr', 'object_billa', 'object_billd', 'object_bom',
'object_category', 'object_conversation', 'object_bookmark', 'object_bug', 'object_clock', 'object_dolly', 'object_dollyrevert',
@@ -3500,7 +3500,8 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
'hrm'=>'user-tie', 'margin'=>'calculator', 'members'=>'user-friends', 'ticket'=>'ticket-alt', 'globe'=>'external-link-alt', 'lot'=>'barcode',
'email'=>'at',
'edit'=>'pencil-alt', 'grip_title'=>'arrows-alt', 'grip'=>'arrows-alt', 'help'=>'question-circle',
- 'generic'=>'file', 'holiday'=>'umbrella-beach', 'inventory'=>'boxes', 'label'=>'layer-group', 'loan'=>'money-bill-alt',
+ 'generic'=>'file', 'holiday'=>'umbrella-beach',
+ 'info'=>'info-circle', 'inventory'=>'boxes', 'label'=>'layer-group', 'loan'=>'money-bill-alt',
'member'=>'user-alt', 'meeting'=>'chalkboard-teacher', 'mrp'=>'cubes', 'next'=>'arrow-alt-circle-right',
'trip'=>'wallet', 'group'=>'users', 'movement'=>'people-carry',
'sign-out'=>'sign-out-alt',
@@ -3557,7 +3558,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
if (in_array($pictowithouttext, array('holiday', 'project'))) {
$morecss = 'em088';
}
- if (in_array($pictowithouttext, array('intervention', 'payment', 'loan', 'stock', 'technic'))) {
+ if (in_array($pictowithouttext, array('intervention', 'info', 'payment', 'loan', 'stock', 'technic'))) {
$morecss = 'em080';
}
@@ -3584,7 +3585,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
'order'=>'infobox-commande',
'user'=>'infobox-adherent', 'users'=>'infobox-adherent',
'error'=>'pictoerror', 'warning'=>'pictowarning', 'switch_on'=>'font-status4',
- 'holiday'=>'infobox-holiday', 'invoice'=>'infobox-commande', 'loan'=>'infobox-bank_account',
+ 'holiday'=>'infobox-holiday', 'info'=>'opacityhigh', 'invoice'=>'infobox-commande', 'loan'=>'infobox-bank_account',
'payment'=>'infobox-bank_account', 'poll'=>'infobox-adherent', 'pos'=>'infobox-bank_account', 'project'=>'infobox-project', 'projecttask'=>'infobox-project', 'propal'=>'infobox-propal',
'recruitmentjobposition'=>'infobox-adherent', 'recruitmentcandidature'=>'infobox-adherent',
'resource'=>'infobox-action',
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index f9559ecf7a9..b3d148e9d39 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -393,7 +393,7 @@ input.pageplusone {
opacity: 0.6;
}
.opacityhigh {
- opacity: 0.2;
+ opacity: 0.24;
}
.opacitytransp {
opacity: 0;
@@ -762,6 +762,12 @@ textarea.centpercent {
overflow-y: auto;
}
+i.fa-mars::before, i.fa-venus::before, i.fa-genderless::before {
+ color: #888 !important;
+ opacity: 0.4;
+ padding-: 3px;
+}
+
body[class*="colorblind-"] .text-warning{
color :
}
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 4d58c4423d4..fdf5686df1c 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -585,7 +585,7 @@ input.pageplusone {
opacity: 0.6;
}
.opacityhigh {
- opacity: 0.2;
+ opacity: 0.24;
}
.opacitytransp {
opacity: 0;
@@ -894,6 +894,12 @@ textarea.centpercent {
overflow-y: auto;
}
+i.fa-mars::before, i.fa-venus::before, i.fa-genderless::before {
+ color: #888 !important;
+ opacity: 0.4;
+ padding-: 3px;
+}
+
.text-warning{
color :
}
@@ -1597,7 +1603,7 @@ td.showDragHandle {
padding-bottom: 10px;
padding-left: 229px;
- padding-top: 12px;
+ padding-top: 16px;
}
@@ -1780,8 +1786,8 @@ div.fiche {
div.fiche {
- margin-: dol_optimize_smallscreen) ? '24' : '6')); ?>px;
- margin-: dol_optimize_smallscreen) ? '22' : '6')); ?>px;
+ margin-: dol_optimize_smallscreen) ? '30' : '6')); ?>px;
+ margin-: dol_optimize_smallscreen) ? '28' : '6')); ?>px;
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 4496178fe67..f3866e0caf5 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -1059,6 +1059,9 @@ if ($action == 'create' || $action == 'adduserldap') {
if ($value['active']) {
print '
| '.$langs->trans($value['label']).' | ';
print '';
+ if (!empty($value['icon'])) {
+ print '';
+ }
if (!empty($ldap_social[$key])) {
print '';
print $ldap_social[$key];
@@ -1097,13 +1100,13 @@ if ($action == 'create' || $action == 'adduserldap') {
if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) {
print ' |
| '.$form->editfieldkey('Categories', 'usercats', '', $object, 0).' | ';
$cate_arbo = $form->select_all_categories('user', null, 'parent', null, null, 1);
- print $form->multiselectarray('usercats', $cate_arbo, GETPOST('usercats', 'array'), null, null, null, null, '90%');
+ print img_picto('', 'category').$form->multiselectarray('usercats', $cate_arbo, GETPOST('usercats', 'array'), null, null, null, null, '90%');
print " |
";
}
if (!empty($conf->global->MAIN_MULTILANGS)) {
print '| '.$form->editfieldkey('DefaultLang', 'default_lang', '', $object, 0).' | '."\n";
- print $formadmin->select_language(GETPOST('default_lang', 'alpha') ?GETPOST('default_lang', 'alpha') : ($object->lang ? $object->lang : ''), 'default_lang', 0, 0, 1, 0, 0, 'maxwidth200onsmartphone');
+ print img_picto('', 'language').$formadmin->select_language(GETPOST('default_lang', 'alpha') ?GETPOST('default_lang', 'alpha') : ($object->lang ? $object->lang : ''), 'default_lang', 0, 0, 1, 0, 0, 'maxwidth200onsmartphone');
print ' | ';
print '
';
}
@@ -1172,7 +1175,7 @@ if ($action == 'create' || $action == 'adduserldap') {
print $form->textwithpicto($text, $langs->trans("THMDescription"), 1, 'help', 'classthm');
print '';
print '';
- print '';
+ print ' '.$langs->getCurrencySymbol($conf->currency);
print ' | ';
print "\n";
@@ -1182,14 +1185,14 @@ if ($action == 'create' || $action == 'adduserldap') {
print $form->textwithpicto($text, $langs->trans("TJMDescription"), 1, 'help', 'classtjm');
print '';
print '';
- print '';
+ print ' '.$langs->getCurrencySymbol($conf->currency);
print ' | ';
print "\n";
// Salary
print '| '.$langs->trans("Salary").' | ';
print '';
- print '';
+ print img_picto('', 'salary', 'class="pictofixedwidth paddingright"').' '.$langs->getCurrencySymbol($conf->currency);
print ' | ';
print "
\n";
}
@@ -1566,7 +1569,7 @@ if ($action == 'create' || $action == 'adduserldap') {
// Salary
print '| '.$langs->trans("Salary").' | ';
print '';
- print ($object->salary != '' ?price($object->salary, '', $langs, 1, -1, -1, $conf->currency) : '');
+ print ($object->salary != '' ? img_picto('', 'salary', 'class="pictofixedwidth paddingright"').price($object->salary, '', $langs, 1, -1, -1, $conf->currency) : '');
print ' | ';
print "
\n";
}
@@ -2147,7 +2150,7 @@ if ($action == 'create' || $action == 'adduserldap') {
print '| '.$langs->trans("HierarchicalResponsible").' | ';
print '';
if ($caneditfield) {
- print $form->select_dolusers($object->fk_user, 'fk_user', 1, array($object->id), 0, '', 0, $object->entity, 0, 0, '', 0, '', 'maxwidth300');
+ print img_picto('', 'user').$form->select_dolusers($object->fk_user, 'fk_user', 1, array($object->id), 0, '', 0, $object->entity, 0, 0, '', 0, '', 'maxwidth300');
} else {
print '';
$huser = new User($db);
@@ -2165,7 +2168,7 @@ if ($action == 'create' || $action == 'adduserldap') {
print ' | ';
print '';
if ($caneditfield) {
- print $form->select_dolusers($object->fk_user_expense_validator, 'fk_user_expense_validator', 1, array($object->id), 0, '', 0, $object->entity, 0, 0, '', 0, '', 'maxwidth300');
+ print img_picto('', 'user').$form->select_dolusers($object->fk_user_expense_validator, 'fk_user_expense_validator', 1, array($object->id), 0, '', 0, $object->entity, 0, 0, '', 0, '', 'maxwidth300');
} else {
print '';
$evuser = new User($db);
@@ -2184,7 +2187,7 @@ if ($action == 'create' || $action == 'adduserldap') {
print ' | ';
print '';
if ($caneditfield) {
- print $form->select_dolusers($object->fk_user_holiday_validator, 'fk_user_holiday_validator', 1, array($object->id), 0, '', 0, $object->entity, 0, 0, '', 0, '', 'maxwidth300');
+ print img_picto('', 'user').$form->select_dolusers($object->fk_user_holiday_validator, 'fk_user_holiday_validator', 1, array($object->id), 0, '', 0, $object->entity, 0, 0, '', 0, '', 'maxwidth300');
} else {
print '';
$hvuser = new User($db);
@@ -2344,6 +2347,9 @@ if ($action == 'create' || $action == 'adduserldap') {
if ($value['active']) {
print ' |
| '.$langs->trans($value['label']).' | ';
print '';
+ if (!empty($value['icon'])) {
+ print '';
+ }
if ($caneditfield && empty($object->ldap_sid)) {
print '';
} else {
@@ -2412,6 +2418,7 @@ if ($action == 'create' || $action == 'adduserldap') {
if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) {
print ' |
| '.$form->editfieldkey('Categories', 'usercats', '', $object, 0).' | ';
print '';
+ print img_picto('', 'category');
$cate_arbo = $form->select_all_categories(Categorie::TYPE_USER, null, null, null, null, 1);
$c = new Categorie($db);
$cats = $c->containing($object->id, Categorie::TYPE_USER);
@@ -2429,7 +2436,7 @@ if ($action == 'create' || $action == 'adduserldap') {
// Default language
if (!empty($conf->global->MAIN_MULTILANGS)) {
print ' |
| '.$form->editfieldkey('DefaultLang', 'default_lang', '', $object, 0).' | '."\n";
- print $formadmin->select_language($object->lang, 'default_lang', 0, 0, 1);
+ print img_picto('', 'language').$formadmin->select_language($object->lang, 'default_lang', 0, 0, 1);
print ' | ';
print '
';
}
@@ -2578,7 +2585,7 @@ if ($action == 'create' || $action == 'adduserldap') {
// Salary
print '| '.$langs->trans("Salary").' | ';
print '';
- print '';
+ print img_picto('', 'salary', 'class="pictofixedwidth paddingright"').'';
print ' | ';
print "
\n";
}
diff --git a/htdocs/user/list.php b/htdocs/user/list.php
index d7debcbdd3a..f5ff4ea8a99 100644
--- a/htdocs/user/list.php
+++ b/htdocs/user/list.php
@@ -925,16 +925,16 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
}
}
if (!empty($arrayfields['u.fk_soc']['checked'])) {
- print "";
+ print ' | ';
if ($obj->fk_soc) {
$companystatic->id = $obj->fk_soc;
$companystatic->name = $obj->name;
$companystatic->canvas = $obj->canvas;
print $companystatic->getNomUrl(1);
} elseif ($obj->ldap_sid) {
- print $langs->trans("DomainUser");
+ print ''.$langs->trans("DomainUser").'';
} else {
- print $langs->trans("InternalUser");
+ print ''.$langs->trans("InternalUser").'';
}
print ' | ';
if (!$i) {