Fix: Pb into form output
This commit is contained in:
parent
fee958eafb
commit
0690e8c39e
@ -441,15 +441,17 @@ class FormFile
|
|||||||
|
|
||||||
// Button
|
// Button
|
||||||
$out.= '<th align="center" colspan="'.($delallowed?'2':'1').'" class="formdocbutton liste_titre">';
|
$out.= '<th align="center" colspan="'.($delallowed?'2':'1').'" class="formdocbutton liste_titre">';
|
||||||
$out.= '<input class="button" id="'.$forname.'_generatebutton"';
|
$genbutton = '<input class="button" id="'.$forname.'_generatebutton"';
|
||||||
$out.= ' type="submit" value="'.$buttonlabel.'"';
|
$genbutton.= ' type="submit" value="'.$buttonlabel.'"';
|
||||||
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist)) $out.= ' disabled="disabled"';
|
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist)) $genbutton.= ' disabled="disabled"';
|
||||||
$out.= '>';
|
$genbutton.= '>';
|
||||||
if ($allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid')
|
if ($allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid')
|
||||||
{
|
{
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$out.= ' '.img_warning($langs->transnoentitiesnoconv("WarningNoDocumentModelActivated"));
|
$genbutton.= ' '.img_warning($langs->transnoentitiesnoconv("WarningNoDocumentModelActivated"));
|
||||||
}
|
}
|
||||||
|
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid') $genbutton='';
|
||||||
|
$out.= $genbutton;
|
||||||
$out.= '</th>';
|
$out.= '</th>';
|
||||||
|
|
||||||
if ($printer) $out.= '<th></th>';
|
if ($printer) $out.= '<th></th>';
|
||||||
|
|||||||
@ -1793,7 +1793,6 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
if (empty($conf->global->SOCIETE_DISABLE_BUILDDOC))
|
if (empty($conf->global->SOCIETE_DISABLE_BUILDDOC))
|
||||||
{
|
{
|
||||||
@ -1821,6 +1820,8 @@ else
|
|||||||
print '<br>';
|
print '<br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '<div class="fichecenter"><br></div>';
|
||||||
|
|
||||||
// Subsidiaries list
|
// Subsidiaries list
|
||||||
$result=show_subsidiaries($conf,$langs,$db,$object);
|
$result=show_subsidiaries($conf,$langs,$db,$object);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user