Css enhancement

This commit is contained in:
Laurent Destailleur 2017-03-15 11:41:15 +01:00
parent 888675016d
commit e6d8b3c4db
3 changed files with 23 additions and 10 deletions

View File

@ -90,7 +90,7 @@ if ($permission) {
echo $formcompany->selectTypeContact($tmpobject, '', 'type','internal');
?></div>
<div class="tagtd">&nbsp;</div>
<div class="tagtd" align="right"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>"></div>
<div class="tagtd right"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>"></div>
</form>
<?php
@ -107,8 +107,8 @@ if ($permission) {
<input type="hidden" name="action" value="addcontact" />
<input type="hidden" name="source" value="external" />
<?php if ($withproject) print '<input type="hidden" name="withproject" value="'.$withproject.'">'; ?>
<div class="tagtd nowrap"><?php echo img_object('','contact').' '.$langs->trans("ThirdPartyContacts"); ?></div>
<div class="tagtd nowrap maxwidthonsmartphone">
<div class="tagtd nowrap noborderbottom"><?php echo img_object('','contact').' '.$langs->trans("ThirdPartyContacts"); ?></div>
<div class="tagtd nowrap maxwidthonsmartphone noborderbottom">
<?php $selectedCompany = isset($_GET["newcompany"])?$_GET["newcompany"]:$object->socid; ?>
<?php
// add company icon before select list
@ -119,17 +119,17 @@ if ($permission) {
?>
<?php $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0); ?>
</div>
<div class="tagtd maxwidthonsmartphone">
<div class="tagtd maxwidthonsmartphone noborderbottom">
<?php $nbofcontacts=$form->select_contacts($selectedCompany, '', 'contactid', 0, '', '', 0, 'minwidth200'); ?>
</div>
<div class="tagtd maxwidthonsmartphone">
<div class="tagtd maxwidthonsmartphone noborderbottom">
<?php
$tmpobject=$object;
if ($object->element == 'shipping' && is_object($objectsrc)) $tmpobject=$objectsrc;
$formcompany->selectTypeContact($tmpobject, '', 'type','external'); ?>
</div>
<div class="tagtd">&nbsp;</div>
<div class="tagtd" align="right">
<div class="tagtd noborderbottom">&nbsp;</div>
<div class="tagtd right noborderbottom">
<input type="submit" id="add-customer-contact" class="button" value="<?php echo $langs->trans("Add"); ?>"<?php if (! $nbofcontacts) echo ' disabled'; ?>>
</div>
</form>
@ -144,7 +144,7 @@ if ($permission) {
<div class="tagtd liste_titre"><?php echo $langs->trans("ThirdParty"); ?></div>
<div class="tagtd liste_titre"><?php echo $langs->trans("Users").'/'.$langs->trans("Contacts"); ?></div>
<div class="tagtd liste_titre"><?php echo $langs->trans("ContactType"); ?></div>
<div class="tagtd liste_titre" align="center"><?php echo $langs->trans("Status"); ?></div>
<div class="tagtd liste_titre center"><?php echo $langs->trans("Status"); ?></div>
<div class="tagtd liste_titre">&nbsp;</div>
</form>
@ -208,7 +208,7 @@ if ($permission) {
?>
</div>
<div class="tagtd"><?php echo $tab[$i]['libelle']; ?></div>
<div class="tagtd" align="center">
<div class="tagtd center">
<?php //if ($object->statut >= 0) echo '<a href="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&amp;action=swapstatut&amp;ligne='.$tab[$i]['rowid'].'">'; ?>
<?php
if ($tab[$i]['source']=='internal')
@ -228,7 +228,7 @@ if ($permission) {
?>
<?php //if ($object->statut >= 0) echo '</a>'; ?>
</div>
<div class="tagtd nowrap" align="right">
<div class="tagtd nowrap right">
<?php if ($permission) { ?>
&nbsp;<a href="<?php echo $_SERVER["PHP_SELF"].'?id='.$object->id.'&amp;action=deletecontact&amp;lineid='.$tab[$i]['rowid']; ?>"><?php echo img_delete(); ?></a>
<?php } ?>

View File

@ -2326,6 +2326,9 @@ td.border, div.tagtable div div.border {
/* Main boxes */
.noborderbottom {
border-bottom: none !important;
}
.ficheaddleft table.noborder {
margin: 0px 0px 0px 0px;
}
@ -2345,6 +2348,13 @@ table.liste, table.noborder, table.formdoc, div.noborder {
margin: 0px 0px 5px 0px;
}
div.ficheaddleft table.noborder:last-child {
border-bottom: 1px solid #aaa;
}
div.ficheaddleft table.noborder {
border-bottom: none;
}
table.paddingtopbottomonly tr td {
padding-top: 1px;
padding-bottom: 2px;

View File

@ -2228,6 +2228,9 @@ td.border, div.tagtable div div.border {
/* Main boxes */
.noborderbottom {
border-bottom: none !important;
}
.ficheaddleft table.noborder {
margin: 0px 0px 0px 0px;
}