2
0
forked from Wavyzz/dolibarr

We must use the dol_fiche_head and dol_fiche_end also for "create"

forms.
This commit is contained in:
Laurent Destailleur
2015-04-10 10:20:51 +02:00
parent 2b071a6091
commit fb868bc8f9

View File

@@ -958,6 +958,8 @@ if ($action == 'create')
print '<input type="hidden" name="socid" value="'.$soc->id.'">'."\n";
print '<input type="hidden" name="remise_percent" value="0">';
dol_fiche_head();
print '<table class="border" width="100%">';
// Ref
@@ -1053,7 +1055,9 @@ if ($action == 'create')
print "</table>\n";
print '<br><div align="center"><input type="submit" class="button" value="'.$langs->trans("Create").'"></div>';
dol_fiche_end();
print '<div align="center"><input type="submit" class="button" value="'.$langs->trans("Create").'"></div>';
if (is_object($objectsrc))
{
@@ -1065,10 +1069,8 @@ if ($action == 'create')
print '<br>'.$langs->trans("Note").': '.$langs->trans("OnlyLinesWithTypeServiceAreUsed");
}
}
print "</form>\n";
dol_fiche_end();
}
else
/* *************************************************************************** */