forked from Wavyzz/dolibarr
Fix ergonomy. Adding a new entry is done from left menu.
This commit is contained in:
@@ -149,27 +149,6 @@ else
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Boutons actions
|
|
||||||
*/
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
$parameters = array();
|
|
||||||
$reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been
|
|
||||||
// modified by hook
|
|
||||||
if (empty($reshook))
|
|
||||||
{
|
|
||||||
if ($action != "edit" )
|
|
||||||
{
|
|
||||||
// Edit resource
|
|
||||||
if($user->rights->resource->write)
|
|
||||||
{
|
|
||||||
print '<div class="inline-block divButAction">';
|
|
||||||
print '<a href="add.php" class="butAction">'.$langs->trans('AddResource').'</a>';
|
|
||||||
print '</div>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user