diff --git a/htdocs/compta/bank/card.php b/htdocs/compta/bank/card.php
index 7e14516e4cd..2ba96a2cf8d 100644
--- a/htdocs/compta/bank/card.php
+++ b/htdocs/compta/bank/card.php
@@ -354,7 +354,7 @@ if ($action == 'create')
// Label
print '
| '.$langs->trans("LabelBankCashAccount").' | ';
- print ' |
';
+ print ' | ';
// Type
print '| '.$langs->trans("AccountType").' | ';
@@ -375,7 +375,7 @@ if ($action == 'create')
// Status
print '
| '.$langs->trans("Status").' | ';
print '';
- print $form->selectarray("clos", $object->status, (GETPOST("clos", 'int') != '' ?GETPOST("clos", 'int') : $object->clos));
+ print $form->selectarray("clos", $object->status, (GETPOST("clos", 'int') != '' ?GETPOST("clos", 'int') : $object->clos), 0, 0, 0, '', 0, 0, 0, '', 'maxwidth150onsmartphone');
print ' |
';
// Country
@@ -412,7 +412,7 @@ if ($action == 'create')
// Tags-Categories
if ($conf->categorie->enabled)
{
- print '| '.$langs->trans("Categories").' | ';
+ print ' |
| '.$langs->trans("Categories").' | ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_ACCOUNT, '', 'parent', 64, 0, 1);
$arrayselected = array();
@@ -429,7 +429,7 @@ if ($action == 'create')
}
// Comment
- print ' |
| '.$langs->trans("Comment").' | ';
+ print '
| '.$langs->trans("Comment").' | ';
print '';
// Editor wysiwyg
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
@@ -476,31 +476,32 @@ if ($action == 'create')
// If bank account
print ' |
| '.$langs->trans("BankName").' | ';
- print ' | ';
+ print ' | ';
print '
';
// Show fields of bank account
+ $sizecss = '';
foreach ($object->getFieldsToShow() as $val) {
if ($val == 'BankCode') {
$name = 'code_banque';
- $size = 8;
+ $sizecss = 'minwidth100';
$content = $object->code_banque;
} elseif ($val == 'DeskCode') {
$name = 'code_guichet';
- $size = 8;
+ $sizecss = 'minwidth100';
$content = $object->code_guichet;
} elseif ($val == 'BankAccountNumber') {
$name = 'number';
- $size = 18;
+ $sizecss = 'minwidth200';
$content = $object->number;
} elseif ($val == 'BankAccountNumberKey') {
$name = 'cle_rib';
- $size = 3;
+ $sizecss = 'minwidth50';
$content = $object->cle_rib;
}
print ''.$langs->trans($val).' | ';
- print ' | ';
+ print ' | ';
print '';
}
$ibankey = FormBank::getIBANLabel($object);
@@ -509,22 +510,22 @@ if ($action == 'create')
// IBAN
print '| '.$langs->trans($ibankey).' | ';
- print ' |
';
+ print ' | ';
print '| '.$langs->trans($bickey).' | ';
- print ' |
';
+ print ' | ';
print '| '.$langs->trans("BankAccountDomiciliation").' | ';
- print " |
";
print '| '.$langs->trans("BankAccountOwner").' | ';
- print '';
+ print ' | ';
print ' |
';
print '| '.$langs->trans("BankAccountOwnerAddress").' | ';
- print " |
";
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 43064277dca..23d7e88b45b 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -3953,10 +3953,11 @@ class Form
* - array (list of categories ids)
* @param int $outputmode 0=HTML select string, 1=Array
* @param int $include [=0] Removed or 1=Keep only
+ * @param string $morecss More CSS
* @return string
* @see select_categories()
*/
- public function select_all_categories($type, $selected = '', $htmlname = "parent", $maxlength = 64, $markafterid = 0, $outputmode = 0, $include = 0)
+ public function select_all_categories($type, $selected = '', $htmlname = "parent", $maxlength = 64, $markafterid = 0, $outputmode = 0, $include = 0, $morecss = '')
{
// phpcs:enable
global $conf, $langs;
@@ -3999,7 +4000,7 @@ class Form
$cate_arbo = $cat->get_full_arbo($type, $markafterid, $include);
}
- $output = '