Responsive
This commit is contained in:
parent
396b532400
commit
e8a9a7b732
@ -371,7 +371,7 @@ if ($nolinesbefore) {
|
||||
if ($object->element == 'supplier_proposal' || $object->element == 'order_supplier' || $object->element == 'invoice_supplier' || $object->element == 'invoice_supplier_rec') { // We must have same test in printObjectLines
|
||||
$coldisplay++;
|
||||
?>
|
||||
<td class="nobottom linecolresupplier"><input id="fourn_ref" name="fourn_ref" class="flat minwidth50 maxwidth125" value="<?php echo (GETPOSTISSET("fourn_ref") ? GETPOST("fourn_ref", 'alpha', 2) : ''); ?>"></td>
|
||||
<td class="nobottom linecolrefsupplier"><input id="fourn_ref" name="fourn_ref" class="flat minwidth50 maxwidth125 maxwidth125onsmartphone" value="<?php echo (GETPOSTISSET("fourn_ref") ? GETPOST("fourn_ref", 'alpha', 2) : ''); ?>"></td>
|
||||
<?php }
|
||||
print '<td class="nobottom linecolvat right">';
|
||||
$coldisplay++;
|
||||
|
||||
@ -90,7 +90,7 @@ $coldisplay = 0;
|
||||
|
||||
$coldisplay++;
|
||||
?>
|
||||
<td>
|
||||
<td class="linecoldesc minwidth250onall">
|
||||
<div id="line_<?php echo $line->id; ?>"></div>
|
||||
|
||||
<input type="hidden" name="lineid" value="<?php echo $line->id; ?>">
|
||||
@ -196,7 +196,7 @@ $coldisplay++;
|
||||
if ($object->element == 'supplier_proposal' || $object->element == 'order_supplier' || $object->element == 'invoice_supplier' || $object->element == 'invoice_supplier_rec') { // We must have same test in printObjectLines
|
||||
$coldisplay++;
|
||||
?>
|
||||
<td class="right"><input id="fourn_ref" name="fourn_ref" class="flat minwidth50 maxwidth150" value="<?php echo GETPOSTISSET('fourn_ref') ? GETPOST('fourn_ref') : ($line->ref_supplier ? $line->ref_supplier : $line->ref_fourn); ?>"></td>
|
||||
<td class="right linecolrefsupplier"><input id="fourn_ref" name="fourn_ref" class="flat minwidth50 maxwidth125 maxwidth125onsmartphone" value="<?php echo GETPOSTISSET('fourn_ref') ? GETPOST('fourn_ref') : ($line->ref_supplier ? $line->ref_supplier : $line->ref_fourn); ?>"></td>
|
||||
<?php
|
||||
}
|
||||
|
||||
@ -265,7 +265,7 @@ $coldisplay++;
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="nowrap right">
|
||||
<td class="nowraponall right linecoldiscount">
|
||||
<?php $coldisplay++;
|
||||
if (($line->info_bits & 2) != 2) {
|
||||
print '<input size="1" type="text" class="flat right" name="remise_percent" id="remise_percent" value="'.(GETPOSTISSET('remise_percent') ? GETPOST('remise_percent') : $line->remise_percent).'"';
|
||||
|
||||
@ -3164,7 +3164,7 @@ if ($action == 'create') {
|
||||
|
||||
// Amount
|
||||
print '<tr><td class="titlefield">'.$langs->trans('AmountHT').'</td><td>'.price($object->total_ht, 1, $langs, 0, -1, -1, $conf->currency).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('AmountVAT').'</td><td>'.price($object->total_tva, 1, $langs, 0, -1, -1, $conf->currency).'<div class="inline-block"> ';
|
||||
print '<tr><td>'.$langs->trans('AmountVAT').'</td><td>'.price($object->total_tva, 1, $langs, 0, -1, -1, $conf->currency);
|
||||
if (GETPOST('calculationrule')) {
|
||||
$calculationrule = GETPOST('calculationrule', 'alpha');
|
||||
} else {
|
||||
@ -3177,13 +3177,16 @@ if ($action == 'create') {
|
||||
}
|
||||
// Show link for "recalculate"
|
||||
if ($object->getVentilExportCompta() == 0) {
|
||||
$s = $langs->trans("ReCalculate").' ';
|
||||
$s = '<span class="hideonsmartphone">'.$langs->trans("ReCalculate").' </span>';
|
||||
$s .= '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=calculate&calculationrule=totalofround">'.$langs->trans("Mode1").'</a>';
|
||||
$s .= ' / ';
|
||||
$s .= '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=calculate&calculationrule=roundoftotal">'.$langs->trans("Mode2").'</a>';
|
||||
print $form->textwithtooltip($s, $langs->trans("CalculationRuleDesc", $calculationrulenum).'<br>'.$langs->trans("CalculationRuleDescSupplier"), 2, 1, img_picto('', 'help'));
|
||||
print '<div class="inline-block">';
|
||||
print ' ';
|
||||
print $form->textwithtooltip($s, $langs->trans("CalculationRuleDesc", $calculationrulenum).'<br>'.$langs->trans("CalculationRuleDescSupplier"), 2, 1, img_picto('', 'help'), '', 3, '', 0, 'recalculate');
|
||||
print '</div>';
|
||||
}
|
||||
print '</div></td></tr>';
|
||||
print '</td></tr>';
|
||||
|
||||
// Amount Local Taxes
|
||||
//TODO: Place into a function to control showing by country or study better option
|
||||
|
||||
@ -1555,6 +1555,11 @@ table[summary="list_of_modules"] .fa-cog {
|
||||
.maxwidth1000 { max-width: 1000px; }
|
||||
.maxwidth50imp { max-width: 50px !important; }
|
||||
.maxwidth75imp { max-width: 75px !important; }
|
||||
|
||||
.minwidth100onall { min-width: 100px !important; }
|
||||
.minwidth200onall { min-width: 200px !important; }
|
||||
.minwidth250onall { min-width: 250px !important; }
|
||||
|
||||
.minheight20 { min-height: 20px; }
|
||||
.minheight30 { min-height: 30px; }
|
||||
.minheight40 { min-height: 40px; }
|
||||
@ -1763,6 +1768,7 @@ select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-select
|
||||
.maxwidth50onsmartphone { max-width: 40px; }
|
||||
.maxwidth75onsmartphone { max-width: 50px; }
|
||||
.maxwidth100onsmartphone { max-width: 70px; }
|
||||
.maxwidth125onsmartphone { max-width: 100px; }
|
||||
.maxwidth150onsmartphone { max-width: 120px; }
|
||||
.maxwidth150onsmartphoneimp { max-width: 120px !important; }
|
||||
.maxwidth200onsmartphone { max-width: 200px; }
|
||||
|
||||
@ -1643,6 +1643,11 @@ tr.nobottom td {
|
||||
.maxwidth500 { max-width: 500px; }
|
||||
.maxwidth50imp { max-width: 50px !important; }
|
||||
.maxwidth75imp { max-width: 75px !important; }
|
||||
|
||||
.minwidth100onall { min-width: 100px !important; }
|
||||
.minwidth200onall { min-width: 200px !important; }
|
||||
.minwidth250onall { min-width: 250px !important; }
|
||||
|
||||
.minheight20 { min-height: 20px; }
|
||||
.minheight30 { min-height: 30px; }
|
||||
.minheight40 { min-height: 40px; }
|
||||
@ -1835,6 +1840,7 @@ select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-select
|
||||
.maxwidth50onsmartphone { max-width: 40px; }
|
||||
.maxwidth75onsmartphone { max-width: 50px; }
|
||||
.maxwidth100onsmartphone { max-width: 70px; }
|
||||
.maxwidth125onsmartphone { max-width: 100px; }
|
||||
.maxwidth150onsmartphone { max-width: 120px; }
|
||||
.maxwidth150onsmartphoneimp { max-width: 120px !important; }
|
||||
.maxwidth200onsmartphone { max-width: 200px; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user