UNPKG

pip-webui

Version:

HTML5 UI for LOB applications

81 lines (79 loc) 3.75 kB
<h2 class="text-title tm0 bm24">{{ 'CONVERSION_DIALOG' | translate }}</h2> <h3 class="text-subhead2">{{:: 'CONVERT_PARENT_DIALOG' | translate}}</h3> <md-button class="lm0" ng-click="onConvertParentDialog($event)">{{ 'OPEN_CONVERT_PARENT_DIALOG' | translate }}</md-button> <h3 class="text-subhead2">{{:: 'CODE' | translate}}</h3> <pre class="text-body1 color-window-bg p16"> <strong>pipConversionDialog.show</strong>( { 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); } ); </pre> <md-divider class="tm8 pip-list-divider"></md-divider> <h3 class="text-subhead2">{{:: 'CONVERT_TO_DIALOG' | translate}}</h3> <md-button class="lm0" ng-click="onConvertToDialog($event)">{{ 'OPEN_CONVERT_TO_DIALOG' | translate }}</md-button> <h3 class="text-subhead2">{{:: 'CODE' | translate}}</h3> <pre class="text-body1 color-window-bg p16"> <strong>pipConversionDialog.show</strong>( { 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); } ); </pre>