Jump to content


Photo

Actions Module "List View" - add "Complete + new action" button

actions

  • Please log in to reply
1 reply to this topic

#1 cgodwin

cgodwin

    Member

  • Members
  • PipPip
  • 11 posts

Posted 06 September 2018 - 11:36 AM

Hi there! We have clients who use the "Actions" module extensively to follow up with their contact's activities and find it cumbersome in the "List view" to have to click quite a few times to create a new action just to follow up from a previously completed action. The  "complete + new action" button is available in the "full record view" (see screenshot)  Attached File  Full action view.png   86.53KB   0 downloads .Can we have the same button up top in the "List View"? Especially when having to follow up with 50+ actions a day it would save a load of time. Attached File  Actions List View.png   127.37KB   0 downloads

 

PS: Is there any way to modify the "Priority" Dropdown from Low/Medium/High to 1-10? Right now it's not a thing for the "actions" module (I only found it for the Contacts module).Attached File  Changing priority.png   75.57KB   1 downloads 



#2 rordallas

rordallas

    Member

  • Members
  • PipPip
  • 14 posts

Posted 06 September 2018 - 01:24 PM

As far as answering your PS:

1. Duplicate "path to x2crm\X2CRM\x2engine\protected\modules\actions\models\Actions.php" to "path to x2crm\X2CRM\x2engine\custom\protected\modules\actions\models\Actions.php"

2. Modify the getPriorityLabels() function in "path to x2crm\X2CRM\x2engine\custom\protected\modules\actions\models\Actions.php"

FROM

    public static function getPriorityLabels(){
        if(!isset(self::$_priorityLabels)){
            self::$_priorityLabels = array(
                1 => Yii::t('actions', 'Low'),
                2 => Yii::t('actions', 'Medium'),
                3 => Yii::t('actions', 'High')
            );
        }
        return self::$_priorityLabels;
    }

TO

    public static function getPriorityLabels(){
        if(!isset(self::$_priorityLabels)){
            self::$_priorityLabels = array(
                1 => Yii::t('actions', '1'),
                2 => Yii::t('actions', '2'),
                3 => Yii::t('actions', '3'),
                4 => Yii::t('actions', '4'),
                5 => Yii::t('actions', '5'),
                6 => Yii::t('actions', '6'),
                7 => Yii::t('actions', '7'),
                8 => Yii::t('actions', '8'),
                9 => Yii::t('actions', '9'),
                10 => Yii::t('actions', '10')
            );
        }
        return self::$_priorityLabels;
    }

Caveat:

You would need to do this every time the software was updated to make sure everything is an exact copy of the 'updated' Actions.php except for your custom priorities.







Also tagged with one or more of these keywords: actions

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users