crmCaseType.directive('crmAddName', function() {
return {
restrict: 'AE',
- template: '<input class="add-activity" type="hidden" />',
+ template: '<input class="add-activity crm-action-menu action-icon-plus" type="hidden" />',
link: function(scope, element, attrs) {
/// Format list of options for select2's "data"
var getFormattedOptions = function() {
data: getFormattedOptions,
createSearchChoice: function(term) {
return {id: term, text: term};
- }
+ },
+ placeholder: attrs.placeholder
});
$(input).on('select2-selecting', function(e) {
scope[attrs.crmVar] = e.val;
$scope.activityStatuses = _.values(apiCalls.actStatuses.values);
$scope.activityTypes = apiCalls.actTypes.values;
$scope.activityTypeNames = _.pluck(apiCalls.actTypes.values, 'name');
+ $scope.activityTypes = apiCalls.actTypes.values;
$scope.relationshipTypeNames = _.pluck(apiCalls.relTypes.values, CRM.crmCaseType.REL_TYPE_CNAME); // CRM_Case_XMLProcessor::REL_TYPE_CNAME
$scope.locks = {caseTypeName: true, activitySetName: true};
<tr>
<td class="label">{{ts('Label')}}</td>
<td>
- <input type="text" name="label" ng-model="activitySet.label"/>
+ <input type="text" name="label" class="crm-form-text" ng-model="activitySet.label"/>
</td>
</tr>
<tr>
<td class="label">{{ts('Name')}}</td>
<td>
- <input type="text" name="name" ng-model="activitySet.name" ng-disabled="locks.activitySetName" />
+ <input type="text" name="name" class="crm-form-text" ng-model="activitySet.name" ng-disabled="locks.activitySetName" />
<a crm-ui-lock binding="locks.activitySetName"></a>
</td>
<tfoot>
<tr class="addRow">
<td colspan="3">
- {{ts('Add activity:')}}
<span crm-add-name
crm-options="activityTypeNames"
crm-var="newActivity"
crm-on-add="addActivity(activitySet, newActivity)"
+ placeholder="{{ts('Add activity')}}"
/>
</td>
</tr>
<tfoot>
<tr class="addRow">
<td colspan="6">
- {{ts('Add activity:')}}
<span crm-add-name
crm-options="activityTypeNames"
crm-var="newActivity"
crm-on-add="addActivity(activitySet, newActivity)"
+ placeholder="{{ts('Add activity')}}"
/>
</td>
</tr>