Fix Responsive design

This commit is contained in:
Laurent Destailleur 2016-11-27 20:55:59 +01:00
parent ccba387691
commit e59edca855
10 changed files with 25 additions and 11 deletions

View File

@ -2209,6 +2209,7 @@ if ($action == 'create')
include DOL_DOCUMENT_ROOT . '/core/tpl/ajaxrow.tpl.php';
}
print '<div class="div-table-responsive">';
print '<table id="tablelines" class="noborder noshadow" width="100%">';
if (! empty($object->lines))
@ -2230,7 +2231,8 @@ if ($action == 'create')
}
print '</table>';
print '</div>';
print "</form>\n";
dol_fiche_end();

View File

@ -43,6 +43,8 @@ $result = restrictedArea($user, 'propal', $id);
* View
*/
$form = new Form($db);
llxHeader('',$langs->trans('Proposal'),'EN:Commercial_Proposals|FR:Proposition_commerciale|ES:Presupuestos');
$object = new Propal($db);

View File

@ -2409,6 +2409,7 @@ if ($action == 'create' && $user->rights->commande->creer)
include DOL_DOCUMENT_ROOT . '/core/tpl/ajaxrow.tpl.php';
}
print '<div class="div-table-responsive">';
print '<table id="tablelines" class="noborder noshadow" width="100%">';
// Show object lines
@ -2434,7 +2435,8 @@ if ($action == 'create' && $user->rights->commande->creer)
}
}
print '</table>';
print '</div>';
print "</form>\n";
dol_fiche_end();

View File

@ -3726,6 +3726,7 @@ else if ($id > 0 || ! empty($ref))
include DOL_DOCUMENT_ROOT . '/core/tpl/ajaxrow.tpl.php';
}
print '<div class="div-table-responsive">';
print '<table id="tablelines" class="noborder noshadow" width="100%">';
// Show global modifiers
@ -3797,7 +3798,8 @@ else if ($id > 0 || ! empty($ref))
}
print "</table>\n";
print "</div>";
print "</form>\n";
dol_fiche_end();

View File

@ -1928,7 +1928,9 @@ else
';
print '<br>';
print '<table id="tablelines" class="noborder noshadow" width="100%">'; // Array with (n*2)+1 lines
print '<div class="div-table-responsive">';
print '<table id="tablelines" class="noborder noshadow" width="100%">'; // Array with (n*2)+1 lines
// Trick to not show product entries
$savproductenabled=$conf->product->enabled;
@ -1950,7 +1952,7 @@ else
$conf->product->enabled = $savproductenabled;
print '</table>';
print '</div>';
print '</form>';
}

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2010-2016 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -17,7 +17,7 @@
*
* Javascript code to activate drag and drop on lines
* You can use this if you want to be abale to drag and drop rows of a table.
* You must add id="tablelines" ont table level tag and have count($object->lines) or count($taskarray) > 0
* You must add id="tablelines" on table level tag and have count($object->lines) or count($taskarray) > 0
*/
?>

View File

@ -52,6 +52,7 @@ $userstatic=new User($db);
?>
<!-- BEGIN PHP TEMPLATE CONTACTS -->
<div class="div-table-responsive">
<div class="tagtable centpercent noborder allwidth">
<?php
@ -237,6 +238,7 @@ if ($permission) {
<?php $i++; ?>
<?php } } ?>
</div>
</div>
<!-- TEMPLATE CONTACTS HOOK BEGIN HERE -->
<?php

View File

@ -2076,6 +2076,7 @@ elseif (! empty($object->id))
include DOL_DOCUMENT_ROOT . '/core/tpl/ajaxrow.tpl.php';
}
print '<div class="div-table-responsive">';
print '<table id="tablelines" class="noborder noshadow" width="100%">';
// Add free products/services form
@ -2104,7 +2105,7 @@ elseif (! empty($object->id))
}
}
print '</table>';
print '</div>';
print '</form>';
dol_fiche_end();

View File

@ -2560,6 +2560,7 @@ else
include DOL_DOCUMENT_ROOT . '/core/tpl/ajaxrow.tpl.php';
}
print '<div class="div-table-responsive">';
print '<table id="tablelines" class="noborder noshadow" width="100%">';
global $forceall, $senderissupplier, $dateSelector, $inputalsopricewithtax;
@ -2587,8 +2588,7 @@ else
}
print '</table>';
print '</div>';
print '</form>';
dol_fiche_end();

View File

@ -1649,6 +1649,7 @@ if ($action == 'create')
include DOL_DOCUMENT_ROOT . '/core/tpl/ajaxrow.tpl.php';
}
print '<div class="div-table-responsive">';
print '<table id="tablelines" class="noborder noshadow" width="100%">';
// Add free products/services form
@ -1674,7 +1675,7 @@ if ($action == 'create')
}
print '</table>';
print '</div>';
print "</form>\n";
dol_fiche_end();