mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
add edit in place for description
This commit is contained in:
@@ -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)
|
// Description (must be a textarea and not html must be allowed (used in list view)
|
||||||
print '<tr><td>';
|
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 '<table class="nobordernopadding" width="100%"><tr><td>';
|
||||||
print $langs->trans('Description');
|
print $langs->trans('Description');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@@ -827,6 +835,7 @@ else if ($id > 0 || ! empty($ref))
|
|||||||
{
|
{
|
||||||
print dol_nl2br($object->description);
|
print dol_nl2br($object->description);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user