Skip to content

Commit

Permalink
css
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 19, 2021
1 parent 749ea1a commit 59de140
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
12 changes: 6 additions & 6 deletions htdocs/core/tpl/contacts.tpl.php
Expand Up @@ -111,17 +111,17 @@

<div class="tagtd"><?php echo $conf->global->MAIN_INFO_SOCIETE_NOM; ?></div>
<!-- <div class="nowrap tagtd"><?php echo img_object('', 'user').' '.$langs->trans("Users"); ?></div> -->
<div class="tagtd maxwidthonsmartphone"><?php echo img_object('', 'user', 'class="pictofixedwidth"').$form->select_dolusers($user->id, 'userid', 0, (!empty($userAlreadySelected) ? $userAlreadySelected : null), 0, null, null, 0, 56, '', 0, '', 'minwidth200imp'); ?></div>
<div class="tagtd maxwidthonsmartphone"><?php echo img_object('', 'user', 'class="pictofixedwidth"').$form->select_dolusers($user->id, 'userid', 0, (!empty($userAlreadySelected) ? $userAlreadySelected : null), 0, null, null, 0, 56, 0, '', 0, '', 'minwidth100imp widthcentpercentminusxx maxwidth400'); ?></div>
<div class="tagtd maxwidthonsmartphone">
<?php
$tmpobject = $object;
if (($object->element == 'shipping' || $object->element == 'reception') && is_object($objectsrc)) {
$tmpobject = $objectsrc;
}
$formcompany->selectTypeContact($tmpobject, '', 'type', 'internal');
$formcompany->selectTypeContact($tmpobject, '', 'type', 'internal', 'position', 0, 'minwidth125imp widthcentpercentminusx maxwidth400');
?></div>
<div class="tagtd">&nbsp;</div>
<div class="tagtd center"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>"></div>
<div class="tagtd center"><input type="submit" class="button small" value="<?php echo $langs->trans("Add"); ?>"></div>
</form>

<?php
Expand Down Expand Up @@ -163,14 +163,14 @@
if (($object->element == 'shipping' || $object->element == 'reception') && is_object($objectsrc)) {
$tmpobject = $objectsrc;
}
$formcompany->selectTypeContact($tmpobject, $preselectedtypeofcontact, 'typecontact', 'external', 'position', 0, 'minwidth100imp');
$formcompany->selectTypeContact($tmpobject, $preselectedtypeofcontact, 'typecontact', 'external', 'position', 0, 'minwidth125imp widthcentpercentminusx maxwidth400');
?>
</div>
<div class="tagtd noborderbottom">&nbsp;</div>
<div class="tagtd center noborderbottom">
<input type="submit" id="add-customer-contact" class="button" value="<?php echo $langs->trans("Add"); ?>"<?php if (!$nbofcontacts) {
<input type="submit" id="add-customer-contact" class="button small" value="<?php echo $langs->trans("Add"); ?>"<?php if (!$nbofcontacts) {
echo ' disabled';
} ?>>
} ?>>
</div>
</form>

Expand Down
2 changes: 2 additions & 0 deletions htdocs/theme/eldy/global.inc.php
Expand Up @@ -1455,6 +1455,7 @@
.minwidth50imp { min-width: 50px !important; }
.minwidth75imp { min-width: 75px !important; }
.minwidth100imp { min-width: 100px !important; }
.minwidth125imp { min-width: 125px !important; }
.minwidth150imp { min-width: 150px !important; }
.minwidth200imp { min-width: 200px !important; }
.minwidth250imp { min-width: 250px !important; }
Expand All @@ -1474,6 +1475,7 @@
.minwidth50imp { min-width: 50px !important; }
.minwidth75imp { min-width: 75px !important; }
.minwidth100imp { min-width: 100px !important; }
.minwidth125imp { min-width: 125px !important; }
.minwidth150imp { min-width: 110px !important; }
.minwidth200imp { min-width: 110px !important; }
.minwidth250imp { min-width: 115px !important; }
Expand Down
6 changes: 5 additions & 1 deletion htdocs/theme/md/style.css.php
Expand Up @@ -1455,6 +1455,7 @@
.minwidth50imp { min-width: 50px !important; }
.minwidth75imp { min-width: 75px !important; }
.minwidth100imp { min-width: 100px !important; }
.minwidth125imp { min-width: 125px !important; }
.minwidth200imp { min-width: 200px !important; }
.minwidth250imp { min-width: 250px !important; }
.minwidth300imp { min-width: 300px !important; }
Expand Down Expand Up @@ -1514,6 +1515,7 @@
.minwidth50imp { min-width: 50px !important; }
.minwidth75imp { min-width: 75px !important; }
.minwidth100imp { min-width: 100px !important; }
.minwidth125imp { min-width: 125px !important; }
.minwidth150imp { min-width: 150px !important; }
.minwidth200imp { min-width: 200px !important; }
.minwidth250imp { min-width: 250px !important; }
Expand All @@ -1533,6 +1535,7 @@
.minwidth50imp { min-width: 50px !important; }
.minwidth75imp { min-width: 70px !important; }
.minwidth100imp { min-width: 100px !important; }
.minwidth125imp { min-width: 125px !important; }
.minwidth150imp { min-width: 110px !important; }
.minwidth200imp { min-width: 110px !important; }
.minwidth250imp { min-width: 115px !important; }
Expand Down Expand Up @@ -1679,6 +1682,7 @@
.minwidth50imp { min-width: 50px !important; }
.minwidth75imp { min-width: 75px !important; }
.minwidth100imp { min-width: 100px !important; }
.minwidth125imp { min-width: 125px !important; }
.minwidth150imp { min-width: 110px !important; }
.minwidth200imp { min-width: 110px !important; }
.minwidth250imp { min-width: 115px !important; }
Expand Down Expand Up @@ -3459,7 +3463,7 @@
border-left: 1px solid #ccc;
}
table.liste, table.noborder, table.formdoc, div.noborder {
width: calc(100% - 1px); /* -1 to fix a bug. Without, a scroll appears due to overflow-x: auto; of div-table-responsive */
width: calc(100% - 2px); /* -2 to fix a bug. Without, a scroll appears due to overflow-x: auto; of div-table-responsive */

border-collapse: separate !important;
border-spacing: 0px;
Expand Down

0 comments on commit 59de140

Please sign in to comment.