Responsive

This commit is contained in:
Laurent Destailleur 2020-02-27 16:00:01 +01:00
parent 957295ee2d
commit eac07aceb0

View File

@ -455,9 +455,10 @@ class FormCompany extends Form
* @param int $country_codeid 0=list for all countries, otherwise list only country requested
* @param string $filter Add a SQL filter on list
* @param string $htmlname HTML name of select
* @param string $morecss More CSS
* @return string String with HTML select
*/
public function select_juridicalstatus($selected = '', $country_codeid = 0, $filter = '', $htmlname = 'forme_juridique_code')
public function select_juridicalstatus($selected = '', $country_codeid = 0, $filter = '', $htmlname = 'forme_juridique_code', $morecss = '')
{
// phpcs:enable
global $conf, $langs, $user;
@ -479,7 +480,7 @@ class FormCompany extends Form
if ($resql)
{
$out .= '<div id="particulier2" class="visible">';
$out .= '<select class="flat minwidth200" name="'.$htmlname.'" id="'.$htmlname.'">';
$out .= '<select class="flat minwidth200'.($morecss?' '.$morecss:'').'" name="'.$htmlname.'" id="'.$htmlname.'">';
if ($country_codeid) $out .= '<option value="0">&nbsp;</option>'; // When country_codeid is set, we force to add an empty line because it does not appears from select. When not set, we already get the empty line from select.
$num = $this->db->num_rows($resql);