Fix responsive
This commit is contained in:
parent
083aef9b90
commit
d23604701c
@ -64,7 +64,7 @@ class modMyModule extends DolibarrModules
|
|||||||
$this->description = "Description of module MyModule";
|
$this->description = "Description of module MyModule";
|
||||||
$this->descriptionlong = "A very long description. Can be a full HTML content";
|
$this->descriptionlong = "A very long description. Can be a full HTML content";
|
||||||
$this->editor_name = 'Editor name';
|
$this->editor_name = 'Editor name';
|
||||||
$this->editor_url = 'http://www.dolibarr.org';
|
$this->editor_url = 'https://www.dolibarr.org';
|
||||||
|
|
||||||
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated' or a version string like 'x.y.z'
|
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated' or a version string like 'x.y.z'
|
||||||
$this->version = '1.0';
|
$this->version = '1.0';
|
||||||
|
|||||||
@ -538,7 +538,7 @@ if ($resql)
|
|||||||
$moreforfilter.='<div class="divsearchfield">';
|
$moreforfilter.='<div class="divsearchfield">';
|
||||||
$moreforfilter.=$langs->trans('IncludingProductWithTag'). ': ';
|
$moreforfilter.=$langs->trans('IncludingProductWithTag'). ': ';
|
||||||
$cate_arbo = $form->select_all_categories(Categorie::TYPE_PRODUCT, null, 'parent', null, null, 1);
|
$cate_arbo = $form->select_all_categories(Categorie::TYPE_PRODUCT, null, 'parent', null, null, 1);
|
||||||
$moreforfilter.=$form->selectarray('search_product_category', $cate_arbo, $search_product_category, 1, 0, 0, '', 0, 0, 0, 0, '', 1);
|
$moreforfilter.=$form->selectarray('search_product_category', $cate_arbo, $search_product_category, 1, 0, 0, '', 0, 0, 0, 0, 'maxwidth300', 1);
|
||||||
$moreforfilter.='</div>';
|
$moreforfilter.='</div>';
|
||||||
}
|
}
|
||||||
$parameters=array();
|
$parameters=array();
|
||||||
|
|||||||
@ -4871,17 +4871,17 @@ class Form
|
|||||||
if ($addjscombo && empty($conf->dol_use_jmobile) && $jsbeautify)
|
if ($addjscombo && empty($conf->dol_use_jmobile) && $jsbeautify)
|
||||||
{
|
{
|
||||||
$minLengthToAutocomplete=0;
|
$minLengthToAutocomplete=0;
|
||||||
$tmpplugin=empty($conf->global->MAIN_USE_JQUERY_MULTISELECT)?constant('REQUIRE_JQUERY_MULTISELECT')?constant('REQUIRE_JQUERY_MULTISELECT'):'select2':$conf->global->MAIN_USE_JQUERY_MULTISELECT;
|
$tmpplugin=empty($conf->global->MAIN_USE_JQUERY_MULTISELECT)?(constant('REQUIRE_JQUERY_MULTISELECT')?constant('REQUIRE_JQUERY_MULTISELECT'):'select2'):$conf->global->MAIN_USE_JQUERY_MULTISELECT;
|
||||||
$out.='<!-- JS CODE TO ENABLE '.$tmpplugin.' for id '.$htmlname.' -->
|
|
||||||
<script type="text/javascript">
|
// Enhance with select2
|
||||||
$(document).ready(function () {
|
$nodatarole='';
|
||||||
$(\''.(preg_match('/^\./',$htmlname)?$htmlname:'#'.$htmlname).'\').'.$tmpplugin.'({
|
if ($conf->use_javascript_ajax)
|
||||||
dir: \'ltr\',
|
{
|
||||||
width: \'resolve\', /* off or resolve */
|
include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php';
|
||||||
minimumInputLength: '.$minLengthToAutocomplete.'
|
$comboenhancement = ajax_combobox($htmlname);
|
||||||
});
|
$out.=$comboenhancement;
|
||||||
});
|
$nodatarole=($comboenhancement?' data-role="none"':'');
|
||||||
</script>';
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$out.='<select id="'.preg_replace('/^\./','',$htmlname).'" '.($disabled?'disabled ':'').'class="flat '.(preg_replace('/^\./','',$htmlname)).($morecss?' '.$morecss:'').'" name="'.preg_replace('/^\./','',$htmlname).'" '.($moreparam?$moreparam:'').'>';
|
$out.='<select id="'.preg_replace('/^\./','',$htmlname).'" '.($disabled?'disabled ':'').'class="flat '.(preg_replace('/^\./','',$htmlname)).($morecss?' '.$morecss:'').'" name="'.preg_replace('/^\./','',$htmlname).'" '.($moreparam?$moreparam:'').'>';
|
||||||
|
|||||||
@ -341,6 +341,8 @@ print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST" name="formulaire">'
|
|||||||
print '<input type="hidden" name="token" value="' .$_SESSION['newtoken'] . '">';
|
print '<input type="hidden" name="token" value="' .$_SESSION['newtoken'] . '">';
|
||||||
print '<input type="hidden" name="action" value="addline">';
|
print '<input type="hidden" name="action" value="addline">';
|
||||||
|
|
||||||
|
|
||||||
|
print '<div class="div-table-responsive">';
|
||||||
print '<table class="liste" width="100%">';
|
print '<table class="liste" width="100%">';
|
||||||
//print '<div class="tagtable centpercent">';
|
//print '<div class="tagtable centpercent">';
|
||||||
|
|
||||||
@ -378,7 +380,7 @@ print '</td>';
|
|||||||
if ($conf->productbatch->enabled)
|
if ($conf->productbatch->enabled)
|
||||||
{
|
{
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print '<input type="text" name="batch" size="6" value="'.$batch.'">';
|
print '<input type="text" name="batch" class="flat maxwidth50onsmartphone" value="'.$batch.'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
// In warehouse
|
// In warehouse
|
||||||
@ -428,6 +430,7 @@ foreach($listofdata as $key => $val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
print '</div>';
|
||||||
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user