Skip to content
Snippets Groups Projects
Commit d50a472d authored by jaapjansma's avatar jaapjansma
Browse files

Implemented the help text of an action on the edit action screen

parent 0400fd56
No related branches found
No related tags found
No related merge requests found
Version 1.3
===========
* Implemented the help text of an action on the edit action screen.
Version 1.2
===========
......
......@@ -2,8 +2,18 @@
<div class="crm-block crm-form-block" ng-form="ActionForm" crm-ui-id-scope>
<div crm-ui-field="{name: 'ActionForm.type', title: ts('Type')}">
<div>{{action.type.title}}</div>
<div>{{actionTitles[action.type]}}</div>
</div>
<div class="crm-section" ng-if="actionType.help_text">
<div class="label">&nbsp;</div>
<div class="content">
<div class="help">
{{actionType.help_text}}
</div>
</div>
<div class="clear"></div>
</div>
<div crm-ui-field="{name: 'ActionForm.title', title: ts('Title'), required: true}">
<input
......
......@@ -5,13 +5,13 @@
$scope.action = angular.copy($scope.model.action);
$scope.actionType = $scope.model.actionType;
$scope.actionTitles = CRM.form_processor.actionTitles;
if (Object.prototype.toString.call($scope.action.configuration) == '[object Array]') {
$scope.action.configuration = {};
}
if (Object.prototype.toString.call($scope.action.mapping) == '[object Array]') {
$scope.action.mapping = {};
}
$scope.model.context;
$scope.locks = {name: true};
$scope.isNameValid = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment