Debug v20

This commit is contained in:
Laurent Destailleur 2024-05-24 01:41:53 +02:00
parent 0bb68d11d0
commit e92fa65208
4 changed files with 11 additions and 4 deletions

View File

@ -244,7 +244,7 @@ if ($user->hasRight('categorie', 'creer')) {
print dol_get_fiche_head();
print '<table width="100%" class="border">';
print '<table class="border centpercent">';
// Ref
print '<tr>';
@ -265,7 +265,7 @@ if ($user->hasRight('categorie', 'creer')) {
// Position
print '<tr>';
print '<td class="titlefieldcreate">'.$langs->trans("Position").'</td><td><input id="position" class="minwidth100" name="position" value="'.$position.'">';
print '<td class="titlefieldcreate">'.$langs->trans("Position").'</td><td><input id="position" type="number" class="minwidth50 maxwidth50" name="position" value="'.$position.'">';
print'</td></tr>';
// Parent category

View File

@ -1751,10 +1751,11 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
print '<tr>';
print '<td>'.$form->editfieldkey('AllocateCommercial', 'commercial_id', '', $object, 0).'</td>';
print '<td colspan="3" class="maxwidthonsmartphone">';
$userlist = $form->select_dolusers('', '', 0, null, 0, '', '', '0', 0, 0, 'AND u.statut = 1', 0, '', '', 0, 2);
// TODO Use select_doluser in multiselect mode
$userlist = $form->select_dolusers($selected, '', 0, null, 0, '', '', '0', 0, 0, 'AND u.statut = 1', 0, '', '', 0, 2);
// Note: If user has no right to "see all thirdparties", we force selection of sale representative to him, so after creation he can see the record.
$selected = (GETPOSTISARRAY('commercial') ? GETPOST('commercial', 'array:int') : (GETPOSTINT('commercial') > 0 ? array(GETPOSTINT('commercial')) : array($user->id)));
print img_picto('', 'user').$form->multiselectarray('commercial', $userlist, $selected, null, null, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
print img_picto('', 'user').$form->multiselectarray('commercial', $userlist, $selected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
print '</td></tr>';
// Add logo

View File

@ -1884,10 +1884,12 @@ maxscreenheightless200 {
select.widthcentpercentminusx, span.widthcentpercentminusx:not(.select2-selection):not(.select2-dropdown), input.widthcentpercentminusx {
width: calc(100% - 52px) !important;
display: inline-block;
min-width: 100px;
}
select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-selection):not(.select2-dropdown), input.widthcentpercentminusxx {
width: calc(100% - 70px) !important;
display: inline-block;
min-width: 100px;
}
@ -1928,6 +1930,7 @@ select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-select
select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-selection), input.widthcentpercentminusxx {
width: calc(100% - 70px) !important;
display: inline-block;
min-width: 100px;
}
input.maxwidthinputfileonsmartphone {

View File

@ -2049,10 +2049,12 @@ tr.nobottom td {
select.widthcentpercentminusx, span.widthcentpercentminusx:not(.select2-selection), input.widthcentpercentminusx {
width: calc(100% - 50px) !important;
display: inline-block;
min-width: 100px;
}
select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-selection), input.widthcentpercentminusxx {
width: calc(100% - 70px) !important;
display: inline-block;
min-width: 100px;
}
/* Force values for small screen 768 */
@ -2086,6 +2088,7 @@ select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-select
select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-selection), input.widthcentpercentminusxx {
width: calc(100% - 70px) !important;
display: inline-block;
min-width: 100px;
}
input.maxwidthinputfileonsmartphone {