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

This commit is contained in:
Nathan Gray 2015-09-09 22:20:25 +00:00
parent 50b3c77986
commit b0713a9945
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')); display_sidebox($appname, lang('Favorites'), egw_framework::favorite_list('addressbook'));
$file = array( $file = array(
'Add' => "javascript:egw_openWindowCentered2('". 'Addressbook list' => egw::link('/index.php',array(
egw::link('/index.php',array('menuaction' => 'addressbook.addressbook_ui.edit'),false). 'menuaction' => 'addressbook.addressbook_ui.index',
"','_blank',870,480,'yes')", '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('". 'Advanced search' => "javascript:egw_openWindowCentered2('".
egw::link('/index.php',array('menuaction' => 'addressbook.addressbook_ui.search'),false). egw::link('/index.php',array('menuaction' => 'addressbook.addressbook_ui.search'),false).
"','_blank',870,480,'yes')", "','_blank',870,480,'yes')",

View File

@ -99,7 +99,11 @@ class infolog_hooks
'infolog list' => egw::link('/index.php',array( 'infolog list' => egw::link('/index.php',array(
'menuaction' => 'infolog.infolog_ui.index', 'menuaction' => 'infolog.infolog_ui.index',
'ajax' => 'true')), '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') 'Placeholders' => egw::link('/index.php','menuaction=infolog.infolog_merge.show_replacements')
); );
display_sidebox($appname,$GLOBALS['egw_info']['apps']['infolog']['title'].' '.lang('Menu'),$file); 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)); display_sidebox($appname, lang('Favorites'), egw_framework::favorite_list($appname));
$file = array( $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'); $file['Placeholders'] = egw::link('/index.php','menuaction=timesheet.timesheet_merge.show_replacements');
display_sidebox($appname,$GLOBALS['egw_info']['apps'][$appname]['title'].' '.lang('Menu'),$file); display_sidebox($appname,$GLOBALS['egw_info']['apps'][$appname]['title'].' '.lang('Menu'),$file);