mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-22 17:31:25 +01:00
It's easier to select fields to show on list
This commit is contained in:
@@ -6099,7 +6099,7 @@ class Form
|
|||||||
}
|
}
|
||||||
if ($val['label'])
|
if ($val['label'])
|
||||||
{
|
{
|
||||||
$lis.='<li><input type="checkbox" value="'.$key.'"'.(empty($val['checked'])?'':' checked="checked"').'/>'.dol_escape_htmltag($langs->trans($val['label'])).'</li>';
|
$lis.='<li><input type="checkbox" id="checkbox'.$key.'" value="'.$key.'"'.(empty($val['checked'])?'':' checked="checked"').'/><label for="checkbox'.$key.'">'.dol_escape_htmltag($langs->trans($val['label'])).'</label></li>';
|
||||||
$listcheckedstring.=(empty($val['checked'])?'':$key.',');
|
$listcheckedstring.=(empty($val['checked'])?'':$key.',');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -915,7 +915,7 @@ class FormFile
|
|||||||
if (! empty($file_list))
|
if (! empty($file_list))
|
||||||
{
|
{
|
||||||
$out='<dl class="dropdown inline-block">
|
$out='<dl class="dropdown inline-block">
|
||||||
<dt><a data-ajax="false" href="#" onClick="return false;">'.img_picto('', 'listlight', '', 0, 0, 0, '', 'valignbottom').'</a></dt>
|
<dt><a data-ajax="false" href="#" onClick="return false;">'.img_picto('', 'listlight', '', 0, 0, 0, '', 'valignmiddle').'</a></dt>
|
||||||
<dd><div class="multichoicedoc" style="position:absolute;left:100px;" ><ul class="ulselectedfields" style="display: none;">';
|
<dd><div class="multichoicedoc" style="position:absolute;left:100px;" ><ul class="ulselectedfields" style="display: none;">';
|
||||||
$tmpout='';
|
$tmpout='';
|
||||||
|
|
||||||
|
|||||||
@@ -3152,7 +3152,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
|
|
||||||
//if (in_array($picto, array('switch_off', 'switch_on', 'off', 'on')))
|
//if (in_array($picto, array('switch_off', 'switch_on', 'off', 'on')))
|
||||||
if (empty($srconly) && in_array($pictowithoutext, array(
|
if (empty($srconly) && in_array($pictowithoutext, array(
|
||||||
'bank', 'close_title', 'delete', 'edit', 'ellipsis-h', 'filter', 'grip', 'grip_title', 'off', 'on', 'play', 'playdisabled', 'printer', 'resize',
|
'bank', 'close_title', 'delete', 'edit', 'ellipsis-h', 'filter', 'grip', 'grip_title', 'list', 'off', 'on', 'play', 'playdisabled', 'printer', 'resize',
|
||||||
'switch_off', 'switch_on', 'unlink', 'uparrow', '1downarrow', '1uparrow')
|
'switch_off', 'switch_on', 'unlink', 'uparrow', '1downarrow', '1uparrow')
|
||||||
)) {
|
)) {
|
||||||
$fakey = $pictowithoutext;
|
$fakey = $pictowithoutext;
|
||||||
|
|||||||
@@ -5032,7 +5032,7 @@ dl.dropdown {
|
|||||||
box-shadow: 1px 1px 10px #aaa;
|
box-shadow: 1px 1px 10px #aaa;
|
||||||
display:none;
|
display:none;
|
||||||
<?php echo $right; ?>:0px; /* pop is align on right */
|
<?php echo $right; ?>:0px; /* pop is align on right */
|
||||||
padding: 2px 15px 2px 5px;
|
padding: 0 0 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:2px;
|
top:2px;
|
||||||
list-style:none;
|
list-style:none;
|
||||||
@@ -5042,10 +5042,13 @@ dl.dropdown {
|
|||||||
.dropdown dd ul li {
|
.dropdown dd ul li {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
padding: 4px;
|
padding: 4px 8px 4px 8px;
|
||||||
/* color: rgb(<?php print $colortext; ?>); */
|
/* color: rgb(<?php print $colortext; ?>); */
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
.dropdown dd ul li:hover {
|
||||||
|
background: #eee;
|
||||||
|
}
|
||||||
.dropdown dd ul li input[type="checkbox"] {
|
.dropdown dd ul li input[type="checkbox"] {
|
||||||
margin-<?php echo $right; ?>: 3px;
|
margin-<?php echo $right; ?>: 3px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user