From a79903a2fcaaf3b98b41b40177a5c200ac636d81 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 23 Feb 2017 01:29:35 +0100 Subject: [PATCH] Fix responsive design --- htdocs/core/lib/propal.lib.php | 3 ++- htdocs/expensereport/card.php | 11 ++++++----- htdocs/resource/add.php | 2 +- htdocs/resource/class/html.formresource.class.php | 2 +- htdocs/theme/eldy/style.css.php | 7 ++++++- htdocs/theme/md/style.css.php | 8 +++++++- 6 files changed, 23 insertions(+), 10 deletions(-) diff --git a/htdocs/core/lib/propal.lib.php b/htdocs/core/lib/propal.lib.php index 9d4874cb2f3..13fbe06e7d4 100644 --- a/htdocs/core/lib/propal.lib.php +++ b/htdocs/core/lib/propal.lib.php @@ -34,7 +34,8 @@ function propal_prepare_head($object) global $db, $langs, $conf, $user; $langs->load("propal"); $langs->load("compta"); - + $langs->load("companies"); + $h = 0; $head = array(); diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 86e48d47db4..dd1a86d1a74 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -1808,7 +1808,7 @@ else $sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'projet as pjt ON fde.fk_projet=pjt.rowid'; $sql.= ' WHERE fde.fk_expensereport = '.$object->id; - print '
'; + print '
'; $actiontouse='updateligne'; if (($object->fk_statut==0 || $object->fk_statut==99) && $action != 'editline') $actiontouse='addline'; @@ -1818,7 +1818,10 @@ else print ''; print ''; print ''; - print ''; + + + print '
'; + print '
'; $resql = $db->query($sql); if ($resql) @@ -2047,11 +2050,9 @@ else } // Fin si c'est payé/validé print '
'; + print '
'; print ''; - - print ''; - } else { diff --git a/htdocs/resource/add.php b/htdocs/resource/add.php index 7c60bf8091d..c8b4d124fed 100644 --- a/htdocs/resource/add.php +++ b/htdocs/resource/add.php @@ -151,7 +151,7 @@ if (! $action) print $langs->trans('ResourceFormLabel_'.$field); print ''; print ''; - print ''; + print ''; print ''; print ''; diff --git a/htdocs/resource/class/html.formresource.class.php b/htdocs/resource/class/html.formresource.class.php index b094aacd1ea..ae638787d1e 100644 --- a/htdocs/resource/class/html.formresource.class.php +++ b/htdocs/resource/class/html.formresource.class.php @@ -172,7 +172,7 @@ class FormResource if ($filtertype != '' && $filtertype != '-1') $filterarray=explode(',',$filtertype); $resourcestat->load_cache_code_type_resource(); - print ''; if ($empty) print ''; if (is_array($resourcestat->cache_code_type_resource) && count($resourcestat->cache_code_type_resource)) { diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 37644d7ada4..bd85f1a39b5 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -708,7 +708,9 @@ div.fiche>form>div.div-table-responsive { text-overflow: ellipsis; white-space: nowrap; } - + div.fiche { + margin-top: px !important; + } div.titre { line-height: 2em; } @@ -773,6 +775,9 @@ div.fiche>form>div.div-table-responsive { object-fit: contain; } + div.statusref { + padding-right: 10px; + } } .linkobject { cursor: pointer; } diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 33508a7f6a9..4a4a89443b5 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -686,7 +686,9 @@ div.fiche>form>div.div-table-responsive { text-overflow: ellipsis; white-space: nowrap; } - + div.fiche { + margin-top: px !important; + } div.titre { line-height: 2em; } @@ -750,6 +752,10 @@ div.fiche>form>div.div-table-responsive { width: 20px; object-fit: contain; } + + div.statusref { + padding-right: 10px; + } } .linkobject { cursor: pointer; }