Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1749 [Control] add: csslist on control to reduce fk_sheet column size #1786

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

evarisk-micka
Copy link
Collaborator

No description provided.

@@ -310,7 +310,7 @@
print $form->selectarray('search_' . $key, $val['arrayofkeyval'], $search[$key], $val['notnull'], 0, 0, '', 1, 0, 0, '', 'minwidth200', 1);
}
elseif ($key == 'fk_sheet') {
print $sheet->selectSheetList(GETPOST('fromtype') == 'fk_sheet' ? GETPOST('fromid') : ($search['fk_sheet'] ?: 0), 'search_fk_sheet', 's.type = ' . '"' . $object->element . '"');
print $sheet->selectSheetList(GETPOST('fromtype') == 'fk_sheet' ? GETPOST('fromid') : ($search['fk_sheet'] ?: 0), 'search_fk_sheet', 's.type = ' . '"' . $object->element . '"', '1', 0, 0, [], '', 0, 0, $cssforfield);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je suis d'accord dans le principe sauf que la on veut set les paramètres par défaut du champs ducoup il vaut mieux le faire dans la fonction directement

Le but de ce genre de paramètres moreCSS c'est d'ajouter du spécifique

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est un spécifique justement parcequ'on veut limiter la taille seulement dans la liste mais si on utilise la fonction ailleurs et qu'on la veut plus grande alors on veut pas que ce soit du css par défaut

@@ -208,7 +208,7 @@
'enabled' => ($visible != 3 && dol_eval($val['enabled'], 1)),
'position'=> $val['position'],
'help' => $val['help'],
'css' => $val['css']
'css' => (empty($val['csslist']) ? (empty($val['css']) ? '' : $val['css']) : $val['csslist'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est la ligne du module builder ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oui c'est la ligne qui est utilisé partout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 Enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

Réduire dans controle list la colonne modèle csslist
3 participants