{{ 'CONVERSION_DIALOG' | translate }}

{{:: 'CONVERT_PARENT_DIALOG' | translate}}

{{ 'OPEN_CONVERT_PARENT_DIALOG' | translate }}

{{:: 'CODE' | translate}}

             pipConversionDialog.show(
                    {
                        event: event,
                        options: [
                            {
                                name: 'GOAL',
                                title: 'GOAL',
                                subtitle: 'CONVERT_TO_GOAL_SUBTITLE'
                            },
                            {
                                name: 'AREA',
                                title: 'AREA',
                                subtitle: 'CONVERT_TO_AREA_SUBTITLE'
                            },
                            {
                                name: 'VISION',
                                title: 'VISION',
                                subtitle: 'CONVERT_TO_VISION_SUBTITLE'
                            },
                            {
                                name: 'TASK',
                                title: 'TASK',
                                subtitle: 'CONVERT_TO_TASK_SUBTITLE'
                            }
                        ],
                        recordName: 'New goal'
                    },
                    function (option) {
                        var optionName = option ? option.option.name : null;
                        console.log('Selected option: ' + optionName);
                    }
                );
        

{{:: 'CONVERT_TO_DIALOG' | translate}}

{{ 'OPEN_CONVERT_TO_DIALOG' | translate }}

{{:: 'CODE' | translate}}

             pipConversionDialog.show(
                    {
                        event: event,
                        options: [
                            {
                                name: 'GOAL',
                                title: 'GOAL',
                                subtitle: 'CONVERT_RECORD_TO_GOAL'
                            },
                            {
                                name: 'TASK',
                                title: 'TASK',
                                subtitle: 'CONVERT_RECORD_TO_TASK'
                            },
                            {
                                name: 'EVENT',
                                title: 'EVENT',
                                subtitle: 'CONVERT_RECORD_TO_EVENT'
                            },
                            {
                                name: 'POST',
                                title: 'POST',
                                subtitle: 'CONVERT_RECORD_TO_POST'
                            }
                        ],
                        deleted: true,
                        deleteTitle: 'CONVERT_TO_CONTENT'
                    },
                    function (result) {
                        var optionName = result ? result.option.name : null;
                        var deleted = result ? result.deleted : false;
                        console.log('Selected option: ' + optionName);
                        console.log('Selected deleted?: ' + deleted);
                    }
             );