Fix responsive design
This commit is contained in:
parent
aefdc09cdc
commit
a79903a2fc
@ -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();
|
||||
|
||||
|
||||
@ -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 '<div style="clear: both;">';
|
||||
print '<div style="clear: both;"></div>';
|
||||
|
||||
$actiontouse='updateligne';
|
||||
if (($object->fk_statut==0 || $object->fk_statut==99) && $action != 'editline') $actiontouse='addline';
|
||||
@ -1818,7 +1818,10 @@ else
|
||||
print '<input type="hidden" name="action" value="'.$actiontouse.'">';
|
||||
print '<input type="hidden" name="id" value="'.$object->id.'">';
|
||||
print '<input type="hidden" name="fk_expensereport" value="'.$object->id.'" />';
|
||||
print '<table class="noborder" width="100%">';
|
||||
|
||||
|
||||
print '<div class="div-table-responsive">';
|
||||
print '<table id="tablelines" class="noborder" width="100%">';
|
||||
|
||||
$resql = $db->query($sql);
|
||||
if ($resql)
|
||||
@ -2047,11 +2050,9 @@ else
|
||||
} // Fin si c'est payé/validé
|
||||
|
||||
print '</table>';
|
||||
print '</div>';
|
||||
|
||||
print '</form>';
|
||||
|
||||
print '</div>';
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -151,7 +151,7 @@ if (! $action)
|
||||
print $langs->trans('ResourceFormLabel_'.$field);
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
print '<input type="text" name="'.$field.'" value="'.$$field.'" />';
|
||||
print '<input class="flat maxwidthonsmartphone" type="text" name="'.$field.'" value="'.$$field.'" />';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
|
||||
@ -172,7 +172,7 @@ class FormResource
|
||||
if ($filtertype != '' && $filtertype != '-1') $filterarray=explode(',',$filtertype);
|
||||
|
||||
$resourcestat->load_cache_code_type_resource();
|
||||
print '<select id="select'.$htmlname.'" class="flat select_'.$htmlname.'" name="'.$htmlname.'">';
|
||||
print '<select id="select'.$htmlname.'" class="flat maxwidthonsmartphone select_'.$htmlname.'" name="'.$htmlname.'">';
|
||||
if ($empty) print '<option value=""> </option>';
|
||||
if (is_array($resourcestat->cache_code_type_resource) && count($resourcestat->cache_code_type_resource))
|
||||
{
|
||||
|
||||
@ -708,7 +708,9 @@ div.fiche>form>div.div-table-responsive {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
div.fiche {
|
||||
margin-top: <?php print ($dol_hide_topmenu?'12':'6'); ?>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; }
|
||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||
|
||||
@ -686,7 +686,9 @@ div.fiche>form>div.div-table-responsive {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
div.fiche {
|
||||
margin-top: <?php print ($dol_hide_topmenu?'12':'6'); ?>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; }
|
||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user