CRM-15166 - crmCaseType/activitySetDetails.html - Lock the name by default
authorTim Otten <totten@civicrm.org>
Thu, 21 Aug 2014 21:14:26 +0000 (14:14 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 22 Aug 2014 01:44:36 +0000 (18:44 -0700)
js/angular-crmCaseType.js
partials/crmCaseType/activitySetDetails.html

index d9504a7943d86d0a8b0827df4c997bb9a059e377..78847f6bcf63195174cae41fcd8958cf57b0e1aa 100644 (file)
     $scope.activityTypes = apiCalls.actTypes.values;
     $scope.activityTypeNames = _.pluck(apiCalls.actTypes.values, 'name');
     $scope.relationshipTypeNames = _.pluck(apiCalls.relTypes.values, CRM.crmCaseType.REL_TYPE_CNAME); // CRM_Case_XMLProcessor::REL_TYPE_CNAME
-    $scope.locks = {caseTypeName: true};
+    $scope.locks = {caseTypeName: true, activitySetName: true};
 
     $scope.workflows = {
       'timeline': 'Timeline',
index bc8287fd0036a5a588f9364e78da67dcf824bfc1..4b4be9bd3a6b42379ea3ff741c1a1a251455fcb9 100644 (file)
@@ -13,7 +13,9 @@ Required vars: activitySet
   <tr>
     <td class="label">Name</td>
     <td>
-      <input type="text" name="name" ng-model="activitySet.name"/><!-- FIXME lock -->
+      <input type="text" name="name" ng-model="activitySet.name" ng-disabled="locks.activitySetName" />
+      <a crm-ui-lock binding="locks.activitySetName"></a>
+
     </td>
   </tr>
   <tr>