add edit in place for description

This commit is contained in:
Regis Houssin
2011-10-27 16:48:57 +02:00
parent d906552815
commit e4599a05cd

View File

@@ -808,6 +808,14 @@ else if ($id > 0 || ! empty($ref))
// Description (must be a textarea and not html must be allowed (used in list view)
print '<tr><td>';
if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE))
{
print $langs->trans('Description');
print '</td><td colspan="3">';
print $form->editInPlace(dol_nl2br($object->description), 'description', $user->rights->ficheinter->creer && $object->statut == 0);
}
else
{
print '<table class="nobordernopadding" width="100%"><tr><td>';
print $langs->trans('Description');
print '</td>';
@@ -827,6 +835,7 @@ else if ($id > 0 || ! empty($ref))
{
print dol_nl2br($object->description);
}
}
print '</td>';
print '</tr>';