Fix css
This commit is contained in:
parent
c0dc9d47e3
commit
2cc19f0e42
@ -1975,6 +1975,8 @@ class ExtraFields
|
|||||||
if (!empty($extrafield_param) && is_array($extrafield_param)) {
|
if (!empty($extrafield_param) && is_array($extrafield_param)) {
|
||||||
$extrafield_param_list = array_keys($extrafield_param['options']);
|
$extrafield_param_list = array_keys($extrafield_param['options']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set $extrafield_collapse_display_value (do we have to collapse/expand the group after the separator)
|
||||||
$extrafield_collapse_display_value = -1;
|
$extrafield_collapse_display_value = -1;
|
||||||
$expand_display = false;
|
$expand_display = false;
|
||||||
if (is_array($extrafield_param_list) && count($extrafield_param_list) > 0) {
|
if (is_array($extrafield_param_list) && count($extrafield_param_list) > 0) {
|
||||||
@ -1989,7 +1991,7 @@ class ExtraFields
|
|||||||
$out .= '<'.$tagtype_dyn.' '.(!empty($colspan)?'colspan="' . $colspan . '"':'').'>';
|
$out .= '<'.$tagtype_dyn.' '.(!empty($colspan)?'colspan="' . $colspan . '"':'').'>';
|
||||||
// Some js code will be injected here to manage the collapsing of extrafields
|
// Some js code will be injected here to manage the collapsing of extrafields
|
||||||
// Output the picto
|
// Output the picto
|
||||||
$out .= '<span class="cursorpointer '.($extrafield_collapse_display_value == 0 ? 'fas fa-square opacitymedium' : 'far fa-'.(($expand_display ? 'minus' : 'plus').'-square')).'"></span>';
|
$out .= '<span class="'.($extrafield_collapse_display_value ? 'cursorpointer ' : '').($extrafield_collapse_display_value == 0 ? 'fas fa-square opacitymedium' : 'far fa-'.(($expand_display ? 'minus' : 'plus').'-square')).'"></span>';
|
||||||
$out .= ' ';
|
$out .= ' ';
|
||||||
$out .= '<strong>';
|
$out .= '<strong>';
|
||||||
$out .= $langs->trans($this->attributes[$object->table_element]['label'][$key]);
|
$out .= $langs->trans($this->attributes[$object->table_element]['label'][$key]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user