12 import(
'lib.pkp.classes.controllers.grid.GridCellProvider');
13 import(
'lib.pkp.classes.linkAction.request.RedirectAction');
25 function getCellActions($request, $row, $column, $position = GRID_ACTION_POSITION_DEFAULT) {
26 $customLocale = $row->getData();
27 import(
'lib.pkp.classes.linkAction.request.RemoteActionConfirmationModal');
28 import(
'lib.pkp.classes.linkAction.request.AjaxAction');
29 import(
'lib.pkp.classes.linkAction.request.AjaxModal');
30 switch ($column->getId()) {
32 $dispatcher = $request->getDispatcher();
33 $router = $request->getRouter();
38 $router->url($request,
null,
null,
'edit',
null, array(
'localeKey' => $customLocale->getPath()))
45 $dispatcher = $request->getDispatcher();
46 $router = $request->getRouter();
51 $router->url($request,
null,
null,
'editLocaleFile',
null, array(
'locale'=>$customLocale->getLocale(),
'filePath' => $customLocale->getFilePath())),
52 __(
'grid.action.edit'),
60 return parent::getCellActions($request, $row, $column, $position);
71 $customLocale = $row->getData();
73 switch ($column->getId()) {
76 return array(
'label' =>
'');
79 return array(
'label' =>
'');
81 return array(
'label' => $customLocale->getLocalizedTitle());
83 return array(
'label' => $customLocale->getFileTitle());
85 return array(
'label' => $customLocale->getKey());
87 return parent::getTemplateVarsFromColumn($row, $column);