<?php
global $lang, $app;

$config->risk->actionList = array();
$config->risk->actionList['track']['icon']        = 'checked';
$config->risk->actionList['track']['text']        = $lang->risk->track;
$config->risk->actionList['track']['hint']        = $lang->risk->track;
$config->risk->actionList['track']['url']         = array('module' => 'risk', 'method' => 'track', 'params' => 'riskID={id}');
$config->risk->actionList['track']['data-toggle'] = 'modal';

$config->risk->actionList['assignTo']['icon']        = 'hand-right';
$config->risk->actionList['assignTo']['text']        = $lang->risk->assignTo;
$config->risk->actionList['assignTo']['hint']        = $lang->risk->assignTo;
$config->risk->actionList['assignTo']['url']         = array('module' => 'risk', 'method' => 'assignTo', 'params' => 'riskID={id}');
$config->risk->actionList['assignTo']['data-toggle'] = 'modal';

$config->risk->actionList['close']['icon']        = 'off';
$config->risk->actionList['close']['text']        = $lang->risk->close;
$config->risk->actionList['close']['hint']        = $lang->risk->close;
$config->risk->actionList['close']['url']         = array('module' => 'risk', 'method' => 'close', 'params' => 'riskID={id}');
$config->risk->actionList['close']['data-toggle'] = 'modal';

$config->risk->actionList['cancel']['icon']        = 'cancel';
$config->risk->actionList['cancel']['text']        = $lang->risk->cancel;
$config->risk->actionList['cancel']['hint']        = $lang->risk->cancel;
$config->risk->actionList['cancel']['url']         = array('module' => 'risk', 'method' => 'cancel', 'params' => 'riskID={id}');
$config->risk->actionList['cancel']['data-toggle'] = 'modal';

$config->risk->actionList['hangup']['icon']        = 'pause';
$config->risk->actionList['hangup']['text']        = $lang->risk->hangup;
$config->risk->actionList['hangup']['hint']        = $lang->risk->hangup;
$config->risk->actionList['hangup']['url']         = array('module' => 'risk', 'method' => 'hangup', 'params' => 'riskID={id}');
$config->risk->actionList['hangup']['data-toggle'] = 'modal';

$config->risk->actionList['activate']['text']        = $lang->risk->activate;
$config->risk->actionList['activate']['icon']        = 'magic';
$config->risk->actionList['activate']['hint']        = $lang->risk->activate;
$config->risk->actionList['activate']['url']         = array('module' => 'risk', 'method' => 'activate', 'params' => 'riskID={id}');
$config->risk->actionList['activate']['data-toggle'] = 'modal';

$config->risk->actionList['effort']['icon']        = 'time';
$config->risk->actionList['effort']['text']        = $lang->risk->effort;
$config->risk->actionList['effort']['hint']        = $lang->risk->effort;
$config->risk->actionList['effort']['url']         = array('module' => 'effort', 'method' => 'createForObject', 'params' => 'objectType=risk&objectID={id}');
$config->risk->actionList['effort']['data-toggle'] = 'iframeModal';

$config->risk->actionList['importToLib']['icon']        = 'diamond';
$config->risk->actionList['importToLib']['text']        = $lang->risk->importToLib;
$config->risk->actionList['importToLib']['hint']        = $lang->risk->importToLib;
$config->risk->actionList['importToLib']['url']         = '#importToLib';
$config->risk->actionList['importToLib']['data-toggle'] = 'modal';

$config->risk->actionList['edit']['icon']        = 'edit';
$config->risk->actionList['edit']['text']        = $lang->risk->edit;
$config->risk->actionList['edit']['hint']        = $lang->risk->edit;
$config->risk->actionList['edit']['url']         = array('module' => 'risk', 'method' => 'edit', 'params' => 'riskID={id}&from=' . ($app->tab == 'safe' ? 'pi' : $app->tab));
$config->risk->actionList['edit']['data-toggle'] = 'modal';
$config->risk->actionList['edit']['data-size']   = 'lg';

$config->risk->actionList['delete']['icon']         = 'trash';
$config->risk->actionList['delete']['hint']         = $lang->risk->delete;
$config->risk->actionList['delete']['text']         = $lang->risk->delete;
$config->risk->actionList['delete']['url']          = array('module' => 'risk', 'method' => 'delete', 'params' => 'riskID={id}');
$config->risk->actionList['delete']['className']    = 'ajax-submit';
$config->risk->actionList['delete']['data-confirm'] = $lang->risk->confirmDelete;
