mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Make sure every app has a sidemenu link to the list and add an entry
This commit is contained in:
parent
50b3c77986
commit
b0713a9945
@ -44,9 +44,14 @@ class addressbook_hooks
|
||||
display_sidebox($appname, lang('Favorites'), egw_framework::favorite_list('addressbook'));
|
||||
|
||||
$file = array(
|
||||
'Add' => "javascript:egw_openWindowCentered2('".
|
||||
egw::link('/index.php',array('menuaction' => 'addressbook.addressbook_ui.edit'),false).
|
||||
"','_blank',870,480,'yes')",
|
||||
'Addressbook list' => egw::link('/index.php',array(
|
||||
'menuaction' => 'addressbook.addressbook_ui.index',
|
||||
'ajax' => 'true')),
|
||||
array(
|
||||
'text' => lang('Add %1',lang(egw_link::get_registry($appname, 'entry'))),
|
||||
'no_lang' => true,
|
||||
'link' => "javascript:egw.open('','$appname','add')"
|
||||
),
|
||||
'Advanced search' => "javascript:egw_openWindowCentered2('".
|
||||
egw::link('/index.php',array('menuaction' => 'addressbook.addressbook_ui.search'),false).
|
||||
"','_blank',870,480,'yes')",
|
||||
|
@ -99,7 +99,11 @@ class infolog_hooks
|
||||
'infolog list' => egw::link('/index.php',array(
|
||||
'menuaction' => 'infolog.infolog_ui.index',
|
||||
'ajax' => 'true')),
|
||||
'Add' => "javascript:app.infolog.add_link_sidemenu();",
|
||||
array(
|
||||
'text' => lang('Add %1',lang(egw_link::get_registry($appname, 'entry'))),
|
||||
'no_lang' => true,
|
||||
'link' => "javascript:app.infolog.add_link_sidemenu();"
|
||||
),
|
||||
'Placeholders' => egw::link('/index.php','menuaction=infolog.infolog_merge.show_replacements')
|
||||
);
|
||||
display_sidebox($appname,$GLOBALS['egw_info']['apps']['infolog']['title'].' '.lang('Menu'),$file);
|
||||
|
@ -107,6 +107,14 @@ class timesheet_hooks
|
||||
display_sidebox($appname, lang('Favorites'), egw_framework::favorite_list($appname));
|
||||
|
||||
$file = array(
|
||||
'Timesheet list' => egw::link('/index.php',array(
|
||||
'menuaction' => 'timesheet.timesheet_ui.index',
|
||||
'ajax' => 'true')),
|
||||
array(
|
||||
'text' => lang('Add %1',lang(egw_link::get_registry($appname, 'entry'))),
|
||||
'no_lang' => true,
|
||||
'link' => "javascript:egw.open('','$appname','add')"
|
||||
),
|
||||
);
|
||||
$file['Placeholders'] = egw::link('/index.php','menuaction=timesheet.timesheet_merge.show_replacements');
|
||||
display_sidebox($appname,$GLOBALS['egw_info']['apps'][$appname]['title'].' '.lang('Menu'),$file);
|
||||
|
Loading…
Reference in New Issue
Block a user