Make sure every app has a sidemenu link to the list and add an entry

This commit is contained in:
Nathan Gray 2015-09-15 21:53:15 +00:00
parent 5a179d5e2c
commit 1e75cd8a92
3 changed files with 21 additions and 4 deletions

View File

@ -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')",

View File

@ -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);

View 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);