';
+ if ($morehtmlleft)
+ {
+ if ($conf->browser->layout == 'phone') $ret.='
';
@@ -5727,7 +5732,10 @@ class Form
}
else
{
- $ret.='

';
+ if ($conf->browser->layout != 'phone')
+ {
+ $ret.='

';
+ }
}
}
diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index 61f4f459091..3ad02cf60c2 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -1454,13 +1454,16 @@ class FormFile
global $langs, $conf;
$out='';
- $urladvancedpreview=getAdvancedPreviewUrl($modulepart, $relativepath);
- if ($urladvancedpreview)
+ if ($conf->browser->layout != 'phone')
{
- $out.= '
';
- if (empty($ruleforpicto)) $out.= img_picto($langs->trans('Preview').' '.$file['name'], 'detail');
- else $out.= img_mime($relativepath, $langs->trans('Preview').' '.$file['name']);
- $out.= '';
+ $urladvancedpreview=getAdvancedPreviewUrl($modulepart, $relativepath); // Return if a file is qualified for preview
+ if ($urladvancedpreview)
+ {
+ $out.= '
';
+ if (empty($ruleforpicto)) $out.= img_picto($langs->trans('Preview').' '.$file['name'], 'detail');
+ else $out.= img_mime($relativepath, $langs->trans('Preview').' '.$file['name']);
+ $out.= '';
+ }
}
return $out;
}
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 892c6c1fc2b..921571a478c 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -944,7 +944,6 @@ function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='r
if ($object->element == 'user') $modulepart='userphoto';
if ($object->element == 'product') $modulepart='product';
- print '
';
if ($object->element == 'product')
{
$width=80; $cssclass='photoref';
@@ -958,7 +957,7 @@ function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='r
$nophoto='';
$morehtmlleft.='
';
}
- else {
+ elseif ($conf->browser->layout != 'phone') { // Show no photo link
$nophoto='/public/theme/common/nophoto.png';
$morehtmlleft.='
';
}
@@ -969,21 +968,33 @@ function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='r
{
if ($showimage)
{
- $morehtmlleft.='
';
- if ($modulepart != 'unknown') $morehtmlleft.=$form->showphoto($modulepart,$object,0,0,0,'photoref','small',1,0,$maxvisiblephotos);
- else if ($object->element == 'action')
+ if ($modulepart != 'unknown')
{
- $cssclass='photorefcenter';
- $nophoto=img_picto('', 'title_agenda', '', false, 1);
- $morehtmlleft.='
';
+ $phototoshow = $form->showphoto($modulepart,$object,0,0,0,'photoref','small',1,0,$maxvisiblephotos);
+ if ($phototoshow)
+ {
+ $morehtmlleft.='
';
+ $morehtmlleft.=$phototoshow;
+ $morehtmlleft.='
';
+ }
}
- else
+ elseif ($conf->browser->layout != 'phone') // Show no photo link
{
- $width=14; $cssclass='photorefcenter';
- $nophoto=img_picto('', 'object_'.$object->picto, '', false, 1);
- $morehtmlleft.='
';
+ $morehtmlleft.='
';
+ if ($object->element == 'action')
+ {
+ $cssclass='photorefcenter';
+ $nophoto=img_picto('', 'title_agenda', '', false, 1);
+ $morehtmlleft.='
';
+ }
+ else
+ {
+ $width=14; $cssclass='photorefcenter';
+ $nophoto=img_picto('', 'object_'.$object->picto, '', false, 1);
+ $morehtmlleft.='
';
+ }
+ $morehtmlleft.='
';
}
- $morehtmlleft.='
';
}
}
if ($showbarcode) $morehtmlleft.='
'.$form->showbarcode($object).'
';
@@ -1035,6 +1046,8 @@ function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='r
$morehtmlref.=$langs->trans("TechnicalID").': '.$object->id;
$morehtmlref.='
';
}
+
+ print '
';
print $form->showrefnav($object, $paramid, $morehtml, $shownav, $fieldid, $fieldref, $morehtmlref, $moreparam, $nodbprefix, $morehtmlleft, $morehtmlright);
print '
';
print '
';
diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index 9709b4ecbac..e9896fc61af 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -1931,7 +1931,7 @@ else
)
);
- print $form->formconfirm($_SERVER["PHP_SELF"]."?socid=".$object->id, $langs->trans("MergeThirdparties"), $langs->trans("ConfirmMergeThirdparties"), "confirm_merge", $formquestion, 'no', 1, 190);
+ print $form->formconfirm($_SERVER["PHP_SELF"]."?socid=".$object->id, $langs->trans("MergeThirdparties"), $langs->trans("ConfirmMergeThirdparties"), "confirm_merge", $formquestion, 'no', 1, 200);
}
dol_htmloutput_errors($error,$errors);
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index e176ebcaaee..6da9077d5d2 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -4637,6 +4637,19 @@ img.demothumb {
max-width: 100px;
min-width: 0 !important;
}
+ div.divphotoref {
+ padding-right: 5px;
+ }
+ img.photoref, div.photoref {
+ border: none;
+ -moz-box-shadow: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ padding: 4px;
+ height: 20px;
+ width: 20px;
+ object-fit: contain;
+ }
}
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index ef751d882f7..016cb4f05c3 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -4445,6 +4445,20 @@ img.demothumb {
position: absolute;
width: px;
}
+ div.divphotoref {
+ padding-right: 5px;
+ }
+ img.photoref, div.photoref {
+ border: none;
+ -moz-box-shadow: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ padding: 4px;
+ height: 20px;
+ width: 20px;
+ object-fit: contain;
+ }
+
}